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

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

GosponZ
Collaborator Collaborator
4,208 Views
14 Replies
Message 1 of 15

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

GosponZ
Collaborator
Collaborator

Is it possible to make iLogic rule to do this:

In dwg Place part and in Browser to see part name without extra typing. Not Sheet 1 sheet 2 etc.

That would be huge help.

 

Thank you

0 Likes
Accepted solutions (3)
4,209 Views
14 Replies
Replies (14)
Message 2 of 15

jdkriek
Advisor
Advisor

Here you go:

 

If (ThisDrawing.ModelDocument Is Nothing) Then Return
	modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)
	ActiveSheet.Sheet.Name = iProperties.Value(modelName, "Project", "Part Number")
Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


0 Likes
Message 3 of 15

GosponZ
Collaborator
Collaborator

Thanks for  such fast reply but here is one error could you take look please.

Thank you

0 Likes
Message 4 of 15

jdkriek
Advisor
Advisor
Accepted solution

I'm not getting that error in 2011-2013

 

Is there anything else in the iLogic rule? Can you post it?

 

To make sure it's copied correctly you can also copy and paste from this .txt file attached.

Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


0 Likes
Message 5 of 15

GosponZ
Collaborator
Collaborator

Thanks a lot now is working perfect

0 Likes
Message 6 of 15

jdkriek
Advisor
Advisor

Glad it works for you 😉

Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


0 Likes
Message 7 of 15

GosponZ
Collaborator
Collaborator

Jonathan,

when i try first time it work perfect. Now i'm trying and every time in new sheet giving me same name

Thank you

0 Likes
Message 8 of 15

jdkriek
Advisor
Advisor
Accepted solution

Ah multiple sheets with diffrent parts? Try this.

 

oDoc = ThisDoc.Document
oSheets = oDoc.Sheets
	For Each oSheet In oSheets
		oSheet.activate
		oView = oSheet.DrawingViews.Item(1)
		modelName = oView.ReferencedDocumentDescriptor.ReferencedDocument
		oProp = modelName.PropertySets.Item("Design Tracking Properties")
		ActiveSheet.Sheet.Name = oProp.Item("Part Number").Value 
	Next
oSheets(1).activate
Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


Message 9 of 15

GosponZ
Collaborator
Collaborator
Accepted solution

I copy paste straight from web and that is not good idea. I place code into word and then i copy paste into rule and is working like charm. Thanks a lot

0 Likes
Message 10 of 15

jdkriek
Advisor
Advisor

You're quite welcome 😉

 

And yes, paste directly into a .txt file before pasting into iLogic.

Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


Message 11 of 15

Anonymous
Not applicable

Sorry to bring up an old thread but this code isn't working in Inventor 2014. Any ideas?

0 Likes
Message 12 of 15

GosponZ
Collaborator
Collaborator

Man i'm still on 2012. Is there anybody to try with 2014

0 Likes
Message 13 of 15

GosponZ
Collaborator
Collaborator

In 2014 code is working perfect. Not single problem. 

0 Likes
Message 14 of 15

Anonymous
Not applicable

thats genius work. thanks. 

Message 15 of 15

aronmatheus
Advocate
Advocate

Hi@jdkriek I'm trying to think of a ruler same you did not lose the link with the parameter when using ilogic, I put a video to show what I wanna do.

0 Likes