Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
309 Views, 1 Reply

Custom property value appearing in other models!

Using VBA I've created a module and I use ......("Inventor User Defined Properties").Add("RevDate") and set a value. This can be changed by the user but needs to be remembered for that model. This value is also found and used in the drawing for that model using illogic

Try

oDate = iProperties.Value("Custom", "RevDate")

Catch

oDate = DateTime.Now.ToString("d")

End Try

And then oDate is used.

 

Now I've added the iLogic I have a problem. After setting a RevDate for a model, if I open a fresh template to create a new model the date set in the previous model comes up as the RevDate, even though that property should have only just been created and not set to anything!

 

What have I done wrong!?