# Synopsis

PDX_MSGT s041_AttachValidationProperty(long option, MDA_PTR prdfshPtr, MDA_PTR rprcntPtr, MDA_PTR gmrpitPtr, int validationType, void *validationValues, int model)

# Purpose

Attach validation property

# Description

This function supports attaching validation properties to both geometric represenstation items and product definition shapes. See CAx-IF Recommended Practices, Geometry and Assembly Validation Properties for further details. An example of a geometry representation item validation property is illustrated below:

.RS 3 .nf #361=CARTESIAN_POINT('centre point',(2.0,2.0,2.0)); #362=REPRESENTATION('centroid',(#311),#161); #364=PROPERTY_DEFINITION('geometric validation property',$,#366); #365=PROPERTY_DEFINITION_REPRESENTATION(#364,#362); #366=SHAPE_ASPECT('msb1','solid',#174,.F.); #367=MANIFOLD_SOLID_BREP('msb1',#175); #368=ADVANCED_BREP_SHAPE_REPRESENTATION('absr1',(#367),#161); #369=GEOMETRIC_ITEM_SPECIFIC_USAGE('shape for validation property',$ #366,#368,#367); .fi .RE

An example of a validation property attached to a product definition shape is illustrated below:

.RS 3 .nf #391=PROPERTY_DEFINITION('geometric validation property',$,#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); .fi .RE

# Input

## option

### S041_NO_COMBINE

Do not combine validation properties into a single representation

### S041_USE_OLD_ASSIGNMENT

Use old method of assigning val props to geometry

## prdfshPtr

Database pointer of product definition shape

## rprcntPtr

Database pointer of representation context

## gmrpitPtr

Database pointer of geometric representation item or MDA_NULL_PTR if not specified

## validationType

### S041_VOLUME

### S041_AREA

### S041_CENTROID

### S041_WETTED_AREA

### S041_SURFACE_AREA

### S041_SURFACE_CENTROID

### S041_LENGTH

### S041_CURVE_CENTROID

### S041_BOUNDING_BOX

### S041_CHILDREN

### S041_NOTIONAL

## validationValues

Single value or array for validation property

## model

STEP model to create entities in

# Return

          S041_NOERR
          .fi