CAE NodeSet
Node sets are a group of CAE nodes that can be used for various CAE operations. Like Masking group of nodes in hotspot finding, in ColorPlot masking, etc.
xSetNodeSetPreviewMode
Set the node selection in preview mode.
bool xSetNodeSetPreviewMode(bool bPreview)
return
Return True if successful.
bPreview
Set True to enable preview mode.
Note: When this mode is ON all these following methods won’t create node set immediately. It will mark only nodes as selected.
xCreateNodeSetFromSelectedParts
xCreateNodeSetFromSelectedPartsWithAdjacency
xCreateNodesetFromSelectedPartEdge
CreateNodesetFromSelectedPartEdgeWithAdjacency
xNodeSetsAddAdjacency
xCreateNodesetFromAdjacentNodes
xNodeSetsAddProximity
It is required to call
`xCreateNodeSetsFromSelectedNodes <#xcreatenodesetsfromselectednodes>`__
funtion to create a NodeSet. By Default Preview mode is ON.
xGetNodeSetPreviewMode
Checks preview mode is set or not.
bool xGetNodeSetPreviewMode()
return
Returns True, if preview mode is ON.
xCreateNodeSetsFromSelectedNodes
Creates NodeSet from currently selected nodes
bool xCreateNodeSetsFromSelectedNodes(String sModel, String sNodeSetName)
return
Returns True, if successful.
sModel
Model name.
sNodeSetName
NodeSet name that has to be created from previously selected nodes.
Note: Once NodeSet is created from pre-selected nodes, this method clears node selection.
These following methods won’t create node set immediately when
`xSetNodeSetPreviewMode <#xsetnodesetpreviewmode>`__ is ON. It will
mark only nodes as selected.
xCreateNodeSetFromSelectedParts
xCreateNodeSetFromSelectedPartsWithAdjacency
xCreateNodesetFromSelectedPartEdge
CreateNodesetFromSelectedPartEdgeWithAdjacenc
xNodeSetsAddAdjacency
xCreateNodesetFromAdjacentNodes
xNodeSetsAddProximity
Now It is required to call this
`xCreateNodeSetsFromSelectedNodes <#xcreatenodesetsfromselectednodes>`__
function to create a NodeSet. By Default Preview mode is ON.
xCreateNodeSetFromSelectedParts
Creates NodeSet from pre-selected parts. All nodes of the parts are
added. It is similer to
`xCreateNodeSetFromParts <#xcreatenodesetfromparts>`__, but differs
in parts array input.
int xCreateNodeSetFromSelectedParts(String sModel, String sNodeSetName)
return
Returns non-zero, if successful.
sModel
Model name.
sNodeSetName
NodeSet name of all nodes from selected parts
xCreateNodeSetFromSelectedPartsWithAdjacency
Creates NodeSet from all nodes of pre-selected parts and its attached elements nodes.
int xCreateNodeSetFromSelectedPartsWithAdjacency(String sModel, String sNodeSetName)
return
Returns non-zero, if successful.
sModel
Model name.
sNodeSetName
NodeSet name of all nodes from pre-selected parts and its attached element nodes from other parts.
Can be empty in preview mode.
xCreateNodesetFromSelectedPartEdge
Creates NodeSet from edge nodes of pre selected parts.
int xCreateNodesetFromSelectedPartEdge(String sModel, String sNodeSetName)
return
Returns non-zerp, if successful.
sModel
Model name.
sNodeSetName
NodeSet of feature edge nodes from pre-selected parts
Can be empty in preview mode.
xCreateNodesetFromSelectedPartEdgeWithAdjacency
Creates NodeSet from edge elements of pre selected parts.
int xCreateNodesetFromSelectedPartEdgeWithAdjacency(String sModel, String sNodeSetName)
return
Returns non-zero, if successful.
sModel
Model name.
sNodeSetName
Nodeset name of feature edge elemental nodes from pre-selected parts.
Can be empty in preview mode.
xCreateNodeSetFromParts
Creates NodeSet from all nodes of the given parts list.
bool xCreateNodeSetFromParts(String sModel, String sNodeSetName, List<String> partNameArray)
return
Returns True, if successful.
sModel
Model name. Can be an empty String for the current model.
sNodeSetName
NodeSet name
partNameArray
Name of the parts nodes. All the nodes are added to the NodeSet.
xCreateNodeSetFromPartsWithAdjecency
Creates NodeSet from all nodes of the given parts list. And additionally, it adds attached nodes in other parts that are not in the NodeSet.
bool xCreateNodeSetFromPartsWithAdjecency (String sModel, String sNodeSetName, List<String> partNameArray)
return
Returns True, if successful.
sModel
Model name. Can be an empty String for the current model.
sNodeSetName
NodeSet name to be created.
partNameArray
Array of input parts.
xCreateNodesetFromPartEdge
Creates NodeSet from feature edge nodes of given parts.
bool xCreateNodesetFromPartEdge (String sModel, String sNodeSetName, List<String> partNameArray)
return
Returns True, if successful.
sModel
Model name. Can be an empty String for the current model.
sNodeSetName
NodeSet name that to be created
partNameArray
Array of input parts.
xCreateNodesetFromPartEdgeWithAdjacency
Creates NodeSet from the edge nodes and other nodes of the edge elements.
bool xCreateNodesetFromPartEdgeWithAdjacency(String sModel, String sNodeSetName, List<String> partNameArray)
return
Returns True, if successful.
sModel
Model name. Can be an empty String for the current model.
sNodeSetName
NodeSet name
partNameArray
The array of input parts All feature edge nodes of the parts are added to the NodeSet. Also, the other nodes that are part of the edge element.
xCreateNodeSetFromProbedLabels
Creates NodeSet from pre-existing probe labels.
bool xCreateNodeSetFromProbedLabels(String sModel, String sNodeSet)
return
Return True, if successful.
sModel
Model name.
sNodeSet
NodeSet name to create a node-set from all existing probe labels.
Can be empty in preview mode.
pxGetCAENodeSetList
Gets NodeSetList of a model.
List<String> pxGetCAENodeSetList(String sModel)
return
Returns NodeSet in an array.
sModel
Model name.
xNodeSetsAddProximity
Adds new nodes that are within a range for an existing NodeSet.
bool xNodeSetsAddProximity(String sModel, String sNodeSet, float fRange, bool bCreateNewNeighbourhood, bool bCloseElementPointProxy)
return
Returns True, if successful.
sModel
Model name.
sNodeSet
Existing NodeSet name. New nodes will be added to this NodeSet itself.
fRange
The nodes within this range are added to the NodeSet. Unit is the same as the input model.
bCreateNewNeighbourhood
If True, deletes previously selected nodes after this additional
selection and keeps only newly added proximity nodes.
bCloseElementPointProxy
Sets proximity distance calculation on the element surface rather than vertices.
Also gets all nodes, if that element surface or any node is within the range.
When this is not checked, proximity distance calculation will be on individual nodes.
xNodeSetsAddAdjacency
Adds connected nodes from other parts for the nodes of given NodeSet.
bool xNodeSetsAddAdjacency(String sModel, String sNodeSet, bool bCreateNewNeighbourhood=False, bool bAllElementNodes=False)
return
Returns True, if successful.
sModel
Model name.
sNodeSet
Existing NodeSet name. New connected nodes will be added to the same.
bCreateNewNeighbourhood
If True, deletes current nodes and replace with newly found
neighbour nodes.
If False, appends new node with existing NodeSet.
bAllElementNodes
If True, adds all nodes in the neigbour elements.
If False, Adds the nodes next to NodeSet only and ignores all other
nodes in that neibourhood element.
xCreateNodesetFromAdjacentNodes
Creates a new NodeSet from an existing NodeSet. New NodeSet contains connected nodes from other parts.
bool xCreateNodesetFromAdjacentNodes(String sModel, String sNodeSet, String sNewNodeSet)
return
Returns True, if successful.
sModel
Model name.
sNodeSet
Existing NodeSet. The nodes that are connected to this NodeSet are added in new NodeSet.
sNewNodeSet
New NodeSet from other parts that are connected with an existing NodeSet.
xClearNodeSetSelection
Clears selected nodes that will be used to create new NodeSet.
bool xClearNodeSetSelection(String sModel)
Return
Returns True, if successful.
sModel
Model name.
xSetNodesetVisiblity
Displays NodeSet using points.
bool xSetNodesetVisiblity(String sModel, String sNodeSetName, bool bShow)
return
Returns True, if successful.
sModel
Model name.
sNodeSetName
NodeSet name for those nodes is to be highlighted.
bShow
If set to True, displays node of the NodeSet in point mode.
xGetNodesetVisiblity
Checks NodeSet is displayed or not.
bool xGetNodesetVisiblity(String sModel, String sNodeSetName)
return
Returns True, if node set nodes are highlighted.
sModel
Model name.
sNodeSetName
NodeSet name that to be highlighted using points.
xNodeSetsDelete
Deletes list of NodeSets from NodeSetList.
bool xNodeSetsDelete(String sModel, List<String> nodeSetArray)
return
Returns True, if successful.
sModel
Model name.
nodeSetArray
The array of NodeSet that to be deleted from NodeSetList.
xNodeSetDelete
Deletes NodeSet from NodeSetList.
bool xNodeSetDelete(String sModel, String nodeSet)
return
Returns True, if successful.
sModel
Model name.
nodeSet
NodeSet name that to be deleted from NodeSetList.
xSetCAEMaskedNodeSetList
Not recommended from 2019.1220. We recommend to use
`xSetNodeSetMask <#xsetnodesetmask>`__ and
`xSetNodeSetHotspotMask <#xsetnodesethotspotmask>`__ methods.
Sets MaskedNodeSetList, that will be used in hotspot finder. These masked nodes are ignored in hotspot computation.
bool xSetCAEMaskedNodeSetList(String sModel, List<String> sMaskedNodeSetList)
return
Returns True, if successful.
sModel
Model name.
sMaskedNodeSetList
List of NodeSets that to be masked in hotspot finder.
pxGetCAEMaskedNodeSetList
Not recommended from 2019.1220. We recommend to use
`xSetNodeSetMask <#xsetnodesetmask>`__ and
`xSetNodeSetHotspotMask <#xsetnodesethotspotmask>`__ methods.
Gets MaskedNodeSetList, that are used to mask in hotspot finder.
List<String> pxGetCAEMaskedNodeSetList(String sModel)
return
Returns MaskedNodeSetList.
sModel
Model name.
xAddToCAEMaskedNodeSetList
Not recommended from 2019.1220. We recommend to use
`xSetNodeSetMask <#xsetnodesetmask>`__ and
`xSetNodeSetHotspotMask <#xsetnodesethotspotmask>`__ methods.
Adds node set to masked NodeSet list.
bool xAddToCAEMaskedNodeSetList(String sModel, String sMaskedNodeSet)
return
Returns True, if successful.
sModel
Model name.
sMaskedNodeSet
NodeSet name that to be added in existing MaskedNodeSetList.
xSetCAEMaskInverseMode
Not recommended from 2019.1220. We recommend to use
`xSetNodeSetMask <#xsetnodesetmask>`__ and
`xSetNodeSetHotspotMask <#xsetnodesethotspotmask>`__ methods.
Sets invert masking mode in hotspot finder.
bool xSetCAEMaskInverseMode(String sModel, bool bInverseMask)
return
Returns True, if successful.
sModel
Model name.
bInverseMask
If set to True, HotspotFinder finds the hotspots using only the
nodes of masked NodeSets.
If set to False, nodes of the masked NodeSets are ignored in hotspot
computation.
xGetCAEMaskInverseMode
Not recommended from 2019.1220. We recommend to use
`xGetNodeSetMask <#xgetnodesetmask>`__ and
`xGetNodeSetHotspotMask <#xgetnodesethotspotmask>`__ methods.
Checks inverse masking mode.
bool xGetCAEMaskInverseMode(String sModel)
return
Returns True, if inverse masking mode is set.
sModel
Model name.
xAddProbeLabelFromNodeSet
Adds probe label to the nodeset nodes.
bool xAddProbeLabelFromNodeSet(String sModel, String sNodeSetName)
return
Returns True, if successful.
sModel
Model name.
sNodeSetName
NodeSet name, for the nodes probe labels, is added.
xSetNodeSetsNoResultColor
Not recommended from 2019.1220. We recommend to use
`xSetNodeSetMask <#xsetnodesetmask>`__ and
`xSetNodeSetColorMask <#xsetnodesetcolormask>`__ methods.
Sets no result color for the elements of the NodeSet.
bool xSetNodeSetsNoResultColor(String sModel, String sNodeSet, bool bNoResultColor, bool bRefresh)
return
Returns True, if successful.
sModel
Model name.
sNodeSet
NodeSet name, for the elements, applied with no result color.
bNoResultColor
Set True to apply no result color.
bRefresh
Set True, to refresh viewer post apply.
xGetNodeSetsNoResultColor
Not recommended from 2019.1220. We recommend to use
`xGetNodeSetMask <#xgetnodesetmask>`__ and
`xGetNodeSetColorMask <#xgetnodesetcolormask>`__ methods.
Checks no result color mode is applied for a NodeSet.
bool xGetNodeSetsNoResultColor(String sModel, String sNodeSet)
return
Returns True, if successful.
sModel
Model name.
sNodeSet
NodeSet name.
xSetInverseNoColorNodeSet
Not recommended from 2019.1220. We recommend to use
`xSetNodeSetMask <#xsetnodesetmask>`__ and
`xSetNodeSetColorMask <#xsetnodesetcolormask>`__ methods.
Inverses no result color mode for the NodeSet, that was set by
`xSetNodeSetsNoResultColor <#xsetnodesetsnoresultcolor>`__.
bool xSetInverseNoColorNodeSet(String sModel, bool bInverseNoColorNodeSet)
return
Returns True, if successful.
bInverseNoColorNodeSet
If set to True, applies color plot only to the elements of the
NodeSet. Other elements are applied as no result color.
If set to False, applies no color plot color to all the elements of
the NodeSet.
sModel
Model name.
xGetInverseNoColorNodeSet
Not recommended from 2019.1220. We recommend to use
`xGetNodeSetMask <#xgetnodesetmask>`__ and
`xGetNodeSetColorMask <#xgetnodesetcolormask>`__ methods.
Checks inverse no result color state is applied or not.
bool xGetInverseNoColorNodeSet(String sModel)
return
Returns True, if inverse no result color mode is set.
sModel
Model name.
pxGetNodeSetNodeIDs
Gets NodeIDs list of the NodeSet.
List<long> pxGetNodeSetNodeIDs(String sModel, String sNodeSet)
return
Returns Node IDs in an array.
sModel
Mode name.
sNodeSet
NodeSet name.
xSelectNodeSetsFromResult
Selects nodes for NodeSet manager by using a result and its range.
bool xSelectNodeSetsFromResult(String sModel, String sResult, String sInstance, String sDerived, bool bUserMin, float fUserMin, bool bUserMax, float fUserMax)
return
Returns True, if successful.
sModel
Model name. The empty String “” will select the current model by default.
sResult, sInstance, sDerived
Result, Instance and Derived result name. The empty String “” will select the current result selected by default.
bUserMin
Enables minimum range.
fUserMin
Minimum range value to get the nodes with in the result.
If bUserMin is False this field will be ignored.
bUserMax
Enables maximum range.
fUserMax
Maximum range value to get the nodes with in the result.
If bUserMax is False, this field will be ignored.
pxGetNodesetMinMax
Gets minimum and maximum result value of current result in the NodeSet nodes.
List<float> pxGetNodesetMinMax(String sModel, List<String> sPartArray, String sNodeSet, bool bVisibleParts, bool bInside)
return
Returns minimum and maximum values in the nodeset and its node IDs in an array of size 4.
retArray[0] = Minimum result value
retArray[1] = Maximum result value
retArray[2] = Min. Node ID
retArray[3] = Max. Node ID
sModel
Model name.
sPartArray
Part names list. If empty, min-max will be found in all parts of the NodeSet.
sNodeSet
NodeSet name.
bVisibleParts
If True, min-max will be found in visible parts of the NodeSet.
bInside
If True, min-max will be found with in the NodeSet nodes. Else found
in the other nodes of the parts in the NodeSet.
xAddNodeIDsToNodeSet
Adds Node IDs to a NodeSet.
bool xAddNodeIDsToNodeSet(String sModel, List<String> sPartsArray, String sNodeSet, List<int> iNodeIDs)
return
Returns True, If successful.
sModel
Model Name. Empty String uses current CAE Model.
sPartsArray
Name of the Parts, NodeIDs to be added. If it is empty, then uses visible parts.
sNodeSet
NodeSet name. If exists already, NodeIDs will be added to it. Else new NodeSet will be created.
If empty, NodeID will be added to selection and not created.
iNodeIDs
List of NodeIDs array.
pxGetNodeIDsFromNodeSet
Gets NodeIDs for a given NodeSet and its specified parts.
List<int> pxGetNodeIDsFromNodeSet(String sModel, List<String> sPartsArray, String sNodeSet)
return
Returns NodeIDs in an array.
sModel
Model Name. Empty String uses current CAE Model.
sPartsArray
Name of the parts to get NodeIDs in the NodeSet. Empty array will get all the NodeIDs in the NodeSet.
sNodeSet
NodeSet name.
xCreateVisibleNodesNodeSet
Creates new NodeSet from visible nodes from current view angle.
bool xCreateVisibleNodesNodeSet(String sModel, List<String> sPartsArray, String sNodeSet, bool bInvisible)
return
Returns True, if successful.
sModel
For future use. Now it uses current model.
sPartsArray
For future use. Now pass an empty array.
sNodeSet
New NodeSet name created from visible nodes.
bInvisible
For future use.
xDeleteNodeIDsFromNodeSet
Deletes NodeIDs from NodeSet.
bool xDeleteNodeIDsFromNodeSet(String sModel, List<String> sPartsArray, String sNodeSet, List<int> iNodeIDs)
return
Returns True, if successful.
sModel
Model name.
sPartsArray
Parts array from where the NodeIDs to be deleted. Empty array will all parts to delete NodeIDs.
sNodeSet
NodeSet name.
iNodeIDs
NodeIDs to be deleted from NodeSet.
xAddNodeSetToNodeSet
Adds NodeIDs from one NodeSet to another NodeSet.
bool xAddNodeSetToNodeSet(String sModel, List<String> sPartsArray, String sSrcNodeSet, String sDestNodeSet)
return
Returns True, if successful.
sModel
Model name.
sPartsArray
Parts of the NodeID that to be added. If empty array, NodeIDs will be added to all occuring parts.
sSrcNodeSet
Source NodeSet name. NodeIDs from this NodeSet will be copied to sDestNodeSet.
sDestNodeSet
Target NodeSet. NodeIDs from sSrcNodeSet are copied to this nodeset.
xDeleteNodeSetFromNodeSet
Deletes NodeIDs of one NodeSet in another NodeSet.
bool xDeleteNodeSetFromNodeSet(String sModel, List<String> sPartsArray, String sSrcNodeSet, String sDestNodeSet)
return
Returns True, if successful.
sModel
Model name.
sPartsArray
Parts of the NodeID that to be deleted. If empty array, NodeIDs will be deleted from all occuring parts.
sSrcNodeSet
Source NodeSet name. NodeIDs from this NodeSet will be deleted from sDestNodeSet if they exists.
sDestNodeSet
Target NodeSet. NodeIDs from sSrcNodeSet are deleted from this NodeSet.
xSetNodeSetMask
Sets mask mode to a NodeSet
bool xSetNodeSetMask(String sModel, String sNodeSet, int iMaskMode)
return
Returns True, if successful.
sModel
Model name.
sNodeSet
NodeSet name.
iMaskMode
Mask mode.
0 - No Mask(N/A)
1 - Mask Inside
2 - Mask OutSide
xGetNodeSetMask
Gets mask mode of a NodeSet.
int xGetNodeSetMask(String sModel, String sNodeSet)
return
Returns mask mode.
0 - No Mask(N/A)
1 - Mask Inside
2 - Mask OutSide
sModel
Model name.
sNodeSet
NodeSet name.
xSetNodeSetColorMask
Sets colormask mode to all NodeSet.
bool xSetNodeSetColorMask(String sModel, int iColMask)
return
Returns True, if successful.
sModel
Mode name.
iColMask
Set Valid Range 0-3 as:
0 – Node : Nothing will be masked
1 - NoResult : No Result color will be applied as mask
2 - Cull : Masked nodes will not be displayed
3 - Transparent : Masked nodes will be rendered in transparency
xGetNodeSetColorMask
Gets color mask mode of NodeSet
int xGetNodeSetColorMask(String sModel)
return
Returns applied color mask mode.
0 – Node : Noting will be masked
1 - NoResult : No Result color will be applied as mask
2 - Cull : Masked nodes will not be displayed
3 - Transparent : Masked nodes will be rendered in transparency
sModel
Model name.
xSetNodeSetHotspotMask
Sets Nodesets hotspot mask mode.
bool xSetNodeSetHotspotMask(String sModel, int iHotspotMask)
return
Returns True, if successful.
sModel
Model name.
iHotspotMask
Set 1 to enable hotspot masking. Set 0 to disable.
xGetNodeSetHotspotMask
Gets NodeSet’s hotspot mask mode.
int xGetNodeSetHotspotMask(String sModel)
return
Returns 1 if enabled, 0 if disabled.
sModel
Mode name.
xInitialiseHotspotMaskQuery
Generates node/element mask data to improve performance on multiple
queries, when using
`xIsNodeHotspotMasked <#xisnodehotspotmasked>`__,
`xIsElementHotspotMasked <#xiselementhotspotmasked>`__,
`pxGetHotSpotMaskedNodes <#pxgethotspotmaskednodes>`__ and
`pxGetHotSpotMaskedElements <#pxgethotspotmaskedelements>`__
methods.
bool xInitialiseHotspotMaskQuery(String sModel, bool bNodal)
return
Returns True, if successful.
bNodal
Set True to query NodeIDs, False to query ElementIDs
Note: Call this method
`xInitialiseHotspotMaskQuery <#xinitialisehotspotmaskquery>`__
before using `xIsNodeHotspotMasked <#xisnodehotspotmasked>`__ or
`pxGetHotSpotMaskedNodes <#pxgethotspotmaskednodes>`__.
Example:
xInitialiseHotspotMaskQuery (model,`True`)
For each NodeID
xIsNodeHotspotMasked(nodeId)
xCloseHotspotMaskQuery(model,`True`)
or
xInitialiseHotspotMaskQuery(model,`True`)
For each part
pxGetHotSpotMaskedNodes(model,partName)
xCloseHotspotMaskQuery(model,`True`)
xCloseHotspotMaskQuery
Clears generated node/elemet mask data used for
`xIsNodeHotspotMasked <#xisnodehotspotmasked>`__,
`xIsElementHotspotMasked <#xiselementhotspotmasked>`__,
`pxGetHotSpotMaskedNodes <#pxgethotspotmaskednodes>`__ and
`pxGetHotSpotMaskedElements <#pxgethotspotmaskedelements>`__
methods.
bool xCloseHotspotMaskQuery(String sModel, bool bNodal)
return
Returns True, if successful.
sModel
Model name.
bNodal
Set True to clear NodeIDs data, False to clear ElementID data.
pxGetNodeSetParts
Gets parts list in a nodeset.
List<String> pxGetNodeSetParts(String sModel, String sNodeSet)
return
Returns part list of the NodeSet in an array.
sModel
Model name.
sNodeSet
NodeSet name.
xIsNodeHotspotMasked
Checks a NodeID is masked for hotspot or not.
bool xIsNodeHotspotMasked(String sModel, String sPart, size_t iNodeID)
return
Returns True, if masked.
sModel
Model Name.
sPart
Part name.
iNodeID
ID of the Node.
Note: Use
`xInitialiseHotspotMaskQuery <#xinitialisehotspotmaskquery>`__
before calling this method and call
`xCloseHotspotMaskQuery <#xclosehotspotmaskquery>`__ after use for
perfomance improvement.
Example:
xInitialiseHotspotMaskQuery (model, `True`)
For each nodeID
xIsNodeHotspotMasked(model, part, nodeId)
xCloseHotspotMaskQuery(model, `True`)
xIsElementHotspotMasked
Checks an ElementID is masked for hotspot or not.
bool xIsElementHotspotMasked(String sModel, String sPart, size_t iElementID)
return
Returns True, if masked.
sModel
Model name.
sPart
Part name where the element is.
iElementID
ID of the Element.
Note: Use
`xGenerateElementMaskResultData <#xgenerateelementmaskresultdata>`__
before calling this method and call
`xCloseHotspotMaskQuery <#xclosehotspotmaskquery>`__ after use for
perfomance improvement.
Example:
xInitialiseHotspotMaskQuery(model, `False`)
For each elementID
xIsElementHotspotMasked(model, part, elementId)
xCloseHotspotMaskQuery(model, `False`)
pxGetNodeSetElementIDs
Gets all parts ElementIDs in a NodeSet of a model.
List<size_t> pxGetNodeSetElementIDs(String sModel, String sNodeSet, int iMaskType)
return
Returns all element IDs of a nodeset in an array.
sModel
Model name.
sNodeSet
NodeSet name.
iMaskType
For Future use.
pxGetElementIDsFromNodeSet
Gets Element IDs of nodeset in a set of parts.
List<size_t> pxGetElementIDsFromNodeSet(String sModel, String sNodeSet, List<String> partsArray, int iAllNode)
return
Returns ElementIDs in an array.
sModel
Model name.
sNodeSet
NodeSet name.
partsArray
Part names in an array.
iAllNode
For Future use.
pxGetNodeSetNodeIDsEx
Gets NodeIDs of a nodeset in a part.
List<size_t> pxGetNodeSetNodeIDsEx(String sModel, String sNodeSet, String sPart)
return
Returns NodeIDs in an array.
sModel
Model name.
sNodeSet
NodeSet name.
sPart
Part name in which Node IDs in the NodeSet is needed.
pxGetNodeSetElementIDsEx
Gets ElementIDs of a NodeSet in a part.
List<size_t> pxGetNodeSetElementIDsEx(String sModel, String sNodeSet, String sPart, int iAllNode)
return
Returns ElementID in an array.
sModel
Model name.
sNodeSet
NodeSet name.
sPart
Part name in which Element IDs in the nodeset is needed.
iAllNode
For Future use. Set 0 as defualt.
xNodesetAddAdjacentNodes
Adds adjacent nodes from a given nodeset.
bool xNodesetAddAdjacentNodes(String sModel, String sNodeSet, bool bCreateNewNeighbourhood, bool bAllElementNodes)
return
Returns True, if successful.
sModel
Model name.
sNodeSet
NodeSet name. New adjacect nodes will added to this NodeSet.
bCreateNewNeighbourhood
Clears exising nodes in the sNodeSet and newly found adjacent nodes are set as nodeset.
bAllElementNodes
If True, adds all nodes in the adjacent elements. Else only the
nodes which are next to it will be added.
xNodesetAddAdjacentNodesEx
Creates a new NodeSet by finding adjacent nodes from an existing NodeSet.
bool xNodesetAddAdjacentNodesEx(String sModel, String sNodeSet, String sNewNodeSet, bool bCreateNewNeighbourhood, bool bAllElementNodes)
return
Returns True, if successful.
sModel
Model name.
sNodeSet
Source NodeSet name.
sNewNodeSet
New nodeset formed from adjacent of sNodeSet nodes.
bCreateNewNeighbourhood
If True, clears exising nodes in the sNodeSet and newly found
adjacent nodes are set as sNewNodeSet. Else sNodeSet nodes will also be
there in sNewNodeSet.
bAllElementNodes
If True, adds all nodes in the adjacent elements. Else only the
nodes which are just being as adjacent neighbourhood will be added.
xShowNodeSetParts
Shows the parts that are involved in NodeSet. Hides other parts.
bool xShowNodeSetParts(String sModel, List<String> sNodeSetList, bool bShow)
return
Returns True, if successful.
sModel
Model Name. If sModel is empty, it will be applied to all models.
sNodeSetList
NodeSet List. If NodeSet List is empty, it will be applied to all NodeSet.
bShow
If set to True, shows NodeSet parts only. False will hide parts
involved with NodeSet list.
xAddNodeSetNodesFromBox
bool xAddNodeSetNodesFromBox(String sModel, String sNodeSet, List<float> wcsBoxCorners)
return
Returns True, if successful.
sModel
Model name. If sModel is empty String, current CAE model will be used.
sNodeSet
NodeSet Name.
If sNodeSet is empty String, found nodes will be added to selecton.
If sNodeSet is a non empty String, found nodes will be added to sNodeset.
wcsBoxCorners
Box corners. Vallid range 6 or 24.
If it is 6-Axis aligned bound box minimum and maximum vertices.
Index [0][1][2] - minX, minY, minZ
Index [3][4][6] - maxX, maxY, maxZ
If it is 24-Non Axis aligned bound box all 8 corner vertices. In the order of:
Index [0][1][2] - minX1, minY1, minZ1
Index [3][4][5] - minX2, minY2, minZ2
Index [6][7][8] - minX3, minY3, minZ3
Index [9][10][11] - minX4, minY4, minZ4 as Front corners vertices
Index [12][13][14] - maxX5, maxY5, maxZ5
Index [15][16][17] - maxX6, maxY6, maxZ6
Index [18][19][20] - maxX7, maxY7, maxZ7
Index [21][22][23] - maxX8, maxY8, maxZ8 as back cornor vertices
pxGetHotSpotMaskedNodes
Gets all hotspot masked node IDs of a part for a given mode.
List<size_t> pxGetHotSpotMaskedNodes(String sModel,String sPart)
Return
Returns masked NodeIDs array
sModel
Model name. If it’s an empty string current CAE model will be used
sPart
Part name
pxGetHotSpotMaskedElements
Gets all hotspot masked element IDs of a part for a given model
List<size_t> pxGetHotSpotMaskedElements(String sModel, String sPart,int iMaskType)
Return
Returns masked element IDs array of a part.
sModel
Model name.
sPart
Part name.
iMaskType
Reserved for future use.
pxGetPartsContained
Gets the list of parts intersects in the container defined by the user.
Container types are box, sphere and cylinder.
List<String> pxGetPartsContained(String sModel, List<float> points, int iContainerType)
return
Returns list of parts intersects if succeeds.
Returns an empty array otherwise.
sModel
CAE Model Name
points
List of points that defines the container type.
(x1,y1,z1,x2,y2,z2,…..xn,yn,zn)
iContainerType
0 - Box (Axis Aligned Box)
1 - Sphere
2 - Cylinder.
pxGetNodesContained
Gets the list of node IDs contained in the container defined by user.
Container types are box, sphere and cylinder.
List<size_t> pxGetNodesContained(String sModel, List<String> sPartsList, List<float> points, int iContainerType)
return
Returns list of node IDs if succeeds.
Returns an empty array otherwise.
sModel
CAE Model Name
sPartsList
Parts list from the nodeIDs to be returned. If parts List is is an empty aray it returns node is across all parts that is contained by the container type.
points
List of points that defines the container type.
(x1,y1,z1,x2,y2,z2,…..xn,yn,zn)
iContainerType
0 - Box (Axis Aligned Box)
1 - Sphere
2 - Cylinder.
Note:1
Box - 6 values
p1 - first 3 values
p2 - second 3 values
p1 and p2 defines the extreme points of the axis aligned bounding box.
Box - 4 values
center - first three values.
offset - last value;
p1 = center - offset
p2 = center + offset
Sphere - 4 values
center - first 3 values
radius - last value
Sphere - 6 values
p1 - first 3 values
p2 - second 3 values;
center = mid point of p1p2
Cylinder - 7 values
p1 - first 3 values
p2 - second 3 values;
radius = last value;
Note:2
xDisplayContainer xClearAllContainers methods can be used to display given iContainerType with same values of points input.
xSetNodeSetInEditMode
Adds given node set nodes to previewed mode nodes.
bool xSetNodeSetInEditMode(String sModel,String sNodeSet)
return
Returns
Trueif successful.
sModel
Model name.
sNodeSet
Node set name.
xSetNodeSetMgrProbeMask
Sets Probe mask flag to nodeset manager of the given CAE model.
bool xSetNodeSetMgrProbeMask(String sModel,bool bProbeMask)
return
Returns
Trueif it succeeds.Returns
Falseotherwise.
sModel
CAE Model Name.
bProbeMask
Boolean flag to set On/Off.
xGetNodeSetMgrProbeMask
Checks if Probe mask flag is On/Off for the given CAE model.
bool xGetNodeSetMgrProbeMask(String sModel)
return
Returns
TrueorFalsebased on the flag state.
sModel
CAE Model Name.
xShowNodeSetMgrMaskInfo
Displays or Hides Nodeset Mask info in the CAE Legend.
bool xShowNodeSetMgrMaskInfo( String sModel,bool bMaskInfo)
return
Returns
Trueif it succeeds.Returns
Falseotherwise.
sModel
CAE Model Name.
bMaskInfo
Mask info state to be set.
xIsNodeSetMgrMaskInfoShown
Checks if Mask info is displayed or not, for the given CAE model.
bool xIsNodeSetMgrMaskInfoShown(String sModel)
return
Returns
Trueif mask info is displayed.Returns
Falseotherwise.
sModel
CAE Model Name.
xSetNodesetInfo
Sets user defined information to the given nodeset.
bool xSetNodesetInfo(String sModel,String sNodeSet, String sNodesetInfo)
return
Returns
Trueif succeeds.Returns
Falseotherwise.
sModel
CAE Model Name.
sNodeSet
Nodeset Name
sNodesetInfo
User Information
xGetNodesetInfo
Gets the user information stored in given nodeset name.
String xGetNodesetInfo(String sModel,String sNodeSet)
return
Returns User information as a string
sModel
CAE Model Name.
sNodeSet
Nodeset Name
xRenameNodeSet
Allows to rename an existing nodeset name.
bool xRenameNodeSet(String sModel, String sNodeset, String sNewNodeset)
return
Returns
Trueif succeeds.Returns
Falseotherwise.
sModel
CAE Model Name.
sNodeSet
Nodeset Name
sNewNodeset
New Nodeset Name