JUST a note for those using this method. The documentation iswrong. The return value is actually 0 if correct, 1 if wrong. Thedocument states the opposite.
CustomPropertyManager::Add2
Description
This method adds a custom property to a configuration or modeldocument.
NOTE: This method is not currently implemented for features.
Syntax (OLE Automation)
Retval = CustomPropertyManager.Add2 ( FieldName, FieldType,FieldValue)
Input:
(BSTR) FieldName
Name of custom property
Input:
(long) FieldType
Type of custom property as defined in swCustomInfoType_e
Input:
(BSTR) FieldValue
Value of custom property
Output:
(long) Retval
1 if custom property is added, 0 if not
SolidworksApi macros
CustomPropertyManager::Add2
Description
This method adds a custom property to a configuration or modeldocument.
NOTE: This method is not currently implemented for features.
Syntax (OLE Automation)
Retval = CustomPropertyManager.Add2 ( FieldName, FieldType,FieldValue)
Input:
(BSTR) FieldName
Name of custom property
Input:
(long) FieldType
Type of custom property as defined in swCustomInfoType_e
Input:
(BSTR) FieldValue
Value of custom property
Output:
(long) Retval
1 if custom property is added, 0 if not
SolidworksApi macros