Z.B. so (ist als Anregung gedacht):
1. file: rectangle.dfa
#! UGNX/KF 2.0
DefClass: rectangle (ug_displayable_entity);
(child) line1:
{
class, ug_line;
Start_Point, Point(0,50-12.7,-1);
End_Point, Point(0,50+12.7,-1);
};
(child) line2:
{
class, ug_line;
Start_Point, Point(0,50-12.7,25.4);
End_Point, Point(0,50+12.7,25.4);
};
(child) line3:
{
class, ug_line;
Start_Point, Point(0,50-12.7,-1);
End_Point, Point(0,50-12.7,25.4);
};
(child) line4:
{
class, ug_line;
Start_Point, Point(0,50+12.7,-1);
End_Point, Point(0,50+12.7,25.4);
};
2. file: use_rectangle.dfa
#! UGNX/KF 2.0
DefClass: use_rectangle (ug_base_part);
(child modifiable) the_child: {
Class; rectangle;
Origin; point(0,0,0);
Color; -1;
Layer; -1;
};
Die Regel use_rectangle ins Part einfügen.
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP