Import Feature Attributes
Attributes define the action to be taken when creating the import feature. Following are the defined attributes:
attempt_make_solid—Specifies whether the import feature is to be created as a solid or a surface type. Set the value to 1 to create an import feature of solid type. Set it to 0 to create a surface type of import feature.
Note:
 
If the import feature is an open surface, setting attempt_make_solid to 1 does not make the import feature of solid type.
cut_or_add—Specifies whether the solid type of import feature is to be created as a cut or a protrusion. This argument is valid only if attempt_make_solid is set to 1. Set the value to 1 to cut the solid import feature from the intersecting solid. Set it to 0 to create it as a protrusion.
Note:
 
When attempt_make_solid is set to 0, the value assigned to cut_or_add is not considered.
join_surfaces—Specifies whether the import feature is created as a single quilt (joined surface) or separate surfaces (as it was in the original file) if it is of surface type. This argument is valid only if attempt_make_solid is set to 0. If the value is set to 1, all surfaces that can be joined are joined to form a single quilt.
add_bodies— Creates the same body structure as is present in the source file.
body_use_opt—Specifies the body options you can use while importing a feature and is defined by the enumerated data type ProImportBodyUseOpts. The valid values are as follows:
PRO_IMPORT_BODY_USE_DEFAULT—Imports feature in the default body.
PRO_IMPORT_BODY_USE_NEW—Imports feature in a new body.
PRO_IMPORT_BODY_USE_ALL—Currently not supported.
PRO_IMPORT_BODY_USE_SELECTED—Imports feature in a selected body.
body_arr
ProArray of bodies to be selected. By default, the size is 1. Set this value as NULL if you do not want to use any bodies in the import operation.
¿Fue esto útil?