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

I-Logic for Custom properties

Hello

 

Can anyone check below i-logic code?

=============================

Dim propertyName1 As String = "Rev Desc"
Dim propertyValue1 As String = ""

customPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")
Try
      prop = customPropertySet.Item(propertyName1)
Catch
      customPropertySet.Add("", propertyName1)
  End Try
  
	Dim propertyName2 As String = "Rev Date"
Dim propertyValue2 As String = "mm/dd/yyyy"

customPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")
Try
      prop = customPropertySet.Item(propertyName2)
Catch
      customPropertySet.Add("mm/dd/yyyy", propertyName2)   
	  
  End Try

	Dim propertyName3 As String = "Salvagnini Proficient"
Dim propertyValue3 As String = "Yes"

customPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")
Try
      prop = customPropertySet.Item(propertyName3)
Catch
      customPropertySet.Add("Yes/No", propertyName3)  
	  
  End Try
====================================================
The problem on the result i have is the "Rev Date" shown as text meanwhile the purpose i need is "Date"
and the 2nd one on string "Salvagnini proficient" it's needs to be a multpile choices 'YES'NO"

Please see attached the wrong result and what i need.Custome Properties (wrong).JPG

Thanks