Rename sheets based on view labels contained in each sheet

Rename sheets based on view labels contained in each sheet

claudio.ibarra
Advocate Advocate
421 Views
2 Replies
Message 1 of 3

Rename sheets based on view labels contained in each sheet

claudio.ibarra
Advocate
Advocate

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?

0 Likes
Accepted solutions (1)
422 Views
2 Replies
Replies (2)
Message 2 of 3

JhoelForshav
Mentor
Mentor
Accepted solution

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

claudio.ibarra
Advocate
Advocate

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. 

0 Likes