Extract Frame generator assembly/weldment title field to the parts custom field

Extract Frame generator assembly/weldment title field to the parts custom field

blandb
Mentor Mentor
354 Views
3 Replies
Message 1 of 4

Extract Frame generator assembly/weldment title field to the parts custom field

blandb
Mentor
Mentor

I have a frame generated frame that is pulled into an upper level assembly where things are then attached to it. I need to grab the upper level assembly title, or just the frame generated assembly title, and then loop through and apply that to the placed members custom iproperty called "Section" I am blanking on how to accomplish this.

 

Due to our syntax, it will always use the right (4) characters of the title field. So I was planning on using the right function once I got the property, but I am stuck. Any guidance will be appreciated!

Autodesk Certified Professional
0 Likes
355 Views
3 Replies
Replies (3)
Message 2 of 4

Curtis_Waguespack
Consultant
Consultant

Hi @blandb 

 

Here's a link that has an example that should get you pointed in the right direction on accessing the properties of the frame members:

https://forums.autodesk.com/t5/inventor-customization/ilogic-rule-for-changing-frame-member-part-num...

 

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 4

blandb
Mentor
Mentor

I'm not certain, but doesn't that code use the frame members to develop a part number? I am trying to just pull the title from the assembly of the frame weldment (where the members are inserted) and then place that title into each members custom iproperty.

Autodesk Certified Professional
0 Likes
Message 4 of 4

blandb
Mentor
Mentor

I believe I got something that works!

 

Dim asmDoc As AssemblyDocument = ThisDoc.Document
Dim childDoc As Document
For Each childDoc In asmDoc.AllReferencedDocuments
	Try
		Dim filename = IO.Path.GetFileName(childDoc.FullFileName)
		iProperties.Value(filename, "Custom", "RAIL SECTION") = right(iProperties.Value(asmDoc, "Summary", "Title"),4)
	Catch
	End Try
Next
Autodesk Certified Professional
0 Likes