Click or drag to resize

APIsetConstraint Method

Set a general constraint between 2 nodes
REST path: /op/mesh/constraint/[n]/[master]/[x]/[y]/[z]/[rx]/[ry]/[rz]
REST verb: GET

Namespace: NextFEMapi
Assembly: NextFEMapi (in NextFEMapi.dll) Version: 2.6.0.0 (2.6.0.0)
Syntax
public bool setConstraint(
	string n,
	string master,
	bool x,
	bool y,
	bool z,
	bool rx,
	bool ry,
	bool rz
)

Parameters

n  String
ID of slave node
master  String
ID of master node
x  Boolean
True to apply constraint to this DoF
y  Boolean
True to apply constraint to this DoF
z  Boolean
True to apply constraint to this DoF
rx  Boolean
True to apply constraint to this DoF
ry  Boolean
True to apply constraint to this DoF
rz  Boolean
True to apply constraint to this DoF

Return Value

Boolean
True if successful
Remarks
To remove a constraint, use removeLink method
See Also