The IGAIntegrationSolidReduce class gives you access to IGA integration solid reduce cards in PRIMER. More...
The PRIMER 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 |
| exists (read only) | logical | true if IGA Integration Solid Reduce exists, false if referred to but not defined. |
| id (read only) | integer | ID of the IGA integration solid reduce. Only used in PRIMER. |
| include | integer | The Include file number that the IGA Integration Solid Reduce is in. |
| model (read only) | integer | The Model number that the IGA Integration Solid Reduce is in. |
| nrdr | int | Reduced degree in the r-direction. |
| nrds | int | Reduced degree in the s-direction. |
| nrdt | int | Reduced degree in the t-direction. |
| patchid | integer | PATCH ID defined in *IGA_SOLID. |
Detailed DescriptionThe IGAIntegrationSolidReduce class allows you to create, modify, edit and manipulate IGA integration solid reduce cards. See the documentation below for more details. |
Constructornew IGAIntegrationSolidReduce(Model[Model], details[object])DescriptionCreate a new IGAIntegrationSolidReduce object. |
Model that IGA integration solid reduce will be created in
Details for creating the IGAIntegrationSolidReduce
Object has the following properties:
| Name | Type | Description |
| nrdr (optional) | int | Reduced degree in the r-direction. |
| nrds (optional) | int | Reduced degree in the s-direction. |
| nrdt (optional) | int | Reduced degree in the t-direction. |
| patchid | integer | PATCH ID defined in *IGA_SOLID. |
ReturnsIGAIntegrationSolidReduce object Return typeIGAIntegrationSolidReduce |
Details of functionsAssociateComment(Comment[Comment])DescriptionAssociates a comment with a IGA Integration Solid Reduce. |
Comment that will be attached to the IGA Integration Solid Reduce
ReturnsNo return value |
ExampleTo associate comment c to the IGA Integration Solid Reduce igiso: igiso.AssociateComment(c);
|
Browse(modal (optional)[boolean])DescriptionStarts an edit panel in Browse mode. |
If this window is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the window will be modal.
Returnsno return value |
ExampleTo Browse IGA Integration Solid Reduce igiso: igiso.Browse();
|
ClearFlag(flag[Flag])DescriptionClears a flag on the IGA Integration Solid Reduce. |
Flag to clear on the IGA Integration Solid Reduce
ReturnsNo return value |
ExampleTo clear flag f for IGA Integration Solid Reduce igiso: igiso.ClearFlag(f);
|
Copy(range (optional)[boolean])DescriptionCopies the IGA Integration Solid Reduce. The target include of the copied IGA Integration Solid Reduce can be set using Options.copy_target_include. |
If you want to keep the copied item in the range specified for the current include. Default value is false. To set current include, use Include.MakeCurrentLayer().
ReturnsIGAIntegrationSolidReduce object Return typeIGAIntegrationSolidReduce |
ExampleTo copy IGA Integration Solid Reduce igiso into IGA Integration Solid Reduce z: var z = igiso.Copy();
|
Create(Model[Model], modal (optional)[boolean]) [static]DescriptionStarts an interactive editing panel to create a IGA Integration Solid Reduce |
Model that the IGA Integration Solid Reduce will be created in.
If this window is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the window will be modal.
ReturnsIGAIntegrationSolidReduce object (or null if not made). Return typeIGAIntegrationSolidReduce |
ExampleTo start creating a IGA Integration Solid Reduce in model m: var igiso = IGAIntegrationSolidReduce.Create(m);
|
DetachComment(Comment[Comment])DescriptionDetaches a comment from a IGA Integration Solid Reduce. |
Comment that will be detached from the IGA Integration Solid Reduce
ReturnsNo return value |
ExampleTo detach comment c from the IGA Integration Solid Reduce igiso: igiso.DetachComment(c);
|
Edit(modal (optional)[boolean])DescriptionStarts an interactive editing panel. |
If this window is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the window will be modal.
Returnsno return value |
ExampleTo Edit IGA Integration Solid Reduce igiso: igiso.Edit();
|
Error(message[string], details (optional)[string])DescriptionAdds an error for IGA Integration Solid Reduce. For more details on checking see the Check class. |
The error message to give
An optional detailed error message
ReturnsNo return value |
ExampleTo add an error message "My custom error" for IGA Integration Solid Reduce igiso: igiso.Error("My custom error");
|
First(Model[Model]) [static]DescriptionReturns the first IGA Integration Solid Reduce in the model. |
Model to get first IGA Integration Solid Reduce in
ReturnsIGAIntegrationSolidReduce object (or null if there are no IGA Integration Solid Reduces in the model). Return typeIGAIntegrationSolidReduce |
ExampleTo get the first IGA Integration Solid Reduce in model m: var igiso = IGAIntegrationSolidReduce.First(m);
|
FlagAll(Model[Model], flag[Flag]) [static]DescriptionFlags all of the IGA Integration Solid Reduces in the model with a defined flag. |
Model that all IGA Integration Solid Reduces will be flagged in
Flag to set on the IGA Integration Solid Reduces
ReturnsNo return value |
ExampleTo flag all of the IGA Integration Solid Reduces with flag f in model m: IGAIntegrationSolidReduce.FlagAll(m, f);
|
Flagged(flag[Flag])DescriptionChecks if the IGA Integration Solid Reduce is flagged or not. |
Flag to test on the IGA Integration Solid Reduce
Returnstrue if flagged, false if not. Return typeBoolean |
ExampleTo check if IGA Integration Solid Reduce igiso has flag f set on it: if (igiso.Flagged(f) ) do_something...
|
ForEach(Model[Model], func[function], extra (optional)[any]) [static]DescriptionCalls a function for each IGA Integration Solid Reduce in the model. |
Model that all IGA Integration Solid Reduces are in
Function to call for each IGA Integration Solid Reduce
An optional extra object/array/string etc that will appended to arguments when calling the function
ReturnsNo return value |
GetAll(Model[Model], property (optional)[string]) [static]DescriptionReturns an array of IGAIntegrationSolidReduce objects or properties for all of the IGA Integration Solid Reduces in a model in PRIMER. If the optional property argument is not given then an array of IGAIntegrationSolidReduce objects is returned. If the property argument is given, that property value for each IGA Integration Solid Reduce is returned in the array instead of a IGAIntegrationSolidReduce object |
Model to get IGA Integration Solid Reduces from
Name for property to get for all IGA Integration Solid Reduces in the model
ReturnsArray of IGAIntegrationSolidReduce objects or properties Return typeArray |
GetComments()DescriptionExtracts the comments associated to a IGA Integration Solid Reduce. |
No arguments
ReturnsArray of Comment objects (or null if there are no comments associated to the node). Return typeArray |
ExampleTo get the array of comments associated to the IGA Integration Solid Reduce igiso: var comm_array = igiso.GetComments();
|
GetFlagged(Model[Model], flag[Flag], property (optional)[string]) [static]DescriptionReturns an array of IGAIntegrationSolidReduce objects for all of the flagged IGA Integration Solid Reduces in a model in PRIMER If the optional property argument is not given then an array of IGAIntegrationSolidReduce objects is returned. If the property argument is given, then that property value for each IGA Integration Solid Reduce is returned in the array instead of a IGAIntegrationSolidReduce object |
Model to get IGA Integration Solid Reduces from
Flag set on the IGA Integration Solid Reduces that you want to retrieve
Name for property to get for all flagged IGA Integration Solid Reduces in the model
ReturnsArray of IGAIntegrationSolidReduce objects or properties Return typeArray |
GetFromID(Model[Model], number[integer]) [static]DescriptionReturns the IGAIntegrationSolidReduce object for a IGA Integration Solid Reduce ID. |
Model to find the IGA Integration Solid Reduce in
number of the IGA Integration Solid Reduce you want the IGAIntegrationSolidReduce object for
ReturnsIGAIntegrationSolidReduce object (or null if IGA Integration Solid Reduce does not exist). Return typeIGAIntegrationSolidReduce |
ExampleTo get the IGAIntegrationSolidReduce object for IGA Integration Solid Reduce 100 in model m var igiso = IGAIntegrationSolidReduce.GetFromID(m, 100);
|
GetParameter(prop[string])DescriptionChecks if a IGAIntegrationSolidReduce property is a parameter or not. Note that object properties that are parameters are normally returned as the integer or float parameter values as that is virtually always what the user would want. For this function to work the JavaScript interpreter must use the parameter name instead of the value. This can be done by setting the Options.property_parameter_names option to true before calling the function and then resetting it to false afterwards.. This behaviour can also temporarily be switched by using the IGAIntegrationSolidReduce.ViewParameters() method and 'method chaining' (see the examples below). |
IGA Integration Solid Reduce property to get parameter for
ReturnsParameter object if property is a parameter, null if not. Return typeParameter |
Keyword()DescriptionReturns the keyword for this IGA integration solid reduce (*IGA_SOLID). Note that a carriage return is not added. See also IGAIntegrationSolidReduce.KeywordCards() |
No arguments
Returnsstring containing the keyword. Return typeString |
ExampleTo get the keyword for IGA integration solid reduce igs: var key = igs.Keyword();
|
KeywordCards()DescriptionReturns the keyword cards for the IGA integration solid reduce. Note that a carriage return is not added. See also IGAIntegrationSolidReduce.Keyword() |
No arguments
Returnsstring containing the cards. Return typeString |
ExampleTo get the cards for IGA integration solid reduce igs: var cards = igs.KeywordCards();
|
Last(Model[Model]) [static]DescriptionReturns the last IGA Integration Solid Reduce in the model. |
Model to get last IGA Integration Solid Reduce in
ReturnsIGAIntegrationSolidReduce object (or null if there are no IGA Integration Solid Reduces in the model). Return typeIGAIntegrationSolidReduce |
ExampleTo get the last IGA Integration Solid Reduce in model m: var igiso = IGAIntegrationSolidReduce.Last(m);
|
Next()DescriptionReturns the next IGA Integration Solid Reduce in the model. |
No arguments
ReturnsIGAIntegrationSolidReduce object (or null if there are no more IGA Integration Solid Reduces in the model). Return typeIGAIntegrationSolidReduce |
ExampleTo get the IGA Integration Solid Reduce in model m after IGA Integration Solid Reduce igiso: var igiso = igiso.Next();
|
Pick(prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean], button text (optional)[string]) [static]DescriptionAllows the user to pick a IGA Integration Solid Reduce. |
Text to display as a prompt to the user
If the argument is a Model then only IGA Integration Solid Reduces from that model can be picked. If the argument is a Flag then only IGA Integration Solid Reduces that are flagged with limit can be selected. If omitted, or null, any IGA Integration Solid Reduces from any model can be selected. from any model.
If picking is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the pick will be modal.
By default the window with the prompt will have a button labelled 'Cancel' which if pressed will cancel the pick and return null. If you want to change the text on the button use this argument. If omitted 'Cancel' will be used.
ReturnsIGAIntegrationSolidReduce object (or null if not picked) Return typeIGAIntegrationSolidReduce |
Previous()DescriptionReturns the previous IGA Integration Solid Reduce in the model. |
No arguments
ReturnsIGAIntegrationSolidReduce object (or null if there are no more IGA Integration Solid Reduces in the model). Return typeIGAIntegrationSolidReduce |
ExampleTo get the IGA Integration Solid Reduce in model m before IGA Integration Solid Reduce igiso: var igiso = igiso.Previous();
|
Select(flag[Flag], prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean]) [static]DescriptionAllows the user to select IGA Integration Solid Reduces using standard PRIMER object menus. |
Flag to use when selecting IGA Integration Solid Reduces
Text to display as a prompt to the user
If the argument is a Model then only IGA Integration Solid Reduces from that model can be selected. If the argument is a Flag then only IGA Integration Solid Reduces that are flagged with limit can be selected (limit should be different to flag). If omitted, or null, any IGA Integration Solid Reduces can be selected. from any model.
If selection is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the selection will be modal.
ReturnsNumber of IGA Integration Solid Reduces selected or null if menu cancelled Return typeNumber |
SetFlag(flag[Flag])DescriptionSets a flag on the IGA Integration Solid Reduce. |
Flag to set on the IGA Integration Solid Reduce
ReturnsNo return value |
ExampleTo set flag f for IGA Integration Solid Reduce igiso: igiso.SetFlag(f);
|
Sketch(redraw (optional)[boolean])DescriptionSketches the IGA Integration Solid Reduce. The IGA Integration Solid Reduce will be sketched until you either call IGAIntegrationSolidReduce.Unsketch(), IGAIntegrationSolidReduce.UnsketchAll(), Model.UnsketchAll(), or delete the model |
If model should be redrawn or not after the IGA Integration Solid Reduce is sketched. If omitted redraw is true. If you want to sketch several IGA Integration Solid Reduces and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo sketch IGA Integration Solid Reduce igiso: igiso.Sketch();
|
SketchFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionSketches all of the flagged IGA Integration Solid Reduces in the model. The IGA Integration Solid Reduces will be sketched until you either call IGAIntegrationSolidReduce.Unsketch(), IGAIntegrationSolidReduce.UnsketchFlagged(), Model.UnsketchAll(), or delete the model |
Model that all the flagged IGA Integration Solid Reduces will be sketched in
Flag set on the IGA Integration Solid Reduces that you want to sketch
If model should be redrawn or not after the IGA Integration Solid Reduces are sketched. If omitted redraw is true. If you want to sketch flagged IGA Integration Solid Reduces several times and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo sketch all IGA Integration Solid Reduces flagged with flag in model m: IGAIntegrationSolidReduce.SketchFlagged(m, flag);
|
Total(Model[Model], exists (optional)[boolean]) [static]DescriptionReturns the total number of IGA Integration Solid Reduces in the model. |
Model to get total for
true if only existing IGA Integration Solid Reduces should be counted. If false or omitted referenced but undefined IGA Integration Solid Reduces will also be included in the total.
Returnsnumber of IGA Integration Solid Reduces Return typeNumber |
ExampleTo get the total number of IGA Integration Solid Reduces in model m: var total = IGAIntegrationSolidReduce.Total(m);
|
UnflagAll(Model[Model], flag[Flag]) [static]DescriptionUnsets a defined flag on all of the IGA Integration Solid Reduces in the model. |
Model that the defined flag for all IGA Integration Solid Reduces will be unset in
Flag to unset on the IGA Integration Solid Reduces
ReturnsNo return value |
ExampleTo unset the flag f on all the IGA Integration Solid Reduces in model m: IGAIntegrationSolidReduce.UnflagAll(m, f);
|
Unsketch(redraw (optional)[boolean])DescriptionUnsketches the IGA Integration Solid Reduce. |
If model should be redrawn or not after the IGA Integration Solid Reduce is unsketched. If omitted redraw is true. If you want to unsketch several IGA Integration Solid Reduces and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo unsketch IGA Integration Solid Reduce igiso: igiso.Unsketch();
|
UnsketchAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionUnsketches all IGA Integration Solid Reduces. |
Model that all IGA Integration Solid Reduces will be unblanked in
If model should be redrawn or not after the IGA Integration Solid Reduces are unsketched. If omitted redraw is true. If you want to unsketch several things and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo unsketch all IGA Integration Solid Reduces in model m: IGAIntegrationSolidReduce.UnsketchAll(m);
|
UnsketchFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionUnsketches all flagged IGA Integration Solid Reduces in the model. |
Model that all IGA Integration Solid Reduces will be unsketched in
Flag set on the IGA Integration Solid Reduces that you want to unsketch
If model should be redrawn or not after the IGA Integration Solid Reduces are unsketched. If omitted redraw is true. If you want to unsketch several things and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo unsketch all IGA Integration Solid Reduces flagged with flag in model m: IGAIntegrationSolidReduce.UnsketchAll(m, flag);
|
No arguments
ReturnsIGAIntegrationSolidReduce object. Return typeIGAIntegrationSolidReduce |
ExampleTo check if IGAIntegrationSolidReduce property igiso.example is a parameter by using the IGAIntegrationSolidReduce.GetParameter() method: if (igiso.ViewParameters().GetParameter(igiso.example) ) do_something...
|
Warning(message[string], details (optional)[string])DescriptionAdds a warning for IGA Integration Solid Reduce. For more details on checking see the Check class. |
The warning message to give
An optional detailed warning message
ReturnsNo return value |
ExampleTo add a warning message "My custom warning" for IGA Integration Solid Reduce igiso: igiso.Warning("My custom warning");
|
Xrefs()DescriptionReturns the cross references for this IGA Integration Solid Reduce. |
No arguments
ReturnsXrefs object. Return typeXrefs |
ExampleTo get the cross references for IGA Integration Solid Reduce igiso: var xrefs = igiso.Xrefs();
|
toString()DescriptionCreates a string containing the IGA integration solid reduce data in keyword format. Note that this contains the keyword header and the keyword cards. See also IGAIntegrationSolidReduce.Keyword() and IGAIntegrationSolidReduce.KeywordCards(). |
No arguments
Returnsstring Return typeString |
ExampleTo get data for IGA integration solid reduce igs in keyword format var s = igs.toString();
|