|
楼主 |
发表于 2024-5-7 10:26:16
|
显示全部楼层
目前我已经测试成功,文件名命名格式,代码+空格+名称。例:2532532 钢板) ]9 [$ a* z% `7 ~& |1 ]
零件代码:' Q* l1 Y0 ~$ t1 f5 D
名称代码:Part.Extension.CustomPropertyManager("").Set("名称",Right(Part.GetTitle,Len(Part.GetTitle)-InStr(Part.GetTitle," ")))
9 ~4 Y/ t. R9 X( e( b( W3 M代号代码:Part.Extension.CustomPropertyManager("").Set("代号",Left(Part.GetTitle,InStr(Part.GetTitle," ")))
$ ] e1 c1 n# @* J! e+ \7 i装配体代码:1 H2 D0 s$ h- W
名称代码:Assembly.Extension.CustomPropertyManager("").Set("名称",Right(Assembly.GetTitle,Len(Assembly.GetTitle)-InStr(Assembly.GetTitle," ")))
! y& t) N9 K' j. u9 P代号代码:Assembly.Extension.CustomPropertyManager("").Set("代号",Left(Assembly.GetTitle,InStr(Assembly.GetTitle," "))); E, m/ M7 Y9 Y# o1 W; w# d8 O. u! L
方程式设置如图+ I7 O+ B) _' i
文件属性自定义如图( f! ]; j3 |- U& J* z3 S) ^
' r4 Q a2 |) Y& u1 A
注意,代码需要刷新后才能正确运行,自定义内需提前添加“名称”、“代号”两个属性
. z ?0 H9 x1 H1 O6 B9 @ |
|