Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
utm007
796 Views, 8 Replies

Material CHANGE in iLogic and VBA

Ciao,

I would like to change Material selection via VBA code.

 

I did even in iLogic and it works, code is :

[...]

iProperties.Material = "TestMaterial"

[...]

 

In VBA i did:

[...]

ThisApplication.ActiveDocument.PropertySets.Item("Design Tracking Properties").Item("Material").Value = "TestMaterial"

[...]

In VBA i have no material change for the part.

 

I did the same for Custom iProperties and it works:

ThisApplication.ActiveDocument.PropertySets.Item("Inventor User Defined Properties").Item("InternalCode").Value = "TestCode"

 

Can you help me? Any tips?

 

Thanks.