#! NX/KF 3.0
DefClass: testFrame (ug_base_part);
(Child) ori:
{
Class, ug_block;
Length, 100;
Width, 100;
Height, 100;
Origin, Point(0,0,0);
};
(Number) rotateAngle: -45;
(Child) moveFrame_1:
{
Class, ug_block;
Length, 100;
Width, 100;
Height, 100;
Origin, Point(0,0,0);
ReferenceFrame, FrameXY(Point(0,0,0), Vector(cos(rotateAngle: ), sin(rotateAngle: ), 0), Vector(cos(rotateAngle: + 90), sin(rotateAngle: + 90), 0));
};
(Number) translationDist: 150;
(Child) moveFrame_2:
{
Class, ug_block;
Length, 100;
Width, 100;
Height, 100;
Origin, Point(0,0,0) + translationDist:*Vector(-1,0,0);
ReferenceFrame, FrameXY(Point(0,0,0), Vector(cos(rotateAngle: ), sin(rotateAngle: ), 0), Vector(cos(rotateAngle: + 90), sin(rotateAngle: + 90), 0));
};
希望这帮得上你,问题的解法当然不只一个,融会贯通你就清楚多了!! |