|
|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
本帖最后由 ning84 于 2014-3-28 17:51 编辑
, F, x7 j, ~2 q% q; ~" @' `6 i- f3 k! Z6 h% Z/ q
SolidWorks Forums: How to get spline length assigned to equation variable or custom property?
S c6 g& y: U1 p- }/ u* Qhttps://forum.solidworks.com/message/7810#7810
8 E& a3 U2 q& s2 ^8 v; O- {- h' i& k2 m% E) Q
8 c1 a* `9 r% a在这个帖子中列出一个在方程式中的写法
, O; G9 Y6 o/ n! [7 y$ L3 y) L "MyLength"="SW-Length@@@Spline1@3DSketch1@@MyConfig@MyPart.sldprt", j B# B9 p" F# u: D
测试了半天没有成功。
' r- y+ x2 m: Z, s, a
3 T/ V" i. S9 J' c. I3 L* o是否有高手测试成功这条语句。, f: Y% q7 t/ ?: {
- X, u1 X. S, q% ]! H1 @3 h. L4 M3 z" I
' n. v: b$ x# \# U8 F
6 \4 Z4 J$ P: d1 YI 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!!
) T2 B% H* `" _5 K5 G/ N H, E4 K$ g6 Q. f. k% t% o( F2 Y
|
|