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

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

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

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

Miguel.CarvajalS34Q6
Advocate
Advocate

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

0 Likes
Accepted solutions (1)
341 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor
Accepted solution

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)