Copy part number.iam to custom column in BOM with iLogic

Copy part number.iam to custom column in BOM with iLogic

BRLMCHKD
Advocate Advocate
1,998 Views
25 Replies
Message 1 of 26

Copy part number.iam to custom column in BOM with iLogic

BRLMCHKD
Advocate
Advocate

Hi there.

Could someone give me an idea, how to copy part number

to the custom column in BOM by use of iLogic - is it possible?

Thank you Smiley Happy

BRLMCHKD

Copy part number to BOM.jpg

0 Likes
Accepted solutions (3)
1,999 Views
25 Replies
Replies (25)
Message 21 of 26

bradeneuropeArthur
Mentor
Mentor

take a look at the top right.

the checkbox "update partnumber…….." is checked...

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 22 of 26

BRLMCHKD
Advocate
Advocate

Hi Brad.

 

Have tried different approaches, but copying not possible.

 

4_Detail dwg numbering_23.10.2018.jpg

0 Likes
Message 23 of 26

bradeneuropeArthur
Mentor
Mentor

think this has nothing to do with the rule.

possiblities: ?

Is the file migrated to the latest version vault is needing.

Are the vault rules correctly used?

Is this file a special file like library of standard?

What lifecycle the file is in?

 

etc...

 

Regards,

Autodesk Software: Inventor Professional 2018 | Vault Professional 2018 | Autocad Mechanical 2018
Programming Skills: Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Dimension Component! | Partlist Export! | Derive I-properties! | Vault Prompts Via API! | Vault Handbook/Manual!
Drawing Toggle Sheets! | Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 24 of 26

BRLMCHKD
Advocate
Advocate
Accepted solution

Hi Brad.

Yes that is correct.  I tried to delete the 1'st one, and took a new copy + implemented your rule, 

and have taken two more copy designs of that without problems.

Your rule works, the column get auto filled with correct numbers 🙂

Really nice - Thank you a lot.

 

5_Detail dwg numbering_23.10.2018.jpg

0 Likes
Message 25 of 26

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi @BRLMCHKD,

 

I didn't read all the other replies, but based on your information stating that Detail Dwg number needs to come from the part number of the occurrences I would use something like this:

 

' Get the active document. This assumes it Is a part document.
Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition

'Iterate through all of the occurrences
Dim oOccurrence As ComponentOccurrence
For Each oOccurrence In oAsmCompDef.Occurrences.AllReferencedOccurrences(oAsmCompDef)  


	oPartNumber = iProperties.Value(oOccurrence.Name, "Project", "Part Number")
	
	'find the postion Of the last ) In the name
	oPos = InStrRev(oPartNumber, ")",-1) 	

	'Get middle 10 chars of the part number starting at
	'position Of ), +1 
	oPN = Mid(oPartNumber,oPos+1,10 )

    iProperties.Value(oOccurrence.Name, "Custom", "Detail Dwg") = oPN

Next

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

EESignature

Message 26 of 26

bradeneuropeArthur
Mentor
Mentor
Accepted solution

Hope the solution given will fulfill your needs.

 

Regards,

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature