|
|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
本帖最后由 ning84 于 2014-3-28 17:51 编辑 3 V* m1 l4 U8 _9 c; E
/ S# Y% I% M! h2 s: E% K
SolidWorks Forums: How to get spline length assigned to equation variable or custom property?$ I$ e& U8 i" V& j3 ?
https://forum.solidworks.com/message/7810#7810
7 X2 }; B Z5 Z& G! G0 k# M: n5 e, S, Y
. I% X* t5 }$ e, j4 [5 B在这个帖子中列出一个在方程式中的写法0 }% T" p# H0 K& t& K* _4 h, J
"MyLength"="SW-Length@@@Spline1@3DSketch1@@MyConfig@MyPart.sldprt"
# ]; T4 y% B/ u, }) p# U6 F测试了半天没有成功。
3 ~0 w0 e# X6 d# u6 P
! z8 m% ]+ P0 r ]4 [是否有高手测试成功这条语句。8 g& V6 a/ J' Q6 }: P
; z& w" c) n# z( H3 ~6 |
2 ]8 K3 ~: R% E. Y J6 i M# x$ ]
) P$ q- w( y y' Z2 l
1 C& t2 } o0 Q) V
I am vexed by the thought that I will be forced to extract the information through an API macro populate the custom property cells with the 3D spline length. Especially since I can select the TOOLS>MEASURE and get the data for the length of the 3D spline, but this data is not "exposed" where it can be of a useful nature. (used in a drawing to affect or to drive other dimensions) Its not like I am attempting to constrain the length of the spline. I set a start point and an endpoint and set the 3D spline to go through points P1, P2, P3 etc. If I was a SW developer, I would set up something like "MyLength"="SW-Length@@@Spline1@3DSketch1@@MyConfig@MyPart.sldprt) I should be able to extract any basic dimensional data related to a part or sketch already. (OK, im through venting!) Back to the API board!!6 S. v3 G+ Y% ]; s% w
: u7 V, s. L0 t s; Z' W |
|