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: 

Rename sheets based on view labels contained in each sheet

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
claudio.ibarra
164 Views, 2 Replies

Rename sheets based on view labels contained in each sheet

Instead of:

Sheet:1

Sheet:2

Sheet:3.. and so on,

 

Is it possible to run a rule that renames each sheet based on the View Label names for each view contained in each sheet?

 

This would make it easier for designers to find section G, or detail B, or detail A3 by looking for those in the sheet model browser sheet names.

 

So the sheet list could end up looking like:

View1 View30:1

View2 View3:2

A B C:3

D J:4

E F:5

 

Is that possible with iLogic and Inventor 2020?

Labels (3)
2 REPLIES 2
Message 2 of 3

Hi @claudio.ibarra 

Are you looking for something like this? 🙂

 

For Each oSheet As Sheet In ThisDrawing.Document.Sheets
	Dim oName As String = ""
	For Each oView As DrawingView In oSheet.DrawingViews
		oName = oName & If (oName = "", oView.Name, " " & oView.Name)
	Next
	If oName <> "" Then oSheet.Name = oName
Next
Message 3 of 3

Is it possible to add something that checks for and removes any quotation marks in a detail? Some older drawings used "A" or "A"-"A" instead of just a single letter A for a view label name. 

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

Post to forums  

Autodesk Customer Advisory Groups


Autodesk Design & Make Report