Synopsis
PDX_MSGT s041_CreateVlPrDf(long option, MDA_PTR prdfsh_ptr, MDA_PTR rprcnt_ptr, MDA_PTR msbr_ptr, int property_type, char *property_name, char *property_description, int unit, void *values, int step_model, MDA_PTR *vlprdf_ptr)
Purpose
Create a STEP (part 41) validation property definition.
Description
This function supports attaching validation properties to both solids as well as shape representations. An example of a solid validation property is illustrated below:
.RS 3 .nf #362=REPRESENTATION('centroid',(#381),#161); #364=PROPERTY_DEFINITION('geometric_validation_property','centroid of cube',#366); #365=PROPERTY_DEFINITION_REPRESENTATION(#364,#362); #366=SHAPE_ASPECT('','solid associated with cube',#174,.F.); #367=SHAPE_REPRESENTATION('',(#150),#161); #368=SHAPE_DEFINITION_REPRESENTATION(#369,#367); #369=PROPERTY_DEFINITION('','shape for solid with which properties are associated',#366); #381=CARTESIAN_POINT('centre point',(2.0,2.0,2.0)); .fi .RE
An example of a validation property attached to a shape representation is illustrated below:
.RS 3 .nf #391=PROPERTY_DEFINITION('geometric_validation_property','volume of assembly',#177); #392=MEASURE_REPRESENTATION_ITEM('volume measure', VOLUME_MEASURE(76.566), #407); #397=REPRESENTATION('volume',(#392),#320); #399=PROPERTY_DEFINITION_REPRESENTATION(#391,#397); #407=DERIVED_UNIT((#408)); #408=DERIVED_UNIT_ELEMENT(#154,3); #409=NAME_ATTRIBUTE('CUBIC INCH',#407); .fi .RE
Input
option
Options (not used).
prdfsh_ptr
Database pointer of product definition shape
rprcnt_ptr
Database pointer of representation context
msbr_ptr
Database pointer of manifold solid or MDA_NULL_PTR
property_type
S041_VOLUME
S041_AREA
S041_CENTROID
property_name
Value for name attribute of MEASURE_REPRESENTATION_ITEM
property_description
Value for description attribute of PROPERTY_DEFINITION
unit
Validation property unit (see s041_CreateRprCnt for valid values)
values
Array of values for validation property
step_model
STEP model to create entities in
Output
vlprdf_ptr
Database pointer of validation property definition.
Return
S041_NOERR
.fi