How to change the name of a part when imported by Ilogic Place component

How to change the name of a part when imported by Ilogic Place component

andrescastellanosint
Contributor Contributor
636 Views
10 Replies
Message 1 of 11

How to change the name of a part when imported by Ilogic Place component

andrescastellanosint
Contributor
Contributor

Hi.

 

I created a piece parameterised and with form of ilogic, but when it is opened by  place ilogic component i cannot choose the name of the part that I desire. How to change the name of a part when it is imported by ilogic place component?

0 Likes
637 Views
10 Replies
Replies (10)
Message 2 of 11

bradeneuropeArthur
Mentor
Mentor
Could you do that on the save event or any other event?

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 3 of 11

bradeneuropeArthur
Mentor
Mentor

like this:

Public sub main

Dim oInvDocInvDsgnTrcPrpPropSet As PropertySet

Dim strPartNumber as string
set strPartNumber = "XYZ"
Dim oInvDocInvDsgnTrcPrpPartNumberProp As [Property]

oInvDocInvDsgnTrcPrpPropSet = oInvDoc.PropertySets.Item("Design Tracking Properties")
oInvDocInvDsgnTrcPrpPartNumberProp = oInvDocInvDsgnTrcPrpPropSet.Item("Part Number")

oInvDocInvDsgnTrcPrpPartNumberProp.Value = strPartNumber

End sub

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

0 Likes
Message 4 of 11

andrescastellanosint
Contributor
Contributor

Hello when I run in VBA I get that does not recognize strPartNumber

0 Likes
Message 5 of 11

What do you mean with recognize?

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 6 of 11

bradeneuropeArthur
Mentor
Mentor
Public sub main Dim oInvDocInvDsgnTrcPrpPropSet As PropertySet Dim strPartNumber as string set strPartNumber = "XYZ" Dim oInvDocInvDsgnTrcPrpPartNumberProp As [Property]
set oInvDocInvDsgnTrcPrpPropSet = oInvDoc.PropertySets.Item("Design Tracking Properties") set oInvDocInvDsgnTrcPrpPartNumberProp = oInvDocInvDsgnTrcPrpPropSet.Item("Part Number") oInvDocInvDsgnTrcPrpPartNumberProp.Value = strPartNumber End sub

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 7 of 11

bradeneuropeArthur
Mentor
Mentor
You need to add set to every declaration

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 8 of 11

andrescastellanosint
Contributor
Contributor

Sin título.png

0 Likes
Message 9 of 11

Remive the set for spartnumber.
For all other add the set

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 10 of 11

bradeneuropeArthur
Mentor
Mentor

Sorry for the incomplete code:

For VBA:

Public Sub main()
Dim oInvDoc As Document
Set oInvDoc = ThisApplication.ActiveDocument

Dim oInvDocInvDsgnTrcPrpPropSet As PropertySet

Dim strPartNumber As String
strPartNumber = "XYZ"
Dim oInvDocInvDsgnTrcPrpPartNumberProp As Property


Set oInvDocInvDsgnTrcPrpPropSet = oInvDoc.PropertySets.Item("Design Tracking Properties")
Set oInvDocInvDsgnTrcPrpPartNumberProp = oInvDocInvDsgnTrcPrpPropSet.Item("Part Number")

oInvDocInvDsgnTrcPrpPartNumberProp.Value = strPartNumber

End Sub

or Ilogic:

Public Sub main()
Dim oInvDoc As Document
oInvDoc = ThisApplication.ActiveDocument

Dim oInvDocInvDsgnTrcPrpPropSet As PropertySet

Dim strPartNumber As String
strPartNumber = "XYZ"
Dim oInvDocInvDsgnTrcPrpPartNumberProp As Property


oInvDocInvDsgnTrcPrpPropSet = oInvDoc.PropertySets.Item("Design Tracking Properties")
oInvDocInvDsgnTrcPrpPartNumberProp = oInvDocInvDsgnTrcPrpPropSet.Item("Part Number")

oInvDocInvDsgnTrcPrpPartNumberProp.Value = strPartNumber

End Sub

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 11 of 11

andrescastellanosint
Contributor
Contributor

Hello friend Excuse me if I can not run the rule, I really do not know what happens. The ILOGIC rule throws an error that is shown in the imageaaaa.png

0 Likes