|
目前我已經(jīng)測試成功,文件名命名格式,代碼+空格+名稱。例:2532532 鋼板
4 b! h( ?5 v' g* S3 u$ z零件代碼:
$ ]! {" {! }; @/ l; {名稱代碼:Part.Extension.CustomPropertyManager("").Set("名稱",Right(Part.GetTitle,Len(Part.GetTitle)-InStr(Part.GetTitle," ")))9 M+ W b, ^& T/ B) }
代號代碼:Part.Extension.CustomPropertyManager("").Set("代號",Left(Part.GetTitle,InStr(Part.GetTitle," "))). m) M0 D* N+ M. f2 D3 C( s
裝配體代碼:! E8 f4 C+ P( [) }3 N+ y$ b# U- \# C! G
名稱代碼:Assembly.Extension.CustomPropertyManager("").Set("名稱",Right(Assembly.GetTitle,Len(Assembly.GetTitle)-InStr(Assembly.GetTitle," ")))7 {7 y7 N, \+ H7 W7 }" M/ d5 x9 B
代號代碼:Assembly.Extension.CustomPropertyManager("").Set("代號",Left(Assembly.GetTitle,InStr(Assembly.GetTitle," ")))
/ v7 d' f5 _* w1 y, j4 w6 ~% l方程式設(shè)置如圖
) c9 o# l, @% e3 e( x5 O# I3 r# G文件屬性自定義如圖
. \. W3 V7 |$ F
5 ]' A9 U# K# }* w7 R注意,代碼需要刷新后才能正確運行,自定義內(nèi)需提前添加“名稱”、“代號”兩個屬性- y5 I; V; Y$ j7 D
|
|