Message 1 of 2
Custom property value appearing in other models!

Not applicable
08-16-2016
02:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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!?