Windchill REST Services Domain Capabilities > PTC Domains > PTC Product Management Domain > Functions Available in the PTC Product Management Domain
Functions Available in the PTC Product Management Domain
The following function is available in the PTC Product Management domain:
GetAssignedExpression()
The function GetAssignedExpression() returns the assigned expressions for Part, PartUse, and UsageOccurrence entities. The function is bound to these entities. You can specify a single entity as the input parameter. Basic and advanced types of expressions are supported.
The information related to assigned expressions is retrieved using the complex type, AssignedExpression, which is defined in the PTC Product Platform Management domain.
To retrieve the assigned expressions for multiple objects, use the GetAssignedExpressions action defined in the PTC Product Platform Management domain. See the section Action Available in the PTC Product Platform Management Domain, for more information.
Both dependent and independent expression modes are supported.
GetAllVariantSpecifications()
The function GetAllVariantSpecifications() retrieves all the variant specifications related to the configurable module. It returns all the variant specifications that are created from any iteration or revision of the part.
GetDynamicStructureRepresentation()
The function GetDynamicStructureRepresentation() returns a URL which you can use to download the dynamic structure of a Creo View representation of a Part. The function accepts NavigationCriteriaId as the input parameter. It is an optional parameter. The navigation criteria define which parts and objects are displayed in the dynamic structure. If navigation criteria ID is not specified, the function uses the default navigation criteria to generate the URL for the dynamic structure.
You can use the URL to load the CAD data in the Creo View WebGL Viewer.
The following is an example of the GetDynamicStructureRepresentation() function.
GET Windchill/servlet/odata/ProdMgmt/Parts('{PartId}')/PTC.ProdMgmt.GetDynamicStructureRepresentation()
The following is an example of the GetDynamicStructureRepresentation() function with the navigation criteria ID passed as input parameter.
GET Windchill/servlet/odata/ProdMgmt/Parts('{PartId}')/PTC.ProdMgmt.GetDynamicStructureRepresentation(NavigationCriteriaId='{NavigationCriteriaId}')
GetDynamicStructureRepresentationPVZ()
The function GetDynamicStructureRepresentationPVZ() generates and returns the dynamic structure representation PVZ from a given Part.
Pass NavigationCriteriaId and IncludeAnnotations as the input parameters. The navigation criteria is an optional parameter. If the navigation criteria ID is not specified, the function uses the default navigation criteria. You can specify to either include the annotations or not using true or false, respectively.
The following is an example of the GetDynamicStructureRepresentationPVZ() function with the navigation criteria ID passed as input parameter.
GET Windchill/servlet/odata/ProdMgmt/Parts('{PartId}')/PTC.ProdMgmt.GetDynamicStructureRepresentationPVZ(NavigationCriteriaId='{NavigationCriteriaId}',IncludeAnnotations={IncludeAnnotations})