Import Feature Properties
Functions Introduced:
Use the function
ProImportfeatIdArrayCreate() to create an array of mappings between the user defined ids and the ids assigned by
Creo Parametric to the entity items in the import feature.
Specify the handle to the feature, for which the user defined ids and ids assigned by Creo Parametric have to be mapped, as the input argument of the function. The function returns an array of mapped ids.
Use the function
ProImportfeatIdArrayMapCount() to get the number of elements in the array of mappings. Use the function
ProImportfeatIdArrayMapGet() to get the mapping of a particular element in the array.
Use the function
ProImportfeatIdArrayFree() to free the array.
Use the function to
ProImportfeatUserIdToItemId() to obtain the id or ids assigned by
Creo Parametric for a user defined id. The function returns multiple ids in an array if the import operation split a particular entity.
For example, if you create a circular edge as a single edge data defined by a single id,
Creo Parametric creates the circle by splitting it into two. If you pass the user defined id as an input to the function
ProImportfeatUserIdToItemId(), the function will return an array of the ids assigned to each half of the circle.
The input arguments of this function are:
• p_feat_handle—Specifies the handle of the import feature.
• user_id—Specifies the identifier of the geometry item.
• item_type—Specifies the type of the geometry item. The types of geometry are:
◦ PRO_SURFACE
◦ PRO_EDGE
◦ PRO_QUILT
Use the function
ProImportfeatItemIdToUserId() to convert a
Creo Parametric item id to an array of user defined ids.
For example, if the edges defined by the user are created as a single edge by
Creo Parametric, and you pass a single item id assigned by
Creo Parametric to the function
ProImportfeatItemIdToUserId(), it will return an array of user ids.
• p_feat_handle—Specifies the handle of the import feature.
• item_id—Specifies the identifier of the geometry item.
• item_type—Specifies the type of the geometry item. The types of geometry are:
◦ PRO_SURFACE
◦ PRO_EDGE
◦ PRO_QUILT
Use the function
ProImportfeatDataGet() to retrieve the parameters assigned to the import feature. The output returned by this function will contains the following:
• Information about the interface type of the import feature.
• The filename from which the import feature is created. This is applicable for import features created from a file.
• The coordinate system with respect to which the import feature is aligned.
• The attributes of the import feature.