UDF References
Functions Introduced:
The function
ProUdfreferenceAlloc() creates a new reference data structure. The data that must be provided to allocate the structure is:
• prompt—The prompt defined for this reference when the UDF was originally set up. It indicates which reference this structure is providing.
• ref_item—A
ProSelection object representing the geometry to use as the reference. You can allocate an embedded datum as the UDF reference. If the reference is external, the selection component path should represent the path to the owning model relative to the external reference assembly specified in the call to
ProUdfCreate(). If this reference item refers to an annotation reference, you can pass
NULL to make the placed annotation incomplete.
• external—PRO_B_TRUE if the reference is external, and PRO_B_FALSE if it is internal.
◦ Internal—The referenced element belongs directly to the model that contains the UDF. For an assembly, this means that the element belongs to the top-level assembly.
◦ External—The referenced element belongs to an assembly member other than the placement member.
The function
ProUdfdataReferenceAdd() adds the reference structure to the ProUdfdata structure.
Use the function
ProUdfreferenceFree() to free the UDF reference handle.