xpxPutInstance

FUNCTION xpxPutInstance (instanceId : GENERIC;
                         attrValues : GENERIC) 
                         status     : INTEGER;

The xpxPutInstance function can be used to set attribute values to all attributes in the specified instance instanceId. The attribute values are specified in the attrValues argument. This argument must be specified as an entity constructor. If the actual instance type is an subtype, then an entity constructor for the actual subtype plus an entity constructor for each supertype must be specified with the entity constructor concatenation operator (||) between each entity constructor. Empty entity constructors must be specified for entities without attributes.
An indeterminate (question) value for an attribute value will result in an unset attribute value.

Arguments


TypeNameComment
GENERICinstanceIdId of the instance within the EDMdatabase
GENERICattrValues

The attribute values

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_XPX_Return_Value'.

Options


 

Example


Example I
status := xpxPutInstance(aLineInst, tar::LINE(tar::POINT(1.0, 2.0, 3.0), tar::POINT(10.0, 20.0, 30.0)));
Example II
status := xpxCreateInstanceBN(xpxTargetModelId, 'POINT', p1);
status := xpxPutInstance(p1, tar::POINT(1.0, 2.0, 3.0));
status := xpxCreateInstanceBN(xpxTargetModelId, 'POINT', p2);
status := xpxPutInstance(p2, tar::POINT(10.0, 20.0, 30.0));
status := xpxCreateInstanceBN(xpxTargetModelId, 'LINE', aLineInst);
status := xpxPutInstance(aLineInst, tar::LINE(p1, p2));

See also

Filter by label

There are no items with the selected labels at this time.

   
Â