Пример #1
0
 if (isset($document[D_member_group_for_steel])) {
     $member_groups_for_steel = new TMemberGroupSteel();
     $member_groups_for_steel->get_from_scad_txt($document[D_member_group_for_steel]);
     echo D_member_group_for_steel . ' - группы элементов для подбора;<br/>';
 }
 echo round(timeMeasure() - $TIMESTART, 6) . ' сек<br/>';
 $TIMESTART = timeMeasure();
 //разбираем узлы
 if (isset($document[D_node])) {
     //замена переносов
     $document[D_node] = str_replace("\r\n", ' ', $document[D_node]);
     $document[D_node] = str_replace("\n", ' ', $document[D_node]);
     //замена двойных пробелов
     $document[D_node] = preg_replace("|\\s{2,}|", ' ', $document[D_node]);
     $nodes = new TNode();
     $nodes->get_from_scad_txt($document[D_node]);
     echo D_node . ' - узлы;<br/>';
 }
 echo round(timeMeasure() - $TIMESTART, 6) . ' сек<br/>';
 $TIMESTART = timeMeasure();
 //разбираем элементы
 if (isset($document[D_member])) {
     //замена переносов
     $document[D_member] = str_replace("\r\n", ' ', $document[D_member]);
     $document[D_member] = str_replace("\n", ' ', $document[D_member]);
     //замена двойных пробелов
     $document[D_member] = preg_replace("|\\s{2,}|", ' ', $document[D_member]);
     $members = new TMember();
     $members->get_from_scad_txt($document[D_member]);
     echo D_member . ' - элементы;<br/>';
 }