|
目前我已經(jīng)測試成功,文件名命名格式,,代碼+空格+名稱,。例:2532532 鋼板
+ C3 T2 l6 P" h( C零件代碼:- [6 ~8 `9 B, [0 J: Q
名稱代碼:Part.Extension.CustomPropertyManager("").Set("名稱",Right(Part.GetTitle,Len(Part.GetTitle)-InStr(Part.GetTitle," ")))% [6 Q. @* }/ X7 ?" l$ H, J& o2 j
代號代碼:Part.Extension.CustomPropertyManager("").Set("代號",Left(Part.GetTitle,InStr(Part.GetTitle," ")))
2 ?4 L& S Q. z6 [9 V: u5 K+ i裝配體代碼:2 S; \4 Q+ \$ x/ l* Z7 _
名稱代碼:Assembly.Extension.CustomPropertyManager("").Set("名稱",Right(Assembly.GetTitle,Len(Assembly.GetTitle)-InStr(Assembly.GetTitle," ")))
2 B" P3 M* I& p& L P$ b% V0 r代號代碼:Assembly.Extension.CustomPropertyManager("").Set("代號",Left(Assembly.GetTitle,InStr(Assembly.GetTitle," ")))
5 `% ~ L3 g8 A" r方程式設(shè)置如圖![]()
: c/ H! J. ?7 D文件屬性自定義如圖5 X/ S+ W8 I( n9 U, p
3 @3 C' W2 {5 f+ W" [/ u. n ]9 e- o
注意,代碼需要刷新后才能正確運行,,自定義內(nèi)需提前添加“名稱”,、“代號”兩個屬性 |' S, |7 H& ]4 {
|
|