Dimension References
 
The functions explained in this section enable you to work with semantic dimension references.
Function Introduced:
The function ProDimensionAdditionalRefsAdd() adds additional semantic references in the specified dimension to provide users or downstream applications additional semantic data beyond the dimension’s attachments. The input arguments are:
dim—Specifies a dimension.
type—Specifies the type of reference using the enumerated data type ProDimensionReferenceType. The type is classified based on the list to which the references are added. The valid values are:
PRO_DIM_REF_FIRST—Adds the semantic references to the first list of references.
PRO_DIM_REF_SECOND—Adds the semantic references to the second list of references.
PRO_DIM_SRF_COLL—Adds the semantic references to the collection of surfaces.
Note:
 
When a reference includes more than one collection, the function ProDimensionAdditionalRefsAdd() returns the error PRO_TK_MAX_LIMIT_REACHED and no reference is added.
refs —Specifies a ProArray of references that will be added to the specified dimension.
Note:
 
Currently, the reference types PRO_ANNOT_REF_SINGLE and PRO_ANNOT_REF_SRF_COLLECTION are supported.
The function ProDimensionAdditionalRefsGet() returns a ProArray of semantic references of the specified type for a dimension. These references are added through the function ProDimensionAdditionalRefsAdd() or through the references part of the annotation feature dialog. In the input argument type, specify the type of reference using the enumerated data type ProDimensionReferenceType. Use the function ProAnnotationreferencearrayFree() to release the memory assigned to the ProArray of references.
Use the function ProDimensionAdditionalRefDelete() to delete the specified semantic reference for a dimension. These references are added through the function ProDimensionAdditionalRefsAdd() or through the references part of the annotation feature dialog. The references are specified by their index number which start from 0. . The index is ignored if the type of reference is surface collection, as only one reference of the type PRO_DIM_SRF_COLL can exist.
The input argument for both the functions ProDimensionAdditionalRefsGet() and ProDimensionAdditionalRefDelete() specifies the type of reference using the enumerated data type ProDimensionReferenceType. The type is classified based on the list to which the references are added. The valid values are:
PRO_DIM_REF_FIRST—Adds the semantic references to the first list of references.
PRO_DIM_REF_SECOND—Adds the semantic references to the second list of references.
PRO_DIM_SRF_COLL—Adds the semantic references to the collection of surfaces.
这对您有帮助吗?