iCAx开思网
标题:
(KF)自订的KF程式,载入后,ORIGIN位置无法设定
[打印本页]
作者:
aoci72681
时间:
2006-10-26 00:09
标题:
(KF)自订的KF程式,载入后,ORIGIN位置无法设定
请教各位前辈
如题
自行定义一个DFA档建立一个实体,想载入到另一个DFA中,作布林运算
可是他的座标系却无法设定
是哪边有问题呢
作者:
vodka
时间:
2006-10-26 01:06
当然是你的问题啊
作者:
aoci72681
时间:
2006-10-26 01:45
嗯 真的是我的问题
但是实在试不出来 应该如何写他
可以帮我看一下吗??
感激不尽
程式如下
#! NX/KF 4.0
DefClass: polygon6B (ug_base_part);
(Canonical Point Parameter Modifiable) Origin
oint(0,0,0);
(Canonical Vector Parameter Modifiable) Direction: Vector(0,0,1);
(List) Operation_init:
{
Unite,
Subtract,
Intersect
};
(Canonical Name Parameter) Operation: Unite;
(Canonical List Parameter uncached) Target: {};
(Number Modifiable Parameter) s: 3;
(Number Modifiable Parameter) t: 2;
(Child) cha1: {
Class, ug_offset_angle_chamfer;
References, ug_body_askEdgeClosestToPoint( s1:,point(tan(30)*s:,s:/2,-t:/2 ));
Offset1, s:/2;
Chamfer_Angle, 30.0;
demandOrder, {s1:};
};
(Child) cha2: {
Class, ug_offset_angle_chamfer;
References, ug_body_askEdgeClosestToPoint( s1:,point(-tan(30)*s:,s:/2,-t:/2 ));
Offset1, tan(30)*s:/2;
Chamfer_Angle, 60.0;
demandOrder, {s1:};
};
(Child) cha3: {
Class, ug_offset_angle_chamfer;
References, ug_body_askEdgeClosestToPoint( s1:,point(-tan(30)*s:,-s:/2,-t:/2 ));
Offset1, s:/2;
Chamfer_Angle, 30.0;
};
(Child) cha4: {
Class, ug_offset_angle_chamfer;
References, ug_body_askEdgeClosestToPoint( s1:,point(tan(30)*s:,-s:/2,-t:/2 ));
Offset1, tan(30)*s:/2;
Chamfer_Angle, 60.0;
};
(Child) s1: {
Class, ug_block;
Length, tan( 30 )*s:*2;
Width, s:;
Height, t:;
Origin, Point(-tan(30)*s:,-s:/2,-t
;
};
作者:
vodka
时间:
2006-10-26 02:44
(Vector Parameter) dir_x: vector(0.7,0.3,0.15);
(Point Parameter) originP: point(3,5,7);
(Number Parameter) s: 3;
(Number Parameter) t: 2;
(Vector) dir_y: vector(0,0,1)*dir_x:;
(Frame) frameMy: frameXY( originP:, dir_x:, dir_y: );
(Child) dispp: {
Class, ug_point;
Position, originP:;
};
(Child) s1: {
Class, ug_block;
Length, tan(30)*s:*2;
Width, s:;
Height, t:;
Origin, Point_(-tan(30)*s:, -s:/2, -t:, frameMy:);
x_axis, dir_x:;
y_axis, dir_y:;
};
[[i] 本帖最后由 vodka 于 2006-10-26 03:32 编辑 [/i]]
作者:
aoci72681
时间:
2006-10-26 07:49
感谢 vodka大大的帮忙 我再试一下
欢迎光临 iCAx开思网 (https://www.icax.org/)
Powered by Discuz! X3.3