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

Custom Properties using Ilogic

I am using ilogic to add custom iproperties to existing files as we modify them and I am stumped on how to get the custom iproperty to come in as Date instead of Text.

 

This is the ilogic that I have created. It adds the custom iproperty as Text and I am hoping to add it as Date.  What do I need to add or change to the ilogic that will add these properties as a Date type?

 

customPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")

Dim iprop(2) As String
iprop(1) = "Released for Construction"
iprop(2) = "Released for Review"

Try
      prop = customPropertySet.Item(iprop(1))
	  prop = customPropertySet.Item(iprop(2))
Catch
      customPropertySet.Add("", iprop(1))	  
	  customPropertySet.Add("", iprop(2))
	  
End Try