Inventor General Discussion

Inventor General Discussion

Reply
Distinguished Mentor
pcrawley
Posts: 703
Registered: ‎05-23-2002
Message 1 of 6 (1,378 Views)
Accepted Solution

How do you change the browser node name in a drawing?

1378 Views, 5 Replies
05-18-2013 01:40 PM

Can anyone point me in the right direction for a line of Inventor 2013 iLogic that can change the browser node name of an IDW please?

 

Specifically, I'm only interested in changing this:

Browser-node-name.png

I know how it's set by default, but someone has managed to fix their template so it only ever shows "A3 template" in this field.  consequently, this problem now persists throughout hundreds of drawings. If I can fix it with a line of  iLogic, then the wickedly awesome CodeInjector can be used for fixing all the drawings.

 

Thanks in advance.

Peter

Peter

if its typed in it will stay until it is cleared. (eg to do this manually for a single drawing, two slow left clicks on the node, to highlight the text, then delete the text and hit enter)

 

 

the following is a macro i use for the API, not iLogic.

 Some clues from this may begin to help though ?

 

Public Sub Clear_DisplayName()
Dim oDoc As Document
Set oDoc = ThisApplication.ActiveDocument
Debug.Print "Displayname = " & oDoc.DisplayName
oDoc.DisplayName = ""
oDoc.Update
End Sub

*Expert Elite*
Mark_Wigan
Posts: 460
Registered: ‎03-07-2006
Message 2 of 6 (1,363 Views)

Re: How do you change the browser node name in a drawing?

05-19-2013 12:22 AM in reply to: pcrawley

if its typed in it will stay until it is cleared. (eg to do this manually for a single drawing, two slow left clicks on the node, to highlight the text, then delete the text and hit enter)

 

 

the following is a macro i use for the API, not iLogic.

 Some clues from this may begin to help though ?

 

Public Sub Clear_DisplayName()
Dim oDoc As Document
Set oDoc = ThisApplication.ActiveDocument
Debug.Print "Displayname = " & oDoc.DisplayName
oDoc.DisplayName = ""
oDoc.Update
End Sub

best regards,
- Mark

(Kudo or Tag if Solved - it may help others)

PDSU 2015 Windows 8.1, 64bit.

Distinguished Mentor
pcrawley
Posts: 703
Registered: ‎05-23-2002
Message 3 of 6 (1,334 Views)

Re: How do you change the browser node name in a drawing?

05-19-2013 02:35 PM in reply to: Mark_Wigan

Perfect - thanks Mark.

 

Just in case anyone else is looking for this, here's the equivalent iLogic that sets the display name = iProperty Part Number (which it should be by default!):

 

oDoc = ThisApplication.ActiveDocument
MessageBox.Show("Displayname = " & oDoc.DisplayName, "iLogic")
'Set display name = iProperty "Part Number"
oDoc.DisplayName = iProperties.Value("Project", "Part Number")

 

 

Peter
Contributor
ankersen
Posts: 16
Registered: ‎11-21-2006
Message 4 of 6 (1,283 Views)

Re: How do you change the browser node name in a drawing?

05-30-2013 06:23 AM in reply to: pcrawley

I have this problem on a few drawings.  How can I reset back to the default manually?

When I do as stated above, (highlight & delete) it does not default back to the org. Drawing file name.

The image attached shows the file name test3.idw, but the node is test1.  I need to make the node read test3.idw.

*Expert Elite*
Curtis_Waguespack
Posts: 3,002
Registered: ‎03-08-2006
Message 5 of 6 (1,267 Views)

Re: How do you change the browser node name in a drawing?

05-30-2013 07:05 AM in reply to: ankersen

Hi ankersen,

In a drawing, if you replace the name with a space using the space bar, it should reset fo you. In parts and assemblies, delete the name resets it.

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.





Contributor
ankersen
Posts: 16
Registered: ‎11-21-2006
Message 6 of 6 (1,247 Views)

Re: How do you change the browser node name in a drawing?

05-31-2013 05:50 AM in reply to: Curtis_Waguespack
it was the space that I needed. Thank you.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.