|
31#
樓主 |
發(fā)表于 2024-5-7 10:26:16
|
只看該作者
目前我已經(jīng)測(cè)試成功,文件名命名格式,代碼+空格+名稱。例:2532532 鋼板4 D" {& B7 i6 h3 J8 F/ |* r
零件代碼:9 B) `* x6 G7 W
名稱代碼:Part.Extension.CustomPropertyManager("").Set("名稱",Right(Part.GetTitle,Len(Part.GetTitle)-InStr(Part.GetTitle," ")))
# h0 f6 R+ e0 ]# f3 s& I5 W代號(hào)代碼:Part.Extension.CustomPropertyManager("").Set("代號(hào)",Left(Part.GetTitle,InStr(Part.GetTitle," ")))# z: r0 |7 y; t/ p$ F
裝配體代碼:
s3 c5 i4 G/ m( N名稱代碼:Assembly.Extension.CustomPropertyManager("").Set("名稱",Right(Assembly.GetTitle,Len(Assembly.GetTitle)-InStr(Assembly.GetTitle," ")))7 e& D! t( _; F7 g/ Y9 f
代號(hào)代碼:Assembly.Extension.CustomPropertyManager("").Set("代號(hào)",Left(Assembly.GetTitle,InStr(Assembly.GetTitle," ")))1 Y. u' g. }* A' T% O7 N A
方程式設(shè)置如圖
& \2 u$ J7 j' g% e% \# |文件屬性自定義如圖$ T( n, V' s$ p% @+ U- y
4 V: Z, s U3 N: {9 P% U
注意,代碼需要刷新后才能正確運(yùn)行,自定義內(nèi)需提前添加“名稱”、“代號(hào)”兩個(gè)屬性
( I* | f/ } c8 _ |
|