The SetSolid class gives you access to solid 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 solid set is in |
| index (read only) | integer | The internal index for the solid set in D3PLOT (starting at 0) |
| label (read only) | integer | The Ansys LS-DYNA label for the solid set |
| model (read only) | Model | The Model that the solid set is in |
| title (read only) | string | The title for the solid 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 solid items in the solid set |
| type (read only) | constant | The type for the solid set (will be Type.SET_SOLID) |
Details of functionsAllItems()DescriptionReturns all of the solid items for the solid set in the model |
No arguments
Returnsarray of Solid objects Return typeArray |
ExampleTo get the solid items in solid set s: var items = s.AllItems();
|
ClearFlag(flag[Flag])DescriptionClears a flag on a solid set |
Flag (see AllocateFlag) to clear on the solid set
ReturnsNo return value |
ExampleTo clear flag f on solid set s: s.ClearFlag();
|
First(model[Model]) [static]DescriptionReturns the first solid set in the model (or null if there are no solid sets in the model) |
Model to get first solid set in
ReturnsSetSolid object Return typeSetSolid |
ExampleTo get the first solid set in model m: var s = SetSolid.First(m);
|
FlagAll(model[Model], flag[Flag]) [static]DescriptionFlags all of the solid sets in the model with a defined flag |
Model that all the solid sets will be flagged in
Flag (see AllocateFlag) to set on the solid sets
ReturnsNo return value |
ExampleTo flag all of the solid sets with flag f in model m: SetSolid.FlagAll(m, f);
|
Flagged(flag[Flag])DescriptionChecks if the solid set is flagged or not |
Flag (see AllocateFlag) to test on the solid set
Returnstrue if flagged, false if not Return typeboolean |
ExampleTo check if solid 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 SetSolid objects or properties for all of the solid sets in the model. If the optional property argument is not given then an array of SetSolid objects is returned. If the property argument is given, that property value for each solid set is returned in the array instead of a SetSolid object |
Model that all the solid sets are in
Name for property to get for all solid sets in the model
ReturnsArray of SetSolid objects or properties Return typeArray |
GetFlagged(model[Model], flag[Flag], property (optional)[string]) [static]DescriptionGets all of the solid sets in the model flagged with a defined flag. If the optional property argument is not given then an array of SetSolid objects is returned. If the property argument is given, that property value for each solid set is returned in the array instead of a SetSolid object |
Model that the flagged solid sets are in
Flag (see AllocateFlag) set on the solid sets to get
Name for property to get for all flagged solid sets in the model
ReturnsArray of SetSolid objects or properties Return typeArray |
GetFromID(model[Model], label[integer]) [static]DescriptionReturns the SetSolid object for solid set in model with label (or null if it does not exist) |
Model to get solid set in
The Ansys LS-DYNA label for the solid set in the model
ReturnsSetSolid object Return typeSetSolid |
ExampleTo get the solid set in model m with label 1000: var s = SetSolid.GetFromID(m, 1000);
|
GetFromIndex(model[Model], index[integer]) [static]DescriptionReturns the SetSolid object for solid set in model with index (or null if it does not exist) |
Model to get solid set in
The D3PLOT internal index in the model for solid set, starting at 0.
ReturnsSetSolid object Return typeSetSolid |
ExampleTo get the 51st solid set in model m: var s = SetSolid.GetFromIndex(m, 50);
|
Item(index[integer])DescriptionReturns a solid item from the solid set in the model |
The index in the solid set to get the solid from (0 <= index < total)
ReturnsSolid object Return typeSolid |
ExampleTo get the 10th solid in solid set s: var items = s.Item(9);
|
Last(model[Model]) [static]DescriptionReturns the last solid set in the model (or null if there are no solid sets in the model) |
Model to get last solid set in
ReturnsSetSolid object Return typeSetSolid |
ExampleTo get the last solid set in model m: var s = SetSolid.Last(m);
|
Next()DescriptionReturns the next solid set in the model (or null if there is not one) |
No arguments
ReturnsSetSolid object Return typeSetSolid |
ExampleTo get the next solid set after solid set s: s = s.Next();
|
Previous()DescriptionReturns the previous solid set in the model (or null if there is not one) |
No arguments
ReturnsSetSolid object Return typeSetSolid |
ExampleTo get the previous solid set before solid set s: s = s.Previous();
|
SetFlag(flag[Flag])DescriptionSets a flag on a solid set |
Flag (see AllocateFlag) to set on the solid set
ReturnsNo return value |
ExampleTo set flag f on solid set s: s.SetFlag(f);
|
Total(model[Model]) [static]DescriptionReturns the total number of solid sets in the model |
Model to get total in
ReturnsThe number of solid sets Return typeinteger |
ExampleTo get the number of solid sets in model m: var total = SetSolid.Total(m);
|
UnflagAll(model[Model], flag[Flag]) [static]DescriptionUnsets a defined flag on all of the solid sets in the model |
Model that the defined flag for all solid sets will be unset in
Flag (see AllocateFlag) to unset on the solid sets
ReturnsNo return value |
ExampleTo unset flag f on all of the solid sets in model m: SetSolid.UnflagAll(m, f);
|