save assembly with code and description

save assembly with code and description

Miguel.CarvajalS34Q6
Advocate Advocate
162 Views
1 Reply
Message 1 of 2

save assembly with code and description

Miguel.CarvajalS34Q6
Advocate
Advocate

I currently use a code that allows me to save the files with the code and its description, but it works well only with the part files, but it does not work with the assembly files, how can I solve it?

 

Dim oDoc As PartDocument = ThisApplication.ActiveDocument
oDoc.DisplayName = iProperties.Value("Project", "Stock Number") & " - " & iProperties.Value("Project", "Part Number")
0 Likes
Accepted solutions (1)
163 Views
1 Reply
Reply (1)
Message 2 of 2

JelteDeJong
Mentor
Mentor
Accepted solution

try this:

Dim doc As Document = ThisDoc.Document
doc.DisplayName = iProperties.Value("Project", "Stock Number") & " - " & iProperties.Value("Project", "Part Number")

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com