|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
• | ProSolidFeatVisit()—Visits all the features, including those used internally (which are not visible to the Creo Parametric user). You can also use this function to visit the components of an assembly. |
• | ProSolidSurfaceVisit()— Visits the surfaces of the model only if the model has a single body else returns the error PRO_TK_MULTIBODY_UNSUPPORTED. This includes all surfaces created by solid features, but not datum surfaces. |
• | ProSolidQuiltVisit()—Visits all the quilts in a part or an assembly. |
• | ProSolidAxisVisit()—Visits all the axes in a part or an assembly. |
• | ProSolidCsysVisit()—Visits all the coordinate system datums in a part or an assembly. |
• | orientation—Specifies the shell orientation. If this field is 1, the shell is oriented outward, if it is -1, the shell is inward oriented meaning it is a void. |
• | first_face—Specifies the index in the array of ProSldsurfaceShellface objects. |
• | number_of_faces—Specifies the total number of shell faces. |
• | ambient_shell—Specifies the index in the array of ProSldsurfaceShellorder objects. |
• | PRO_REGEN_NO_FLAGS—Equivalent to passing no flags. |
• | PRO_REGEN_CAN_FIX—Allows the user to interactively fix the model using the user interface, if regeneration fails. This bit flag needs to be set only in case of interactive applications. If this option is not included, the user interface does not update even if regeneration is successful. Use ProWindowRepaint() and ProTreetoolRefresh() to perform the update if needed. Also, this bit flag must be set only in the Resolve mode. Otherwise, ProSolidRegenerate() returns PRO_TK_BAD_CONTEXT. |
• | PRO_REGEN_ALLOW_CONFIRM—This flag has been deprecated from Creo Parametric 4.0 M030. Allows the user to interactively select the option of retaining failed features and children of failed features via a pop-up
dialog box, if regeneration fails. This bit flag must be set only in the No-Resolve mode. Otherwise, ProSolidRegenerate() returns PRO_TK_BAD_CONTEXT. Note
The interactive dialog box which provided an option to retain failed features and children of failed features, if regeneration
fails is no longer supported. Creo Parametric displays a warning message which gives details of failed features.
|
• | PRO_REGEN_UNDO_IF_FAIL—Allows the user to undo the failed regeneration and restore the previous status. This flag needs to be set only in the No-Resolve
mode. Otherwise, ProSolidRegenerate() returns PRO_TK_BAD_CONTEXT. The result obtained may be different from the one attained by using the Restore option in the Resolve mode. Restore in the Resolve mode can be used immediately after the first failure. But undo in the No-Resolve mode due to this bit flag
happens only after all the features are regenerated or failed. In some cases, the undo may not happen at all. Note
The bit flags PRO_REGEN_ALLOW_CONFIRM and PRO_REGEN_UNDO_IF_FAIL are not compatible with each other. Setting both of them together will result in PRO_TK_BAD_CONTEXT.
|
• | PRO_REGEN_SKIP_DISALLOW_SYS_RECOVER—Skips the preparation for failure recovery. If this option is used, Undo Changes is possible if a failure occurs. This option is used only in conjunction with PRO_REGEN_CAN_FIX. |
• | PRO_REGEN_UPDATE_INSTS—Updates instances of the solid in memory. This may slow down the regeneration process. |
• | PRO_REGEN_RGN_BCK_USING_DISK—Stores the backup model on the disk. This is useful only if PRO_REGEN_CAN_FIX is set. |
• | PRO_REGEN_FORCE_REGEN—Forces the solid to fully regenerate. This will regenerate every feature in the solid. If not set, Creo Parametric uses its internal algorithm to determine which features to regenerate. |
• | PRO_REGEN_TOP_ASM_ONLY—Forces only top level assembly to regenerate. This flag forces the regeneration of all the features and components that are
defined in the specified top level assembly, even when they are considered up-to-date. The features and components from the
low level assembly that are essential for the correct assembly regeneration results, might also be regenerated during the
regeneration process. However, they are not excluded from the regeneration process. Note
This flag cannot be used with PRO_REGEN_FORCE_REGEN.
|
• | PRO_REGEN_UPDATE_ASSEMBLY_ONLY—Updates assembly and sub-assembly placements and regenerates assembly features and intersected parts. If the affected assembly
is retrieved as a simplified representation, this flag will update the locations of the components. If the flag is not set,
the component locations are not updated by default when the simplified representation is retrieved. Note
This flag cannot be used with PRO_REGEN_FORCE_REGEN.
|
• | PRO_REGEN_RESUME_EXCL_COMPS—Enables Creo Parametric to resume available excluded components of the simplified representation during regeneration. This can result in a more accurate
update of the simplified representation. Note
Component models which are not in session at the time of the call to ProSolidRegenerate() will not be retrieved due to this option.
|
• | PRO_REGEN_NO_RESOLVE_MODE — Specifies the No-Resolve mode introduced in Pro/ENGINEER Wildfire 5.0. This is the default mode in Creo Parametric. In this mode, if a model and feature regeneration fails, failed features and children of failed features are created and regeneration of other features continues. |
• | PRO_REGEN_RESOLVE_MODE — Specifies the Resolve mode. In this mode, you can continue with the Pro/ENGINEER Wildfire 4.0 behavior, wherein if a model and feature regeneration fails, the failure needs to be resolved before regeneration can be
resumed. You can also switch to the Resolve mode by setting the configuration option regen_failure_handling to resolve_mode in the Creo Parametric session. In Creo Parametric 7.0.1.0 and later, the configuration option regen_failure_handling has been deprecated. If a model and feature regeneration fails and if you want to use Resolve mode, you need to contact PTC
Customer Support. For more information, refer to the section Contacting PTC Technical Support in the Getting Started with Creo TOOLKIT guide.
Note
Setting the configuration option to switch to Resolve mode ensures the old behavior as long as you do not retrieve the models
saved under the No-Resolve mode. To consistently preserve the old behavior, use Resolve mode from the beginning and throughout
your Creo Parametric session. Temporarily setting the bit flag PRO_REGEN_RESOLVE_MODE in the relevant functions does not ensure the old behavior.
|
• | PRO_REGEN_INTERACTIVE_UI—Supports an interactive user interface in Creo Parametric. For example, if an error occurs while reading or executing an imported PRO_PROGRAM_FILE file, a dialog box opens inCreo Parametric asking you if you want to continue with the operation. |
• | PRO_SOLID_REGENERATED—Specifies that the model is up-to-date and requires no regeneration. |
• | PRO_SOLID_NEEDS_REGENERATION—Specifies that the model has changed and requires regeneration. |
• | PRO_SOLID_FAILED_REGENERATION—Specifies that the regeneration has failed or has warnings. Note
Models with certain contents, such as circular references or assembly analysis features, will never return a fully “regenerated”
status. Thus, this status should not provide an absolute restriction. If the flag remains in the “PRO_SOLID_NEEDS_REGENERATION” status through two successful regenerations, the model could be considered up-to-date.
|
• | PRO_SOLID_CONNECT_FAILED—Specifies that the model has successfully regenerated, however, the connect operation for mechanisms in the solid model has failed. This status is applicable only for assemblies which have moving components. |
• | Saved Views |
• | Layer state |
• | Annotations |
• | Cross section |
• | Exploded view |
• | Simplified representation |
• | Model style |
typedef struct pro_model_item
{
ProType type;
int id;
ProMdl owner;
}ProCombstate;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
• | cs_name—The name of the combined state. |
• | cs_ref_arr—An array of reference states of the type ProModelitem. This array can contain states of the following types:
|
• | p_clip_opt—A pointer to the value of the cross section clip. This is applicable only in case of a valid reference of the type PRO_XSEC. The PRO_XSEC item represents a ProXsec object or a zone feature. The values for the cross section clip are specified by the enumerated type ProCrossecClipOpt. The possible values are as follows:
|
• | p_is_expld—A ProBoolean value that specifies whether the combined state is exploded. This value is available only if when a valid PRO_EXPLD_STATE reference state is retrieved. It is not available for Creo Parametric parts since an exploded state does not exist in the part mode. |
• | p_solid—Specify the solid model in which you want to create a new combined state. |
• | new_name—Specify the name of the new combined state. |
• | ref_arr—Specify the array of reference states. Refer to the description of the argument cs_ref_arr of the function ProCombstateDataGet() for the valid reference states. |
• | clip_opt—Specify the value of the cross section clip. Refer to the description of the argument p_clip_opt of the function ProCombstateDataGet() for more information. |
• | is_expld—Specify PRO_B_TRUE if the combined state is exploded, else specify PRO_B_FALSE. This argument needs to be set only in case of a valid PRO_EXPLD_STATE reference state. It is not applicable for Creo Parametric parts since an exploded state does not exist in the part mode. |
• | cs_item—Specifies a pointer to the combined state item from which the state needs to be retrieved. |
• | annotation_state—Flag to set the specified combined state to annotation state. Pass the value of annotation_state as PRO_B_TRUE if display of annotations should be controlled by combined state. Pass it as PRO_B_FALSE if display of annotations should be controlled by layers. |
• | supplgeom_state—Flag to set the specified combined state to supplementary geometry state. Pass the value of supplgeom_state as PRO_B_TRUE if display of supplementary geometry should be controlled by combined state. Pass it as PRO_B_FALSE if display of supplementary geometry should be controlled by layers. Note
If value of the input argument supplgeom_state is set to PRO_B_TRUE, the value of annotation_state also, must be set to PRO_B_TRUE.
The function returns PRO_TK_NO_CHANGE if the current states of annotations and supplementary geometry in the combined state are same as the requested states.
|
typedef struct pro_model_item
{
ProType type;
int id;
ProMdl owner;
}ProLayerstate;
|
|
|
|
|
|
|
|
|
|
|
|
|
• | p_solid—Specify the solid model in which you want to create a new layer state. |
• | state_name—Specify the name of the new layer state. The name can only consist of alphanumeric, underscore, and hypen characters. |
• | layers—Specify an array of reference layers. |
• | disp_arr—Specify an array of display statuses. The number of display statues is equal to the number of reference layers. |
• | hidden_items—Specify an array of hidden items.
Note
ProLayerItem of type PRO_LAYER_LAYER is not supported in the function ProLayerstateCreate(), when you create a new layer state.
|
• | Datum plane |
• | Datum point |
• | Datum axes |
• | Datum coordinate system |
• | Facets |
• | p_solid—The solid whose outline is to be calculated. |
• | matrix —The orientation matrix (with respect to the base coordinate system) that will be used to calculate the outline. |
• | excludes—An array of types that are excluded from the outline calculations such as nongeometric features and is defined by the enumerated data type ProSolidOutlExclTypes . If you set this to PRO_OUTL_EXC_NOT_USED , nothing is excluded. |
• | num_excludes—Specifies the number of exclusions in the array. |
• | filter_action—The filter defined by the callback function ProFeatureFilterAction(). If this is null, all features are considered while computing the outline. |
• | app_data —The application data that is passed to the filter functions. |
• | solid—The part or assembly whose accuracy you want to set. |
• | type—The type of the accuracy. The valid values are:
|
• | accuracy—The value of the accuracy that you want to set. The unit used for the absolute accuracy of the dimension is based on the
unit of the part or assembly. Note
Regenerate the model using the function ProSolidRegenerate() after setting the accuracy using ProSolidAccuracySet().
|
geometry_epsilon = max_model_size x relative_accuracy x 0.08333
• | Basic Quantities—The basic units and dimensions of the system of units. For example, consider the Centimeter Gram Second (CGS)
system of unit. The basic quantity for this system of unit is:
|
• | Derived Quantities—The derived units are those that are derived from the basic quantities. For example, consider the Centimeter
Gram Second (CGS) system of unit. The derived quantities for this system of unit are as follows:
|
• | Pre-defined system of unit—This system of unit is provided by default. |
• | Custom-defined system of unit—This system of unit is defined by the user only if the model does not contain standard metric or nonmetric units or if the material file contains units that cannot be derived from the predefined system of units or both. |
• | Mass Length Time (MLT)
|
• | Force Length Time (FLT)
|
typedef struct {
ProMdl owner;
ProName name;
}ProUnitsystem;
typedef struct {
ProMdl owner;
ProName name;
}ProUnititem;
• | mdl—Specifies a handle to the model. |
• | system—Specifies a handle to the system of unit. |
• | new_name—Specifies the new name for the system. |
• | type—The type of system of unit. It can have the following values:
|
• | mdl—Specifies a handle to the model. |
• | type—Specifies the new type of system of unit. |
• | name—Specifies the name of the new system of unit. |
• | units—Specifies the set of units for the new system of unit created. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
• | PRO_UNITTYPE_LENGTH |
• | PRO_UNITTYPE_MASS |
• | PRO_UNITTYPE_FORCE |
• | PRO_UNITTYPE_TIME |
• | PRO_UNITTYPE_TEMPERATURE |
• | PRO_UNITTYPE_ANGLE |
• | PRO_UNITTYPE_AREA |
• | PRO_UNITTYPE_VOLUME |
• | PRO_UNITTYPE_VELOCITY |
• | PRO_UNITTYPE_ACCELERATION |
• | PRO_UNITTYPE_ROTATIONAL_VELOCITY |
• | PRO_UNITTYPE_ROTATIONAL_ACCELERATION |
• | PRO_UNITTYPE_FREQUENCY |
• | PRO_UNITTYPE_DENSITY |
• | PRO_UNITTYPE_TORQUE_MOMENT |
• | PRO_UNITTYPE_FORCE_ALONG_CURVE |
• | PRO_UNITTYPE_FORCE_PER_LENGTH |
• | PRO_UNITTYPE_MOMENT_ALONG_CURVE |
• | PRO_UNITTYPE_MOMENT_PER_LENGTH |
• | PRO_UNITTYPE_FORCE_OVER_SURFACE |
• | PRO_UNITTYPE_FORCE_PER_AREA |
• | PRO_UNITTYPE_MOMENT_PER_VOLUME |
• | PRO_UNITTYPE_PRESSURE |
• | PRO_UNITTYPE_STRESS |
• | PRO_UNITTYPE_YOUNG_MODULUS |
• | PRO_UNITTYPE_MOMENT_OVER_SURFACE |
• | PRO_UNITTYPE_MOMENT_PER_AREA |
• | PRO_UNITTYPE_TRANSLATIONAL_STIFFNESS |
• | PRO_UNITTYPE_ROTATIONAL_STIFFNESS |
• | PRO_UNITTYPE_THERMAL_EXPANSION_COEFF |
• | PRO_UNITTYPE_MOMENT_OF_INERTIA_SECTION |
• | PRO_UNITTYPE_MOMENT_OF_INERTIA_SECTION |
• | PRO_UNITTYPE_MASS_MOMENT_OF_INERTIA |
• | PRO_UNITTYPE_ENERGY |
• | PRO_UNITTYPE_WORK |
• | PRO_UNITTYPE_HEAT |
• | PRO_UNITTYPE_POWER |
• | PRO_UNITTYPE_HEAT_TRANSFER_RATE |
• | PRO_UNITTYPE_TEMPERATURE_GRADIENT |
• | PRO_UNITTYPE_HEAT_FLUX |
• | PRO_UNITTYPE_HEAT_FLUX_PER_LENGTH |
• | PRO_UNITTYPE_THERMAL_CONDUCTIVITY |
• | PRO_UNITTYPE_CONVECTION_COEFF |
• | PRO_UNITTYPE_CONVECTION_COEFF_PER_AREA |
• | PRO_UNITTYPE_SPECIFIC_HEAT |
• | PRO_UNITTYPE_THERM_RES_FORCE |
• | PRO_UNITTYPE_THERM_RES_MOMENT |
• | PRO_UNITTYPE_WARPING_COEFFICIENT |
• | PRO_UNITTYPE_MASS_PER_LENGTH |
• | PRO_UNITTYPE_MASS_INERTIA_PER_LENGTH |
• | PRO_UNITTYPE_DAMPING_COEFFICIENT |
• | PRO_UNITTYPE_HEAT_RATE_PER_LENGTH |
• | PRO_UNITTYPE_DIMENSIONLESS |
• | PRO_UNITTYPE_MASS_PER_AREA |
• | PRO_UNITTYPE_ROT_DAMPING_COEFF |
• | PRO_UNITTYPE_VOLUME_HEAT_GEN |
• | PRO_UNITTYPE_TRANS_STIFF_PER_AREA |
• | PRO_UNITTYPE_FORCE_PER_VOLUME |
• | PRO_UNITTYPE_CURVATURE |
• | PRO_UNITTYPE_CURVATURE_SQ |
• | PRO_UNITTYPE_LINEAR_MOMENTUM |
• | PRO_UNITTYPE_ANGULAR_MOMENTUM |
• | PRO_UNITTYPE_INV_STRESS |
• | PRO_UNITTYPE_TRANS_STIFF_PER_LENGTH |
• | PRO_UNITTYPE_ROT_STIFF_PER_LENGTH |
• | PRO_UNITTYPE_DAMPING_COEFF_PER_LENGTH |
• | PRO_UNITTYPE_INV_VELOCITY |
• | PRO_UNITTYPE_CONVECTION_COEFF_PER_VOLUME |
• | PRO_UNITTYPE_CONVECTION_COEFF_PER_LENGTH |
• | PRO_UNITTYPE_CONVECTION_COEFF_PER_POINT |
• | PRO_UNITTYPE_RADIATION_COEFF_PER_VOLUME |
• | PRO_UNITTYPE_RADIATION_COEFF_PER_AREA |
• | PRO_UNITTYPE_RADIATION_COEFF_PER_LENGTH |
• | PRO_UNITTYPE_RADIATION_COEFF_PER_POINT |
• | PRO_UNITTYPE_ENERGY_PER_VOLUME |
• | PRO_UNITTYPE_ENERGY_PER_AREA |
• | PRO_UNITTYPE_ENERGY_PER_LENGTH |
• | PRO_UNITTYPE_LENGTH_SPECTDENS |
• | PRO_UNITTYPE_VELOCITY_SPECTDENS |
• | PRO_UNITTYPE_ACCELERATION_SPECTDENS |
• | PRO_UNITTYPE_STRESS_SPECTDENS |
• | PRO_UNITTYPE_STRAIN_SPECTDENS |
• | PRO_UNITTYPE_ROTATIONAL_VELOCITY_SPECTDENS |
• | PRO_UNITTYPE_ROTATIONAL_ACCELERATION_SPECTDENS |
• | PRO_UNITTYPE_FORCE_SPECTDENS |
• | PRO_UNITTYPE_MOMENT_SPECTDENS |
• | PRO_UNITTYPE_ROTATIONAL_LENGTH_SPECTDENS |
• | PRO_UNITTYPE_MASS_FLOW_RATE |
• | PRO_UNITTYPE_VISCOSITY |
• | PRO_UNITTYPE_VOLUME_FLOW The following units have been added to the volume flow:
|
• | conversion—Specifies the conversion factor for a unit in terms of scale of the unit and an offset value.Example - Consider the formula to convert temperature from Centigrade Note
Creo Parametric scales the length dimensions of the model using the factor specified. If the scale is modified, the model is regenerated.
When you scale the model, the model units are not changed. Imported geometry cannot be scaled.
|
• | ref_unit— Specifies the reference unit for the conversion. |
• | unit—Unit to be modified. |
• | type—Type of unit specified by the enumerated data type ProUnitType. |
• | expression—Expression of the unit specified by the character string using the ProPath object. |
• | mdl—The model that owns the units. |
• | type—Type of unit specified by the enumerated data type ProUnitType. |
• | expression—Expression of the unit specified by the character string using the ProPath object. |
• | unit— Specifies the unit to be modified. |
• | conversion—Specifies the conversion factor for the unit. |
• | ref_unit—Specifies the reference unit. |
• | PRO_UNITCONVERT_SAME_DIMS—Specifies the option to keep the dimension values despite the change in units. |
• | PRO_UNITCONVERT_SAME_SIZE—Specifies the option to scale the dimension values to keep the same size for the model. |
1. | Update the system of unit for all the parts separately. Update the parts using the following procedure:
|
2. | Update all the sub-assemblies, that either need to be changed, or contain already processed components. |
3. | Update the topmost level assembly. |
|
|
|
|
|
|
• | solid_or_body—ProSelection handle to the solid or body. |
• | csys_sel—ProSelection handle for the coordinate system. If this value is NULL, the function uses the default coordinate system of the input solid.
Note
You can select the coordinate system using the component path of component or subassembly whose mass properties are required.
|
• | format—Format of the mass property file. This is specified using the enumerated data type ProMassPropertyFormat and the valid values are:
|
• | volume—The volume. |
• | surface_area—The surface area. |
• | density—The density is not defined until a material with well-defined density is assigned. |
• | mass—The mass. |
• | center_of_gravity[3]—The center of gravity (COG). |
• | coor_sys_inertia[3][3]—The inertia matrix. |
• | coor_sys_inertia_tensor[3][3]—The inertia tensor. |
• | cg_inertia_tensor[3][3]—The inertia about the COG. |
• | principal_moments[3]—The principal moments of inertia (the eigenvalues of the COG inertia). |
• | principal_axes[3][3]—The principal axes (the eigenvectors of the COG inertia). |
• | solid—Handle to the part or assembly specified by the ProSolid object. |
• | csys_name—Name of the coordinate system. If this is Null, the function uses the default coordinate system. |
• | dens_use_flag—Value of the density flag specified using the enumerated data type ProMPDensUse and the valid values are as follows:
|
• | density—Density used while calculating mass properties depending on the value specified for the input argument dens_use_flag. |
• | solid —The handle to top assembly or component/sub-assembly. |
• | csys_sel—Selection of coordinate system specified using the array of ProSelection object. If this is NULL, the function uses the default coordinate system of the specified solid. |
• | Create or delete materials. |
• | Set the current material. |
• | Retrieve and set the material types and properties. |
• | Read and write to material files. |
• | ProMaterial—A structure that contains a material name and the part (ProSolid object) to which it is assigned. This handle is used in older material functions. |
• | ProMaterialItem—Another name for a ProModelitem, it contains the material owner, ID, and type (PRO_RP_MATERIAL). |
|
|
|
|
|
• | part — Specifies the part. |
• | matl_name — Specifies the material name. |
• | p_matl_data — This argument has been deprecated. Pass NULL to create an empty material item whose properties can be set by ProMaterialPropertySet(). |
• | When the master material on a part with a single body is changed, the appearance, density, and sheet metal properties of the body are updated. When you create a new body, it is automatically assigned the material assigned to the part. You can also explicitly assign a material to a body. In this case, even when the master material on the model is changed, the appearance, density, and sheet metal properties of the body are not changed. |
• | By default, when assigning a material to a sheet metal part, the function ProMaterialCurrentSet() might modify the values of the sheet metal properties such as Y factor and bend table according to the material file definition.
This triggers a modification of the developed length parameters of the sheet metal part. To prevent this modification, set
the value of the configuration option material_update_smt_bend_table to never_replace. To trigger a modification of the developed length parameters of the sheet metal part, set the configuration option material_update_smt_bend_table to always_replace. The default value is always_replace. Call ProSolidRegenerate() to trigger the regeneration and recalculate the developed length dimension of the part. See the Creo Parametric Sheetmetal online help for more information on Bend Allowance.
|
• | The function ProMaterialCurrentSet() may change the model display, if the new material has a default appearance assigned to it. |
• | The function may also change the family table, if the parameter PTC_MASTER_MATERIAL is a part of the family table. |
• | You can still use the legacy parameter PTC_MASTER_MATERIAL, however, these legacy parameters do not appear correctly in calculations and reports when you are working with a part that uses multiple materials. |
• | PRO_MATERIAL_TYPE_STRUCTURAL_ISOTROPIC—Specifies a material with an infinite number of planes of material symmetry, making the structural material properties equal in all directions. |
• | PRO_MATERIAL_TYPE_STRUCTURAL_ORTHOTROPIC—Specifies a material with symmetry relative to three mutually perpendicular planes for structural material properties. |
• | PRO_MATERIAL_TYPE_STRUCTURAL_TRANS_ISOTROPIC—Specifies a material with rotational symmetry about an axis for structural material properties. These properties are equal for all directions in the plane of isotropy. |
• | PRO_MATERIAL_TYPE_THERMAL_ISOTROPIC—Specifies a material with an infinite number of planes of material symmetry, making the thermal material properties equal in all directions. |
• | PRO_MATERIAL_TYPE_THERMAL_ORTHOTROPIC—Specifies a material with symmetry relative to three mutually perpendicular planes for thermal material properties. |
• | PRO_MATERIAL_TYPE_THERMAL_TRANS_ISOTROPIC — Specifies a material with rotational symmetry about an axis for thermal material properties. These properties are equal for all directions in the plane of isotropy. |
• | PRO_MATERIAL_TYPE_FLUID—Specifies a material with fluid properties. |
• | PRO_MATERIAL_SUB_TYPE_LINEAR—Specifies the linear elastic material type. This is the default value. |
• | PRO_MATERIAL_SUB_TYPE_HYPERELASTICSpecifies the hyperelastic (non-linear) material types, such as rubber, that exhibit instantaneous elastic response to large strains. |
• | PRO_MATERIAL_SUB_TYPE_ELASTOPLASTIC—Specifies the elastoplastic (non-linear) material types, such as metals, with the following isotropic hardening laws:
|
• | PRO_MATERIAL_FATIGUE_FINISH_FORGED |
• | PRO_MATERIAL_FATIGUE_FINISH_WATER_CORRODED |
• | PRO_MATERIAL_FATIGUE_FINISH_SEA_WATER_CORRODED |
• | PRO_MATERIAL_FATIGUE_FINISH_NITIRIDED |
• | PRO_MATERIAL_FATIGUE_FINISH_SHOT_PEENED |
|
|
|
|
|
|
|
|
|
• | body—Body for which the material needs to be assigned. |
• | mtl—Name of the material that needs to be assigned to the body. |
• | p_material—Specifies the material as defined by ProMaterialItem. |
• | prop_type—Specifies the material property type as defined by ProMaterialPropertyType. |
• | p_value—Specifies the material property value. |
• | p_units—Specifies the material property units. Note
This function expects the Creo Parametric unit name for some unit properties. To obtain this name, pass the user-visible units through ProUnitByExpressionInit().
|
p_value
|
p_units
|
Is the property already created in the material?
|
Result
|
---|---|---|---|
Any value
|
Appropriate units for this property, or NULL, if the property is unitless
|
NO
|
Property is created with the given units and value.
|
Any value
|
NULL
|
NO
|
Property is created with the given value using the appropriate units from the owner model.
|
Any value
|
Current units for this property, or NULL, if the property is unitless
|
YES
|
Property value is changed to the new value.
|
Any value
|
NULL
|
YES
|
Property value is changed to the new value (which is interpreted as being in the units from the owner model)
|
The current value
|
New appropriate units
|
YES
|
Property units are changed but the value is interpreted as being for the new units.
|
NULL
|
New appropriate units
|
YES
|
Property units are changed and the current value is converted to the new units.
|
• | <name>.mtl—Specifies a new material file format. |
• | <name>.mat—Specifies an old material file format (pre-Wildfire 3.0). |