The InterfaceLinkingEdge class gives you access to define Interface Linking Edge 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 Interface Linking Edge exists, false if referred to but not defined. |
| ifid | integer | Interface ID. |
| include | integer | The Include file number that the Interface Linking Edge is in. |
| model (read only) | integer | The Model number that the Interface Linking Edge is in. |
| nsid | integer | Node set ID |
Detailed DescriptionThe InterfaceLinkingEdge class allows you to create, modify, edit and manipulate Interface Linking Edge cards. See the documentation below for more details. |
Constructornew InterfaceLinkingEdge(Model[Model], nsid[integer], ifid[integer])DescriptionCreate a new InterfaceLinkingEdge object. |
Model that Interface Linking Edge will be created in
Node set ID
Interface ID
ReturnsInterfaceLinkingEdge object Return typeInterfaceLinkingEdge |
ExampleTo create a new Interface Linking Edge in model m with NSID 900 and IFID 2 var b = new InterfaceLinkingEdge(m, 900, 2);
|
Details of functionsAssociateComment(Comment[Comment])DescriptionAssociates a comment with a Interface Linking Edge. |
Comment that will be attached to the Interface Linking Edge
ReturnsNo return value |
ExampleTo associate comment c to the Interface Linking Edge I_LE: I_LE.AssociateComment(c);
|
ClearFlag(flag[Flag])DescriptionClears a flag on the Interface Linking Edge. |
Flag to clear on the Interface Linking Edge
ReturnsNo return value |
ExampleTo clear flag f for Interface Linking Edge I_LE: I_LE.ClearFlag(f);
|
Copy(range (optional)[boolean])DescriptionCopies the Interface Linking Edge. The target include of the copied Interface Linking Edge 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().
ReturnsInterfaceLinkingEdge object Return typeInterfaceLinkingEdge |
ExampleTo copy Interface Linking Edge I_LE into Interface Linking Edge z: var z = I_LE.Copy();
|
DetachComment(Comment[Comment])DescriptionDetaches a comment from a Interface Linking Edge. |
Comment that will be detached from the Interface Linking Edge
ReturnsNo return value |
ExampleTo detach comment c from the Interface Linking Edge I_LE: I_LE.DetachComment(c);
|
Error(message[string], details (optional)[string])DescriptionAdds an error for Interface Linking Edge. 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 Interface Linking Edge I_LE: I_LE.Error("My custom error");
|
First(Model[Model]) [static]DescriptionReturns the first Interface Linking Edge in the model. |
Model to get first Interface Linking Edge in
ReturnsInterfaceLinkingEdge object (or null if there are no Interface Linking Edges in the model). Return typeInterfaceLinkingEdge |
ExampleTo get the first Interface Linking Edge in model m: var I_LE = InterfaceLinkingEdge.First(m);
|
FlagAll(Model[Model], flag[Flag]) [static]DescriptionFlags all of the Interface Linking Edges in the model with a defined flag. |
Model that all Interface Linking Edges will be flagged in
Flag to set on the Interface Linking Edges
ReturnsNo return value |
ExampleTo flag all of the Interface Linking Edges with flag f in model m: InterfaceLinkingEdge.FlagAll(m, f);
|
Flagged(flag[Flag])DescriptionChecks if the Interface Linking Edge is flagged or not. |
Flag to test on the Interface Linking Edge
Returnstrue if flagged, false if not. Return typeBoolean |
ExampleTo check if Interface Linking Edge I_LE has flag f set on it: if (I_LE.Flagged(f) ) do_something...
|
ForEach(Model[Model], func[function], extra (optional)[any]) [static]DescriptionCalls a function for each Interface Linking Edge in the model. |
Model that all Interface Linking Edges are in
Function to call for each Interface Linking Edge
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 InterfaceLinkingEdge objects or properties for all of the Interface Linking Edges in a model in PRIMER. If the optional property argument is not given then an array of InterfaceLinkingEdge objects is returned. If the property argument is given, that property value for each Interface Linking Edge is returned in the array instead of a InterfaceLinkingEdge object |
Model to get Interface Linking Edges from
Name for property to get for all Interface Linking Edges in the model
ReturnsArray of InterfaceLinkingEdge objects or properties Return typeArray |
GetComments()DescriptionExtracts the comments associated to a Interface Linking Edge. |
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 Interface Linking Edge I_LE: var comm_array = I_LE.GetComments();
|
GetFlagged(Model[Model], flag[Flag], property (optional)[string]) [static]DescriptionReturns an array of InterfaceLinkingEdge objects for all of the flagged Interface Linking Edges in a model in PRIMER If the optional property argument is not given then an array of InterfaceLinkingEdge objects is returned. If the property argument is given, then that property value for each Interface Linking Edge is returned in the array instead of a InterfaceLinkingEdge object |
Model to get Interface Linking Edges from
Flag set on the Interface Linking Edges that you want to retrieve
Name for property to get for all flagged Interface Linking Edges in the model
ReturnsArray of InterfaceLinkingEdge objects or properties Return typeArray |
GetFromID(Model[Model], number[integer]) [static]DescriptionReturns the InterfaceLinkingEdge object for a Interface Linking Edge ID. |
Model to find the Interface Linking Edge in
number of the Interface Linking Edge you want the InterfaceLinkingEdge object for
ReturnsInterfaceLinkingEdge object (or null if Interface Linking Edge does not exist). Return typeInterfaceLinkingEdge |
ExampleTo get the InterfaceLinkingEdge object for Interface Linking Edge 100 in model m var I_LE = InterfaceLinkingEdge.GetFromID(m, 100);
|
GetParameter(prop[string])DescriptionChecks if a InterfaceLinkingEdge 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 InterfaceLinkingEdge.ViewParameters() method and 'method chaining' (see the examples below). |
Interface Linking Edge property to get parameter for
ReturnsParameter object if property is a parameter, null if not. Return typeParameter |
Keyword()DescriptionReturns the keyword for this Interface Linking Edge (*INTERFACE_LINKING_EDGE). Note that a carriage return is not added. See also InterfaceLinkingEdge.KeywordCards() |
No arguments
Returnsstring containing the keyword. Return typeString |
ExampleTo get the keyword for Interface Linking Edge m: var key = m.Keyword();
|
KeywordCards()DescriptionReturns the keyword cards for the Interface Linking Edge. Note that a carriage return is not added. See also InterfaceLinkingEdge.Keyword() |
No arguments
Returnsstring containing the cards. Return typeString |
ExampleTo get the cards for Interface Linking Edge l: var cards = l.KeywordCards();
|
Last(Model[Model]) [static]DescriptionReturns the last Interface Linking Edge in the model. |
Model to get last Interface Linking Edge in
ReturnsInterfaceLinkingEdge object (or null if there are no Interface Linking Edges in the model). Return typeInterfaceLinkingEdge |
ExampleTo get the last Interface Linking Edge in model m: var I_LE = InterfaceLinkingEdge.Last(m);
|
Next()DescriptionReturns the next Interface Linking Edge in the model. |
No arguments
ReturnsInterfaceLinkingEdge object (or null if there are no more Interface Linking Edges in the model). Return typeInterfaceLinkingEdge |
ExampleTo get the Interface Linking Edge in model m after Interface Linking Edge I_LE: var I_LE = I_LE.Next();
|
Previous()DescriptionReturns the previous Interface Linking Edge in the model. |
No arguments
ReturnsInterfaceLinkingEdge object (or null if there are no more Interface Linking Edges in the model). Return typeInterfaceLinkingEdge |
ExampleTo get the Interface Linking Edge in model m before Interface Linking Edge I_LE: var I_LE = I_LE.Previous();
|
Select(flag[Flag], prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean]) [static]DescriptionAllows the user to select Interface Linking Edges using standard PRIMER object menus. |
Flag to use when selecting Interface Linking Edges
Text to display as a prompt to the user
If the argument is a Model then only Interface Linking Edges from that model can be selected. If the argument is a Flag then only Interface Linking Edges that are flagged with limit can be selected (limit should be different to flag). If omitted, or null, any Interface Linking Edges 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 Interface Linking Edges selected or null if menu cancelled Return typeNumber |
SetFlag(flag[Flag])DescriptionSets a flag on the Interface Linking Edge. |
Flag to set on the Interface Linking Edge
ReturnsNo return value |
ExampleTo set flag f for Interface Linking Edge I_LE: I_LE.SetFlag(f);
|
Total(Model[Model], exists (optional)[boolean]) [static]DescriptionReturns the total number of Interface Linking Edges in the model. |
Model to get total for
true if only existing Interface Linking Edges should be counted. If false or omitted referenced but undefined Interface Linking Edges will also be included in the total.
Returnsnumber of Interface Linking Edges Return typeNumber |
ExampleTo get the total number of Interface Linking Edges in model m: var total = InterfaceLinkingEdge.Total(m);
|
UnflagAll(Model[Model], flag[Flag]) [static]DescriptionUnsets a defined flag on all of the Interface Linking Edges in the model. |
Model that the defined flag for all Interface Linking Edges will be unset in
Flag to unset on the Interface Linking Edges
ReturnsNo return value |
ExampleTo unset the flag f on all the Interface Linking Edges in model m: InterfaceLinkingEdge.UnflagAll(m, f);
|
No arguments
ReturnsInterfaceLinkingEdge object. Return typeInterfaceLinkingEdge |
ExampleTo check if InterfaceLinkingEdge property I_LE.example is a parameter by using the InterfaceLinkingEdge.GetParameter() method: if (I_LE.ViewParameters().GetParameter(I_LE.example) ) do_something...
|
Warning(message[string], details (optional)[string])DescriptionAdds a warning for Interface Linking Edge. 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 Interface Linking Edge I_LE: I_LE.Warning("My custom warning");
|
Xrefs()DescriptionReturns the cross references for this Interface Linking Edge. |
No arguments
ReturnsXrefs object. Return typeXrefs |
ExampleTo get the cross references for Interface Linking Edge I_LE: var xrefs = I_LE.Xrefs();
|
toString()DescriptionCreates a string containing the Interface Linking Edge data in keyword format. Note that this contains the keyword header and the keyword cards. See also InterfaceLinkingEdge.Keyword() and InterfaceLinkingEdge.KeywordCards(). |
No arguments
Returnsstring Return typeString |
ExampleTo get data for Interface Linking Edge l in keyword format var s = l.toString();
|