Inventor General

Reply
Member
andrew.cox
Posts: 3
Registered: ‎08-23-2011
Message 1 of 6 (352 Views)

Renaming sheets in a multi-sheet IDW....

352 Views, 5 Replies
10-04-2012 12:04 PM

Is there any easy way to have sheet name automatically pull the "description" iProperty from the part that is on the sheet?  It can be very handy in a multi-sheet drawing for each sheet to have a descripive name in the browser, but the only way to do this (that I know of) is to manually change it.

 

Thanks,

Andrew

*Expert Elite*
Curtis_Waguespack
Posts: 2,566
Registered: ‎03-08-2006
Message 2 of 6 (341 Views)

Re: Renaming sheets in a multi-sheet IDW....

10-04-2012 01:21 PM in reply to: andrew.cox

Hi andrew.cox,

 

Here's an iLogic rule to do this. Note that description might not write to the sheet name correctly if it has characters such as commas in it.

 

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

 

Dim oSheets As Sheets 
oSheets = ThisDoc.Document.sheets
Dim oSheet As Sheet
For Each oSheet In oSheets
	oSheet.activate
	Dim oDrawingView As DrawingView 
	oDrawingView = oSheet.DrawingViews(1)
	oModelName = oDrawingView.ReferencedDocumentDescriptor.ReferencedDocument.DisplayName
	oDesc = iProperties.Value(oModelName, "Project", "Description")
	oSheet.Name =  oDesc 
Next

 



  solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.





Member
andrew.cox
Posts: 3
Registered: ‎08-23-2011
Message 3 of 6 (317 Views)

Re: Renaming sheets in a multi-sheet IDW....

10-05-2012 05:55 AM in reply to: Curtis_Waguespack

Hi Curtis,

 

Thanks for this info!  However, I have not even used iLogic, so I don't know what to do with this.  Any chance you could point me towards a good tutorial, or provide me instructions yourself?

 

Cheers,

Andrew

*Expert Elite*
Curtis_Waguespack
Posts: 2,566
Registered: ‎03-08-2006
Message 4 of 6 (300 Views)

Re: Renaming sheets in a multi-sheet IDW....

10-05-2012 08:38 AM in reply to: andrew.cox

Hi andrew.cox,

 

This should cover it:

http://inventortrenches.blogspot.com/2012/01/creating-basic-ilogic-rule-with-event.html

 

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



  solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.





Member
andrew.cox
Posts: 3
Registered: ‎08-23-2011
Message 5 of 6 (285 Views)

Re: Renaming sheets in a multi-sheet IDW....

10-05-2012 12:30 PM in reply to: Curtis_Waguespack

Hi Curtis,

 

I'm having some trouble with the code you supplied.  When I enter in into the "rule", I get this error....

 

Picture - 06 -  Oct. 05, 2012.jpg

 

I cut-and-paste the code exactly as you had it in your previous post.  Any thoughts?

 

Andrew

*Expert Elite*
Curtis_Waguespack
Posts: 2,566
Registered: ‎03-08-2006
Message 6 of 6 (249 Views)

Re: Renaming sheets in a multi-sheet IDW....

10-08-2012 07:12 AM in reply to: andrew.cox

Hi andrew.cox,

 

Most likely there is an issue with a line wrap due to this forums formatting, or something like that. Attached is the rule in a text file, you can copy and paste from it.

 

If you see the same results post back.

 

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

 

 



  solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.





You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube