|
|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
本帖最后由 ning84 于 2014-3-28 17:51 编辑
, W6 i2 n4 k3 r2 g5 Y3 u( S0 W0 F6 p( x# x$ e
SolidWorks Forums: How to get spline length assigned to equation variable or custom property?- S; Q: U" i/ y+ ]
https://forum.solidworks.com/message/7810#78102 G3 z4 E L0 ^& D% T
# U) D4 v3 E. I; z# q) Y
6 o; t( N' d7 n6 J+ G% s8 l
在这个帖子中列出一个在方程式中的写法
- a2 I/ ?4 d; Q: x "MyLength"="SW-Length@@@Spline1@3DSketch1@@MyConfig@MyPart.sldprt"
o# l, g: Q3 ^) X测试了半天没有成功。; m$ `6 p. t8 g7 c
% \: O3 {' w0 H" X7 o" H5 O是否有高手测试成功这条语句。
& |& h5 p* L, Q4 ~# Z8 A5 y) _+ j
. e2 w! f. t/ G, K& d, f% M6 h5 g7 q; ^* p
& s! W! A5 i8 _6 O V/ J5 r/ I& x; q* c% ?; x ]' n# r2 n
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!!1 s; t% E% d9 a$ Y: A5 T# g9 S
" _! S, E p9 g" ^& w
|
|