Autodesk Vault ProfessionalVault API

AddAssociationPropertyDefinition Method

Autodesk.Connectivity.WebServicesPropertyService

Adds a Property Definiton for use on associations.

Required Permissions

ManagePropertyDefinition

Syntax

public AssocPropDefInfo AddAssociationPropertyDefinition(
   System.string systemName,
   System.string displayName,
   DataType dataType,
   System.bool isActive,
   System.object defaultValue,
   EntClassCtntSrcPropCfg[] entityClassCtntSrcPropDefs,
   System.object[] listValues,
   AssocPropTyp relClass
)
Public Function AddAssociationPropertyDefinition( _
   ByVal systemName As System.String, _
   ByVal displayName As System.String, _
   ByVal dataType As DataType, _
   ByVal isActive As System.Boolean, _
   ByVal defaultValue As System.Object, _
   ByVal entityClassCtntSrcPropDefs() As EntClassCtntSrcPropCfg, _
   ByVal listValues() As System.Object, _
   ByVal relClass As AssocPropTyp _
) As AssocPropDefInfo

Parameters

NameDescription
systemNameThe system name of the Property Definition. This value must be a GUID with the following format (lower case): xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
displayNameThe display name.
dataTypeThe data type.
isActiveIs the property definition active.
defaultValueThe default value.
entityClassCtntSrcPropDefsThe mappings to content source properties.
listValuesA list of legal values for the property. A null value means that any value can be used. Only applies to String and Numeric types.
relClassThe type of association that the property applies to.

Return Value

The new Association Property Definition object.

See Also