IUDPExtension Methods
All methods are same as the methods in the C UDP implementation. The changes to the methods signatures are just to conform to the Python style.
Mandatory Methods
These methods must be implemented in the UDP Python script as methods of UDPExtension class.
GetLengthParameterUnits()
- returns string.
GetPrimitiveTypeInfo()
- returns UDPPrimitiveTypeInfo.
GetPrimitiveParametersDefinition2()
- returns a list of UDPPrimitiveParameterDefinition2 or None on failure
AreParameterValuesValid2(errorMsg, udpParams)
- errorMsg is a c# list of strings
- udpParams is a c# list of UDPParam
- returns True if udpParams are valid, False otherwise.
CreatePrimitive2(funcLib, udpParams)
- funcLib is UDMFunction library
- udpParams is a c# list of UDPParam
- returns True on success, False on failure.
Optional Methods
These methods, which have default implementations, can be implemented as methods of UDPExtension class as needed. Default methods will return NULL or FALSE depending on the return type.
GetPrimitiveParameters()
- returns Python list of strings or NULL
GetRegisteredFaceNames()
- returns Python list of strings or NULL
GetRegisteredEdgeNames()
- returns Python list of strings or NULL
GetRegisteredVertexNames()
- returns Python list of strings or NULL
ProjectParametersOnToValidPlane2(currentUDPParams, projectedUDPParams)
- currentUDPParams is a list of UDPParam
- projectedUDPParams is a list of UDPParam
- returns True on success, False on failure.
MapParametersDefinitionVersions2(oldVersion, oldUDPParams)
- oldVersion is a string
- oldUDPParamsis a list of UDPParam
- returns Python list of UDPParam or NULL
GetOldPrimitiveParametersDefinition2(version )
- version is a string
- returns a list of UDPPrimitiveParameterDefinition2 or None on failure.