07-10-2018
08:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-10-2018
08:29 PM
Hi @cmcconnell,
The current behavior for Data is using "01/01/1601" as default value if the Date property being cleared, and return the specified value if it is checked.
From the code, if you delete the Date value from IDW, the Date property in IDW returns default "01/01/1601" and then the Date property of the model is overwritten in case of the model Date property being not "01/01/1601" since the value is set back to model.
I am not quite sure I understand your question correctly. In the following code, do you want the set property from IDW to model being implemented or not if the Date property in model is not "01/01/1601"?
'Creation Date
If iProperties.Value(oModelName, "Project", "Creation Date") <> "01/01/1601" Then
iProperties.Value(oModelName, "Project", "Creation Date") = iProperties.Value("Project", "Creation Date")
End If

Jane Fan
Inventor QA Engineer