Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

can i change the name of the drawing sheet to the name of the insert piece?

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Miguel.CarvajalS34Q6
247 Views, 1 Reply

can i change the name of the drawing sheet to the name of the insert piece?

is it possible to change the name of the drawing sheet for the name of the part that is inserted into the drawing?

Labels (4)
1 REPLY 1
Message 2 of 2

Hi @Miguel.CarvajalS34Q6.  Yes.  Here is a fairly simple iLogic rule which will do that for the active sheet of a drawing, as long as that sheet's first view is referencing a model document.

oDDoc = ThisDrawing.Document
oSheet = oDDoc.ActiveSheet
If oSheet.DrawingViews.Count = 0 Then Exit Sub
Dim oView As DrawingView = oSheet.DrawingViews.Item(1)
oModelDispName = oView.ReferencedDocumentDescriptor.DisplayName
oSheet.Name = oModelDispName

If this solved your problem, or answered your question, please click ACCEPT SOLUTION .
Or, if this helped you, please click (LIKE or KUDOS) 👍.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report