iLogic for custom properties in the assembly environment

iLogic for custom properties in the assembly environment

kresh.bell
Collaborator Collaborator
482 Views
4 Replies
Message 1 of 5

iLogic for custom properties in the assembly environment

kresh.bell
Collaborator
Collaborator

Hi,

could anyone help me?

 

I would need iLogic to create these two custom properties in an assembly environment

 

Name: ArticleName

Type: Text
Value: Empty

 

Name: ProjectName
Type: Text
Value: Empty

0 Likes
Accepted solutions (1)
483 Views
4 Replies
Replies (4)
Message 2 of 5

bradeneuropeArthur
Mentor
Mentor

Try this:

Dim a As Inventor.DrawingDocument = ThisDrawing.Document
Dim b As Inventor.PropertySet = a.PropertySets.Item(4)
Dim p1 As Inventor.Property
Dim p2 As Inventor.Property

b.Add("Test", "ArticleName")
b.Add("Test","ProjectName")

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 5

kresh.bell
Collaborator
Collaborator

Hi,

thanks but something is wrong

Screenshot 2021-09-15 071103.png

0 Likes
Message 4 of 5

bradeneuropeArthur
Mentor
Mentor
Accepted solution

Please replace this:

 

dim a as Inventor.AssemblyDocument = ThisDoc.Document

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

kresh.bell
Collaborator
Collaborator

Hi,

works great now, thanks

0 Likes