The SetNode class gives you access to node sets in D3PLOT. More...
The D3PLOT JavaScript API provides many class constants, properties and methods. For Arup to
be able to extend and enhance the API in the future any constant, property or method names beginning with a lowercase
or uppercase letter are reserved.
If you need to add your own properties or methods to one of the existing classes then to avoid any potential future conflict you
should ensure that the name begins with either an underscore (_) or a dollar sign ($) or the name is prefixed with your
own unique identifier.
For example if company 'ABC' need to add a property called 'example' then to avoid any potential future conflict use one of:
| Name | Type | Description |
| include (read only) | integer | The include file number in the model that the node set is in |
| index (read only) | integer | The internal index for the node set in D3PLOT (starting at 0) |
| label (read only) | integer | The Ansys LS-DYNA label for the node set |
| model (read only) | Model | The Model that the node set is in |
| title (read only) | string | The title for the node set (or null if no title). This is only available if there is a ztf file for the model. If not null will be returned. |
| total (read only) | integer | The total number of node items in the node set |
| type (read only) | constant | The type for the node set (will be Type.SET_NODE) |
Details of functionsAllItems()DescriptionReturns all of the node items for the node set in the model |
No arguments
Returnsarray of Node objects Return typeArray |
ExampleTo get the node items in node set s: var items = s.AllItems();
|
ClearFlag(flag[Flag])DescriptionClears a flag on a node set |
Flag (see AllocateFlag) to clear on the node set
ReturnsNo return value |
ExampleTo clear flag f on node set s: s.ClearFlag();
|
First(model[Model]) [static]DescriptionReturns the first node set in the model (or null if there are no node sets in the model) |
Model to get first node set in
ReturnsSetNode object Return typeSetNode |
ExampleTo get the first node set in model m: var s = SetNode.First(m);
|
FlagAll(model[Model], flag[Flag]) [static]DescriptionFlags all of the node sets in the model with a defined flag |
Model that all the node sets will be flagged in
Flag (see AllocateFlag) to set on the node sets
ReturnsNo return value |
ExampleTo flag all of the node sets with flag f in model m: SetNode.FlagAll(m, f);
|
Flagged(flag[Flag])DescriptionChecks if the node set is flagged or not |
Flag (see AllocateFlag) to test on the node set
Returnstrue if flagged, false if not Return typeboolean |
ExampleTo check if node set s has flag f set on it: if (s.Flagged(f) ) do_something...
|
GetAll(model[Model], property (optional)[string]) [static]DescriptionReturns an array of SetNode objects or properties for all of the node sets in the model. If the optional property argument is not given then an array of SetNode objects is returned. If the property argument is given, that property value for each node set is returned in the array instead of a SetNode object |
Model that all the node sets are in
Name for property to get for all node sets in the model
ReturnsArray of SetNode objects or properties Return typeArray |
GetFlagged(model[Model], flag[Flag], property (optional)[string]) [static]DescriptionGets all of the node sets in the model flagged with a defined flag. If the optional property argument is not given then an array of SetNode objects is returned. If the property argument is given, that property value for each node set is returned in the array instead of a SetNode object |
Model that the flagged node sets are in
Flag (see AllocateFlag) set on the node sets to get
Name for property to get for all flagged node sets in the model
ReturnsArray of SetNode objects or properties Return typeArray |
GetFromID(model[Model], label[integer]) [static]DescriptionReturns the SetNode object for node set in model with label (or null if it does not exist) |
Model to get node set in
The Ansys LS-DYNA label for the node set in the model
ReturnsSetNode object Return typeSetNode |
ExampleTo get the node set in model m with label 1000: var s = SetNode.GetFromID(m, 1000);
|
GetFromIndex(model[Model], index[integer]) [static]DescriptionReturns the SetNode object for node set in model with index (or null if it does not exist) |
Model to get node set in
The D3PLOT internal index in the model for node set, starting at 0.
ReturnsSetNode object Return typeSetNode |
ExampleTo get the 51st node set in model m: var s = SetNode.GetFromIndex(m, 50);
|
Item(index[integer])DescriptionReturns a node item from the node set in the model |
The index in the node set to get the node from (0 <= index < total)
ReturnsNode object Return typeNode |
ExampleTo get the 10th node in node set s: var items = s.Item(9);
|
Last(model[Model]) [static]DescriptionReturns the last node set in the model (or null if there are no node sets in the model) |
Model to get last node set in
ReturnsSetNode object Return typeSetNode |
ExampleTo get the last node set in model m: var s = SetNode.Last(m);
|
Next()DescriptionReturns the next node set in the model (or null if there is not one) |
No arguments
ReturnsSetNode object Return typeSetNode |
ExampleTo get the next node set after node set s: s = s.Next();
|
Previous()DescriptionReturns the previous node set in the model (or null if there is not one) |
No arguments
ReturnsSetNode object Return typeSetNode |
ExampleTo get the previous node set before node set s: s = s.Previous();
|
SetFlag(flag[Flag])DescriptionSets a flag on a node set |
Flag (see AllocateFlag) to set on the node set
ReturnsNo return value |
ExampleTo set flag f on node set s: s.SetFlag(f);
|
Total(model[Model]) [static]DescriptionReturns the total number of node sets in the model |
Model to get total in
ReturnsThe number of node sets Return typeinteger |
ExampleTo get the number of node sets in model m: var total = SetNode.Total(m);
|
UnflagAll(model[Model], flag[Flag]) [static]DescriptionUnsets a defined flag on all of the node sets in the model |
Model that the defined flag for all node sets will be unset in
Flag (see AllocateFlag) to unset on the node sets
ReturnsNo return value |
ExampleTo unset flag f on all of the node sets in model m: SetNode.UnflagAll(m, f);
|