|
|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
本帖最后由 ning84 于 2014-3-28 17:51 编辑 2 C/ P/ y6 V) Y/ W: j
" j3 w* X8 C/ TSolidWorks Forums: How to get spline length assigned to equation variable or custom property?
$ @) s, l4 [' b9 j" z. s- r8 Uhttps://forum.solidworks.com/message/7810#78104 ~. z+ |; r/ _* k9 G
8 Q: F) w" X. c4 k5 ?' \, v. j
4 l" \7 Z% r0 Q/ b在这个帖子中列出一个在方程式中的写法9 n* I, \; p* F: x, i
"MyLength"="SW-Length@@@Spline1@3DSketch1@@MyConfig@MyPart.sldprt", r% A1 R' L1 }' t$ f" z5 a$ _
测试了半天没有成功。) g/ A" T( U j9 R
5 F: `* q: z, {( s$ [2 o, s1 M9 R0 R
是否有高手测试成功这条语句。
" c' U* H# b b7 G, v) S9 L& S: m. k: u7 ~2 k2 T
. a1 s3 R" `7 r9 d9 s8 _
' Q8 H/ `& z3 [( Y5 E1 R
* P8 Y1 T6 `4 DI 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!!/ k8 W0 Z; p6 D. X8 A, {
, a& |/ f7 r# m& U4 ] I B. j! b |
|