NAME MY IDW VIEWS PLEASE AUTODESK

NAME MY IDW VIEWS PLEASE AUTODESK

Anonymous
Not applicable
501 Views
2 Replies
Message 1 of 3

NAME MY IDW VIEWS PLEASE AUTODESK

Anonymous
Not applicable

How could I get the idw views to name them-selves? Instead of  ” view 1”,  “view2” why not have it name itself the file name,  the same goes for a parts-list added to idw sheets? When slow clicking them to rename they already have the file name referencing the view or parts list. I have multiple views and multiple parts list on many sheets. Re-naming them is starting to get old!

I took a quick look at “ILOGIC” because that’s my “ILOGIC” speed and nothing jumped out at me.

Any help or options will be greatly appreciated.

0 Likes
502 Views
2 Replies
Replies (2)
Message 2 of 3

Curtis_Waguespack
Consultant
Consultant

Hi Ray_P,

 

I'm not clear if you talking about the view label or the view node name in the browser? Here are a couple of links that might help though:

 

http://inventortrenches.blogspot.com/2012/01/set-your-drawing-view-labels-to-use.html

edit, I noticed I gave the wrong link, but I've closed the page I had open and have lost that link now. Here's the code from it though:

 

 

Place this in an iLogic rule to write the part number to the view label and view browser node.

 

Dim oApp As Application: oApp = ThisApplication
Dim oDoc As DrawingDocument:  oDoc = oApp.ActiveDocument

Dim oSheets As Sheets
Dim oSheet As Sheet
Dim oViews As DrawingViews
Dim oView As DrawingView
Dim oPartNumber As String

oSheets = oDoc.Sheets

For Each oSheet In oSheets
oViews = oSheet.DrawingViews

For Each oView In oViews

oPartNumber = oView.ReferencedDocumentDescriptor.ReferencedDocument.PropertySets.Item(3).Item(2).Value
oView.Name = oPartNumber

Next
Next

 

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature

0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks Curtis this code will save me a lot of time. I finally found an easy way to check my posts. I haven't written much code and have a minimal understanding of the language but I do know how to put it to work. It is a good thing that people are willing to share they are real time savers. Could you share or add some code to rename the parts list as well? Thanks again!!
0 Likes