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:
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.
Solved! Go to Solution.
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 = ""
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")
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.
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,
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register