The Interpolation class gives you access to define *CONSTRAINED_INTERPOLATION 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 | Description |
| Interpolation.NODE | INID is a node. |
| Interpolation.NODE_SET | INID is a node set. |
| Name | Type | Description |
| cidd | integer | Coordinate System ID if LOCAL option is active. |
| ddof | integer | Dependent Degrees-of-Freedom. |
| dnid | integer | Dependent Node id. |
| exists (read only) | logical | true if constrained interpolation exists, false if referred to but not defined. |
| fgm | integer | Flag for special treatment of this constraint for implicit problems only. |
| icid | integer | Interpolation label |
| include | integer | The Include file number that the constrained interpolation is in. |
| indsw | integer | Switch for controlling the explicit solution when an independent (or dependent) node is deleted. |
| ityp | constant | The Independent Node type. Can be Interpolation.NODE or Interpolation.NODE_SET. |
| local | logical | true if _LOCAL is set. |
| model (read only) | integer | The Model number that the constrained interpolation is in. |
| total (read only) | integer | Total number of INID fields in the keyword. |
Detailed DescriptionThe Interpolation class allows you to create, modify, edit and manipulate *CONSTRAINED_INTERPOLATION cards. See the documentation below for more details. |
Constructornew Interpolation(Model[Model], icid[integer], dnid[integer], inid[integer], ddof (optional)[integer], local (optional)[boolean], cidd (optional)[integer], ityp (optional)[constant], idof (optional)[integer], twghtx (optional)[real], twghty (optional)[real], twghtz (optional)[real], rwghtx (optional)[real], rwghty (optional)[real], rwghtz (optional)[real], cidi (optional)[integer])DescriptionCreate a new Interpolation object. |
Model that Interpolation will be created in
Interpolation label
Dependent Node id.
Dependent Degrees-of-Freedom. The default value is 123456.
true if _LOCAL is set.
Coordinate System ID if LOCAL option is active. The default value is 0.
The Independent Node type. Can be Interpolation.NODE or Interpolation.NODE_SET. The default value is Interpolation.NODE.
Independent Degrees-of-Freedom. The default value is 123456.
Weighting factor for INID. Scales the x-translational component. The default value is 1.0.
Weighting factor for INID. Scales the y-translational component. The default value is twghtx.
Weighting factor for INID. Scales the z-translational component. The default value is twghtx.
Weighting factor for INID. Scales the x-rotational component. The default value is twghtx.
Weighting factor for INID. Scales the y-rotational component. The default value is twghtx.
Weighting factor for INID. Scales the z-rotational component. The default value is twghtx.
Coordinate System ID if LOCAL option is active. The default value is 0
ReturnsInterpolation object Return typeInterpolation |
Details of functionsAddRowData(inid[integer], idof (optional)[integer], twghtx (optional)[real], twghty (optional)[real], twghtz (optional)[real], rwghtx (optional)[real], rwghty (optional)[real], rwghtz (optional)[real], cidi (optional)[integer])DescriptionUsed to add additional independent node card and local coordinate card (if ITYP is Interpolation.NODE_SET) to the keyword. Adds this data to the end of the selected *CONSTRAINED_INTERPOLATION |
Independent Degrees-of-Freedom. The default value is 123456.
Weighting factor for INID. Scales the x-translational component. The default value is 1.0.
Weighting factor for INID. Scales the y-translational component. The default value is twghtx.
Weighting factor for INID. Scales the z-translational component. The default value is twghtx.
Weighting factor for INID. Scales the x-rotational component. The default value is twghtx.
Weighting factor for INID. Scales the y-rotational component. The default value is twghtx.
Weighting factor for INID. Scales the z-rotational component. The default value is twghtx.
Coordinate System ID if LOCAL option is active. The default value is 0.
ReturnsNo return value |
ExampleTo add INID 10 to the keyword c_i with idof 123, twghtx 1.2, twghty 2.2: c_i.AddRowData(10,123,1.2,2.2);
|
AssociateComment(Comment[Comment])DescriptionAssociates a comment with a constrained interpolation. |
Comment that will be attached to the constrained interpolation
ReturnsNo return value |
ExampleTo associate comment c to the constrained interpolation c_i: c_i.AssociateComment(c);
|
Blank()DescriptionBlanks the constrained interpolation |
No arguments
ReturnsNo return value |
ExampleTo blank constrained interpolation c_i: c_i.Blank();
|
BlankAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionBlanks all of the constrained interpolations in the model. |
Model that all constrained interpolations will be blanked in
If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using View.Redraw().
ReturnsNo return value |
ExampleTo blank all of the constrained interpolations in model m: Interpolation.BlankAll(m);
|
BlankFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionBlanks all of the flagged constrained interpolations in the model. |
Model that all the flagged constrained interpolations will be blanked in
Flag set on the constrained interpolations that you want to blank
If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using View.Redraw().
ReturnsNo return value |
ExampleTo blank all of the constrained interpolations in model m flagged with f: Interpolation.BlankFlagged(m, f);
|
Blanked()DescriptionChecks if the constrained interpolation is blanked or not. |
No arguments
Returnstrue if blanked, false if not. Return typeBoolean |
ExampleTo check if constrained interpolation c_i is blanked: if (c_i.Blanked() ) do_something...
|
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 constrained interpolation c_i: c_i.Browse();
|
ClearFlag(flag[Flag])DescriptionClears a flag on the constrained interpolation. |
Flag to clear on the constrained interpolation
ReturnsNo return value |
ExampleTo clear flag f for constrained interpolation c_i: c_i.ClearFlag(f);
|
Copy(range (optional)[boolean])DescriptionCopies the constrained interpolation. The target include of the copied constrained interpolation 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().
ReturnsInterpolation object Return typeInterpolation |
ExampleTo copy constrained interpolation c_i into constrained interpolation z: var z = c_i.Copy();
|
Create(Model[Model], modal (optional)[boolean]) [static]DescriptionStarts an interactive editing panel to create a constrained interpolation |
Model that the constrained interpolation 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.
ReturnsInterpolation object (or null if not made). Return typeInterpolation |
ExampleTo start creating a constrained interpolation in model m: var c_i = Interpolation.Create(m);
|
DetachComment(Comment[Comment])DescriptionDetaches a comment from a constrained interpolation. |
Comment that will be detached from the constrained interpolation
ReturnsNo return value |
ExampleTo detach comment c from the constrained interpolation c_i: c_i.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 constrained interpolation c_i: c_i.Edit();
|
Error(message[string], details (optional)[string])DescriptionAdds an error for constrained interpolation. 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 constrained interpolation c_i: c_i.Error("My custom error");
|
First(Model[Model]) [static]DescriptionReturns the first constrained interpolation in the model. |
Model to get first constrained interpolation in
ReturnsInterpolation object (or null if there are no constrained interpolations in the model). Return typeInterpolation |
ExampleTo get the first constrained interpolation in model m: var c_i = Interpolation.First(m);
|
FirstFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the first free constrained interpolation label in the model. Also see Interpolation.LastFreeLabel(), Interpolation.NextFreeLabel() and Model.FirstFreeItemLabel(). |
Model to get first free constrained interpolation label in
Include file (0 for the main file) to search for labels in (Equivalent to First free in layer in editing panels). If omitted the whole model will be used (Equivalent to First free in editing panels).
ReturnsInterpolation label. Return typeNumber |
ExampleTo get the first free constrained interpolation label in model m: var label = Interpolation.FirstFreeLabel(m);
|
FlagAll(Model[Model], flag[Flag]) [static]DescriptionFlags all of the constrained interpolations in the model with a defined flag. |
Model that all constrained interpolations will be flagged in
Flag to set on the constrained interpolations
ReturnsNo return value |
ExampleTo flag all of the constrained interpolations with flag f in model m: Interpolation.FlagAll(m, f);
|
Flagged(flag[Flag])DescriptionChecks if the constrained interpolation is flagged or not. |
Flag to test on the constrained interpolation
Returnstrue if flagged, false if not. Return typeBoolean |
ExampleTo check if constrained interpolation c_i has flag f set on it: if (c_i.Flagged(f) ) do_something...
|
ForEach(Model[Model], func[function], extra (optional)[any]) [static]DescriptionCalls a function for each constrained interpolation in the model. |
Model that all constrained interpolations are in
Function to call for each constrained interpolation
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 Interpolation objects or properties for all of the constrained interpolations in a model in PRIMER. If the optional property argument is not given then an array of Interpolation objects is returned. If the property argument is given, that property value for each constrained interpolation is returned in the array instead of a Interpolation object |
Model to get constrained interpolations from
Name for property to get for all constrained interpolations in the model
ReturnsArray of Interpolation objects or properties Return typeArray |
GetComments()DescriptionExtracts the comments associated to a constrained interpolation. |
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 constrained interpolation c_i: var comm_array = c_i.GetComments();
|
GetFlagged(Model[Model], flag[Flag], property (optional)[string]) [static]DescriptionReturns an array of Interpolation objects for all of the flagged constrained interpolations in a model in PRIMER If the optional property argument is not given then an array of Interpolation objects is returned. If the property argument is given, then that property value for each constrained interpolation is returned in the array instead of a Interpolation object |
Model to get constrained interpolations from
Flag set on the constrained interpolations that you want to retrieve
Name for property to get for all flagged constrained interpolations in the model
ReturnsArray of Interpolation objects or properties Return typeArray |
GetFromID(Model[Model], number[integer]) [static]DescriptionReturns the Interpolation object for a constrained interpolation ID. |
Model to find the constrained interpolation in
number of the constrained interpolation you want the Interpolation object for
ReturnsInterpolation object (or null if constrained interpolation does not exist). Return typeInterpolation |
ExampleTo get the Interpolation object for constrained interpolation 100 in model m var c_i = Interpolation.GetFromID(m, 100);
|
GetParameter(prop[string])DescriptionChecks if a Interpolation 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 Interpolation.ViewParameters() method and 'method chaining' (see the examples below). |
constrained interpolation property to get parameter for
ReturnsParameter object if property is a parameter, null if not. Return typeParameter |
GetRowData(row_index[Integer])DescriptionReturns independent node cards and local coordinate cards (if ITYP is Interpolation.NODE_SET) for the selected row of the *CONSTRAINED_INTERPOLATION. |
The row index of the data to return. Note that indices start at 0, not 1.
0 <= row_index < Interpolation.total
ReturnsArray containing data. Return typeArray |
ExampleTo loop over all the lines of the keyword for c_i: for (i=0; i<c_i.total; i++)
var data = c_i.GetRowData(i);
|
Keyword()DescriptionReturns the keyword for this Interpolation (*constrained_interpolation). Note that a carriage return is not added. See also Interpolation.KeywordCards() |
No arguments
Returnsstring containing the keyword. Return typeString |
ExampleTo get the keyword for Interpolation c_i: var key = c_i.Keyword();
|
KeywordCards()DescriptionReturns the keyword cards for the Interpolation. Note that a carriage return is not added. See also Interpolation.Keyword() |
No arguments
Returnsstring containing the cards. Return typeString |
ExampleTo get the cards for Interpolation c_i: var cards = c_i.KeywordCards();
|
Last(Model[Model]) [static]DescriptionReturns the last constrained interpolation in the model. |
Model to get last constrained interpolation in
ReturnsInterpolation object (or null if there are no constrained interpolations in the model). Return typeInterpolation |
ExampleTo get the last constrained interpolation in model m: var c_i = Interpolation.Last(m);
|
LastFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the last free constrained interpolation label in the model. Also see Interpolation.FirstFreeLabel(), Interpolation.NextFreeLabel() and see Model.LastFreeItemLabel() |
Model to get last free constrained interpolation label in
Include file (0 for the main file) to search for labels in (Equivalent to Highest free in layer in editing panels). If omitted the whole model will be used.
ReturnsInterpolation label. Return typeNumber |
ExampleTo get the last free constrained interpolation label in model m: var label = Interpolation.LastFreeLabel(m);
|
Next()DescriptionReturns the next constrained interpolation in the model. |
No arguments
ReturnsInterpolation object (or null if there are no more constrained interpolations in the model). Return typeInterpolation |
ExampleTo get the constrained interpolation in model m after constrained interpolation c_i: var c_i = c_i.Next();
|
NextFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the next free (highest+1) constrained interpolation label in the model. Also see Interpolation.FirstFreeLabel(), Interpolation.LastFreeLabel() and Model.NextFreeItemLabel() |
Model to get next free constrained interpolation label in
Include file (0 for the main file) to search for labels in (Equivalent to Highest+1 in layer in editing panels). If omitted the whole model will be used (Equivalent to Highest+1 in editing panels).
ReturnsInterpolation label. Return typeNumber |
ExampleTo get the next free constrained interpolation label in model m: var label = Interpolation.NextFreeLabel(m);
|
Pick(prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean], button text (optional)[string]) [static]DescriptionAllows the user to pick a constrained interpolation. |
Text to display as a prompt to the user
If the argument is a Model then only constrained interpolations from that model can be picked. If the argument is a Flag then only constrained interpolations that are flagged with limit can be selected. If omitted, or null, any constrained interpolations 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.
ReturnsInterpolation object (or null if not picked) Return typeInterpolation |
ExampleTo pick a constrained interpolation from model m giving the prompt 'Pick constrained interpolation from screen': var c_i = Interpolation.Pick('Pick constrained interpolation from screen', m);
|
Previous()DescriptionReturns the previous constrained interpolation in the model. |
No arguments
ReturnsInterpolation object (or null if there are no more constrained interpolations in the model). Return typeInterpolation |
ExampleTo get the constrained interpolation in model m before constrained interpolation c_i: var c_i = c_i.Previous();
|
RemoveRowData(row_index[Integer])DescriptionRemoves an independent node card and a local coordinate card (if ITYP is Interpolation.NODE_SET) for the selected row on the *CONSTRAINED_INTERPOLATION. |
The row index of the data to return. Note that indices start at 0, not 1.
0 <= row_index < Interpolation.total
ReturnsNo return value. |
ExampleTo remove row 2 for c_i: c_i.RemoveRowData(1);
|
RenumberAll(Model[Model], start[integer]) [static]DescriptionRenumbers all of the constrained interpolations in the model. |
Model that all constrained interpolations will be renumbered in
Start point for renumbering
ReturnsNo return value |
ExampleTo renumber all of the constrained interpolations in model m, from 1000000: Interpolation.RenumberAll(m, 1000000);
|
RenumberFlagged(Model[Model], flag[Flag], start[integer]) [static]DescriptionRenumbers all of the flagged constrained interpolations in the model. |
Model that all the flagged constrained interpolations will be renumbered in
Flag set on the constrained interpolations that you want to renumber
Start point for renumbering
ReturnsNo return value |
ExampleTo renumber all of the constrained interpolations in model m flagged with f, from 1000000: Interpolation.RenumberFlagged(m, f, 1000000);
|
Select(flag[Flag], prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean]) [static]DescriptionAllows the user to select constrained interpolations using standard PRIMER object menus. |
Flag to use when selecting constrained interpolations
Text to display as a prompt to the user
If the argument is a Model then only constrained interpolations from that model can be selected. If the argument is a Flag then only constrained interpolations that are flagged with limit can be selected (limit should be different to flag). If omitted, or null, any constrained interpolations 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 constrained interpolations selected or null if menu cancelled Return typeNumber |
SetFlag(flag[Flag])DescriptionSets a flag on the constrained interpolation. |
Flag to set on the constrained interpolation
ReturnsNo return value |
ExampleTo set flag f for constrained interpolation c_i: c_i.SetFlag(f);
|
SetRowData(row_index[Integer], inid[integer], idof (optional)[integer], twghtx (optional)[real], twghty (optional)[real], twghtz (optional)[real], rwghtx (optional)[real], rwghty (optional)[real], rwghtz (optional)[real], cidi (optional)[integer])DescriptionUsed to reset values in already existing independent node cards and local coordinate cards (if ITYP is Interpolation.NODE_SET) in the selected row of *CONSTRAINED_INTERPOLATION |
The row index of the data to return. Note that indices start at 0, not 1.
0 <= row_index < Interpolation.total
Independent Degrees-of-Freedom. The default value is 123456.
Weighting factor for INID. Scales the x-translational component. The default value is 1.0.
Weighting factor for INID. Scales the y-translational component. The default value is twghtx.
Weighting factor for INID. Scales the z-translational component. The default value is twghtx.
Weighting factor for INID. Scales the x-rotational component. The default value is twghtx.
Weighting factor for INID. Scales the y-rotational component. The default value is twghtx.
Weighting factor for INID. Scales the z-rotational component. The default value is twghtx.
Coordinate System ID if LOCAL option is active. The default value is 0
ReturnsNo return value |
ExampleTo reset the values of row 3 of the keyword with INID 11, idof 1234, twghtx 2.2, twghty 4.2: c_i.SetRowData(2,11,1234,2.2,4.2);
|
Sketch(redraw (optional)[boolean])DescriptionSketches the constrained interpolation. The constrained interpolation will be sketched until you either call Interpolation.Unsketch(), Interpolation.UnsketchAll(), Model.UnsketchAll(), or delete the model |
If model should be redrawn or not after the constrained interpolation is sketched. If omitted redraw is true. If you want to sketch several constrained interpolations and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo sketch constrained interpolation c_i: c_i.Sketch();
|
SketchFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionSketches all of the flagged constrained interpolations in the model. The constrained interpolations will be sketched until you either call Interpolation.Unsketch(), Interpolation.UnsketchFlagged(), Model.UnsketchAll(), or delete the model |
Model that all the flagged constrained interpolations will be sketched in
Flag set on the constrained interpolations that you want to sketch
If model should be redrawn or not after the constrained interpolations are sketched. If omitted redraw is true. If you want to sketch flagged constrained interpolations several times and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo sketch all constrained interpolations flagged with flag in model m: Interpolation.SketchFlagged(m, flag);
|
Total(Model[Model], exists (optional)[boolean]) [static]DescriptionReturns the total number of constrained interpolations in the model. |
Model to get total for
true if only existing constrained interpolations should be counted. If false or omitted referenced but undefined constrained interpolations will also be included in the total.
Returnsnumber of constrained interpolations Return typeNumber |
ExampleTo get the total number of constrained interpolations in model m: var total = Interpolation.Total(m);
|
Unblank()DescriptionUnblanks the constrained interpolation |
No arguments
ReturnsNo return value |
ExampleTo unblank constrained interpolation c_i: c_i.Unblank();
|
UnblankAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionUnblanks all of the constrained interpolations in the model. |
Model that all constrained interpolations will be unblanked in
If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using View.Redraw().
ReturnsNo return value |
ExampleTo unblank all of the constrained interpolations in model m: Interpolation.UnblankAll(m);
|
UnblankFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionUnblanks all of the flagged constrained interpolations in the model. |
Model that the flagged constrained interpolations will be unblanked in
Flag set on the constrained interpolations that you want to unblank
If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using View.Redraw().
ReturnsNo return value |
ExampleTo unblank all of the constrained interpolations in model m flagged with f: Interpolation.UnblankFlagged(m, f);
|
UnflagAll(Model[Model], flag[Flag]) [static]DescriptionUnsets a defined flag on all of the constrained interpolations in the model. |
Model that the defined flag for all constrained interpolations will be unset in
Flag to unset on the constrained interpolations
ReturnsNo return value |
ExampleTo unset the flag f on all the constrained interpolations in model m: Interpolation.UnflagAll(m, f);
|
Unsketch(redraw (optional)[boolean])DescriptionUnsketches the constrained interpolation. |
If model should be redrawn or not after the constrained interpolation is unsketched. If omitted redraw is true. If you want to unsketch several constrained interpolations and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo unsketch constrained interpolation c_i: c_i.Unsketch();
|
UnsketchAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionUnsketches all constrained interpolations. |
Model that all constrained interpolations will be unblanked in
If model should be redrawn or not after the constrained interpolations 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 constrained interpolations in model m: Interpolation.UnsketchAll(m);
|
UnsketchFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionUnsketches all flagged constrained interpolations in the model. |
Model that all constrained interpolations will be unsketched in
Flag set on the constrained interpolations that you want to unsketch
If model should be redrawn or not after the constrained interpolations 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 constrained interpolations flagged with flag in model m: Interpolation.UnsketchAll(m, flag);
|
No arguments
ReturnsInterpolation object. Return typeInterpolation |
ExampleTo check if Interpolation property c_i.example is a parameter by using the Interpolation.GetParameter() method: if (c_i.ViewParameters().GetParameter(c_i.example) ) do_something...
|
Warning(message[string], details (optional)[string])DescriptionAdds a warning for constrained interpolation. 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 constrained interpolation c_i: c_i.Warning("My custom warning");
|
Xrefs()DescriptionReturns the cross references for this constrained interpolation. |
No arguments
ReturnsXrefs object. Return typeXrefs |
ExampleTo get the cross references for constrained interpolation c_i: var xrefs = c_i.Xrefs();
|
toString()DescriptionCreates a string containing the Interpolation data in keyword format. Note that this contains the keyword header and the keyword cards. See also Interpolation.Keyword() and Interpolation.KeywordCards(). |
No arguments
Returnsstring Return typeString |
ExampleTo get data for Interpolation c_i in keyword format var s = c_i.toString();
|