DM_get_cstrn_state
List of: Functions
Subjects: DML Constraints, Deformable Modeling
Contents: Standalone Deformable Modeling

Action: Gets the state for a constraint and returns a 0=success or an error.

Prototype: int DM_get_cstrn_state (


int& rtn_err, // out: 0=success




// or negative err code


DS_dmod* dmod, // in: member of dmod




// hierarchy to search


int tag, // in: cstrn identifier


SDM_options* sdmo // in:SDM_options pointer



= NULL // note: sets active dmod


);

Includes: #include "kernel/acis.hxx"

#include "dshusk/dskernel/dmapi.hxx"

#include "dshusk/dskernel/dsdmod.hxx"

#include "dshusk/dskernel/sdm_options.hxx"

Description: Queries the tag constraint enabled/disabled behavior bit.


Returns 1 when the constraint is enabled, returns 0 when the constraint is disabled.

Errors: DM_NULL_INPUT_PTR

The deformable model cannot be NULL on entry.



DM_TAG_OBJECT_NOT_FOUND

The input tag cannot identify a deformable model, a load, a spring, a spring set, an attractor object, or a constraint in the model hierarchy.

Library: dshusk

Filename: ds/dshusk/dskernel/dmapi.hxx

Effect: Read-only
PDF/DS/04FNG.PDF
HTM/DATA/DS/DS/04FNG/0017.HTM