The Beam class gives you access to beam 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 |
| cid | integer | Coordinate system ID (_SCALAR) |
| cid | integer | Coordinate system ID at node 1 (_SCALR) |
| colour | Colour | The colour of the beam |
| d1 | real | Section parameter 1 |
| d2 | real | Section parameter 2 |
| d3 | real | Section parameter 3 |
| d4 | real | Section parameter 4 |
| d5 | real | Section parameter 5 |
| d6 | real | Section parameter 6 |
| dofn1 | integer | Active degree of freedom at node 1 (_SCALAR) |
| dofn2 | integer | Active degree of freedom at node 2 (_SCALAR) |
| dofns | integer | Active degrees of freedom at nodes 1 and 2 (_SCALR) |
| eid | integer | Beam number. Also see the label property which is an alternative name for this. |
| elbow | logical | If ELBOW option is set. Can be true or false |
| exists (read only) | logical | true if beam exists, false if referred to but not defined. |
| include | integer | The Include file number that the beam is in. |
| iner | real | Mass moment of inertia for beam |
| label | integer | Beam number. Also see the eid property which is an alternative name for this. |
| local | integer | Coordinate system option |
| mn | integer | Middle Node for elbow beam |
| model (read only) | integer | The Model number that the beam is in. |
| n1 | integer | Node number 1 |
| n2 | integer | Node number 2 |
| n3 | integer | Node number 3 |
| nodes (read only) | integer | Number of nodes beam has |
| offset | real | If _OFFSET option is set. Can be true or false |
| orientation | real | If _ORIENTATION option is set. Can be true or false |
| parm1 | real | Thickness parameter 1 |
| parm2 | real | Thickness parameter 2 |
| parm3 | real | Thickness parameter 3 |
| parm4 | real | Thickness parameter 4 |
| parm5 | real | Thickness parameter 5 |
| pid | integer | Part number |
| pid1 | integer | Part number 1 for spotweld beam |
| pid2 | integer | Part number 2 for spotweld beam |
| pid_opt | logical | If _PID option is set. Can be true or false |
| rr1 | integer | Rotational release code at node 1 |
| rr2 | integer | Rotational release code at node 2 |
| rt1 | integer | Translational release code at node 1 |
| rt2 | integer | Translational release code at node 2 |
| scalar | logical | If _SCALAR option is set. Can be true or false |
| scalr | logical | If _SCALR option is set. Can be true or false |
| section | logical | If _SECTION option is set. Can be true or false |
| sn1 | integer | Scalar Node number 1 |
| sn2 | integer | Scalar Node number 2 |
| stype | string | Section type |
| thickness | logical | If _THICKNESS option is set. Can be true or false |
| transparency | integer | The transparency of the beam (0-100) 0% is opaque, 100% is transparent. |
| vol | real | Volume of beam |
| vx | real | Orientation vector X at node 1 |
| vy | real | Orientation vector Y at node 1 |
| vz | real | Orientation vector Z at node 1 |
| warpage | logical | If WARPAGE option is set. Can be true or false |
| wx1 | real | Offset vector X at node 1 |
| wx2 | real | Offset vector X at node 2 |
| wy1 | real | Offset vector Y at node 1 |
| wy2 | real | Offset vector Y at node 2 |
| wz1 | real | Offset vector Z at node 1 |
| wz2 | real | Offset vector Z at node 2 |
Detailed DescriptionThe Beam class allows you to create, modify, edit and manipulate beam cards. See the documentation below for more details. |
Constructornew Beam(Model[Model], eid[integer], pid[integer], n1[integer], n2 (optional)[integer], n3 (optional)[integer])DescriptionCreate a new Beam object. Use either 1, 2 or 3 nodes when creating a new beam. |
Model that beam will be created in
Beam number
Part number
Node number 1
Node number 2
Node number 3
ReturnsBeam object Return typeBeam |
ExampleTo create a new beam in model m with label 100, part 10 and nodes 1, 2, 3: var b = new Beam(m, 100, 10, 1, 2, 3);
|
Details of functionsAssociateComment(Comment[Comment])DescriptionAssociates a comment with a beam. |
Comment that will be attached to the beam
ReturnsNo return value |
ExampleTo associate comment c to the beam b: b.AssociateComment(c);
|
Blank()DescriptionBlanks the beam |
No arguments
ReturnsNo return value |
ExampleTo blank beam b: b.Blank();
|
BlankAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionBlanks all of the beams in the model. |
Model that all beams 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 beams in model m: Beam.BlankAll(m);
|
BlankFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionBlanks all of the flagged beams in the model. |
Model that all the flagged beams will be blanked in
Flag set on the beams 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 beams in model m flagged with f: Beam.BlankFlagged(m, f);
|
Blanked()DescriptionChecks if the beam is blanked or not. |
No arguments
Returnstrue if blanked, false if not. Return typeBoolean |
ExampleTo check if beam b is blanked: if (b.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 beam b: b.Browse();
|
ClearFlag(flag[Flag])DescriptionClears a flag on the beam. |
Flag to clear on the beam
ReturnsNo return value |
ExampleTo clear flag f for beam b: b.ClearFlag(f);
|
Copy(range (optional)[boolean])DescriptionCopies the beam. The target include of the copied beam 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().
ReturnsBeam object Return typeBeam |
ExampleTo copy beam b into beam z: var z = b.Copy();
|
Create(Model[Model], modal (optional)[boolean]) [static]DescriptionStarts an interactive editing panel to create a beam |
Model that the beam 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.
ReturnsBeam object (or null if not made). Return typeBeam |
ExampleTo start creating a beam in model m: var b = Beam.Create(m);
|
DetachComment(Comment[Comment])DescriptionDetaches a comment from a beam. |
Comment that will be detached from the beam
ReturnsNo return value |
ExampleTo detach comment c from the beam b: b.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 beam b: b.Edit();
|
The label of the database cross section.
ReturnsAn array containing the x,y,z coordinates of the cut point, or NULL if it does not cut Return typeArray |
ExampleTo get the cut line coordinates between database cross section 200 and beam b: var data = b.ElemCut(200)
|
Error(message[string], details (optional)[string])DescriptionAdds an error for beam. 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 beam b: b.Error("My custom error");
|
ExtractColour()DescriptionExtracts the actual colour used for beam. |
No arguments
Returnscolour value (integer) Return typeNumber |
ExampleTo return the colour used for drawing beam b: var colour = b.ExtractColour();
|
FindBeamInBox(Model[Model], xmin[real], xmax[real], ymin[real], ymax[real], zmin[real], zmax[real], flag (optional)[integer], excl (optional)[integer], vis_only (optional)[integer]) [static]DescriptionReturns an array of Beam objects for the beams within a box. Please note this function provides a list of all beams that could potentially be in the box (using computationally cheap bounding box comparison) it is not a rigorous test of whether the beam is actually in the box. Note an extension of "spot_thickness" is applied to each beam. This may include beams that are ostensibly outside box. The user should apply their own test. (this function is intended to provide an upper bound of elems to test) Setting the "excl" flag will require that the beam is fully contained, but this may not capture all the beams you want to process. |
Model designated model
Minimum bound in global x
Maximum bound in global x
Minimum bound in global y
Maximum bound in global y
Minimum bound in global z
Maximum bound in global z
Optional flag to restrict beams considered, if 0 all beams considered
Optional flag ( 0) Apply inclusive selection ( 1) Apply exclusive selection inclusive selection means elements intersect box exclusive selection means elements contained in box
Optional flag to consider visible elements only (1), if (0) all elements considered
ReturnsArray of Beam objects Return typeArray |
ExampleTo get an array of Beam objects for flagged beams within defined box (inclusive selection)
var s = Beam.FindBeamInBox(m, xmin, xmax, ymin, ymax, zmin, zmax, flag, 0, 0);
if(s.length) ...
|
FindBeamInit(Model[Model], flag (optional)[Flag]) [static] [deprecated]This function is deprecated in version 20.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions. DescriptionInitialize setup so that all flagged beams in model can be tested to see if they are within box. In v20.0 this function is obsolete and the flagging bit (if required) should be specified in Beam.FindBeamInBox() |
Model in which beams have been flagged
Optional flag that has been set on the beams, if 0 all beams considered
ReturnsNo return value |
ExampleTo initialize find setup for flagged beams in model m: Beam.FindBeamInit(m, flag);
|
First(Model[Model]) [static]DescriptionReturns the first beam in the model. |
Model to get first beam in
ReturnsBeam object (or null if there are no beams in the model). Return typeBeam |
ExampleTo get the first beam in model m: var b = Beam.First(m);
|
FirstFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the first free beam label in the model. Also see Beam.LastFreeLabel(), Beam.NextFreeLabel() and Model.FirstFreeItemLabel(). |
Model to get first free beam 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).
ReturnsBeam label. Return typeNumber |
ExampleTo get the first free beam label in model m: var label = Beam.FirstFreeLabel(m);
|
FlagAll(Model[Model], flag[Flag]) [static]DescriptionFlags all of the beams in the model with a defined flag. |
Model that all beams will be flagged in
Flag to set on the beams
ReturnsNo return value |
ExampleTo flag all of the beams with flag f in model m: Beam.FlagAll(m, f);
|
Flagged(flag[Flag])DescriptionChecks if the beam is flagged or not. |
Flag to test on the beam
Returnstrue if flagged, false if not. Return typeBoolean |
ExampleTo check if beam b has flag f set on it: if (b.Flagged(f) ) do_something...
|
ForEach(Model[Model], func[function], extra (optional)[any]) [static]DescriptionCalls a function for each beam in the model. |
Model that all beams are in
Function to call for each beam
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 Beam objects or properties for all of the beams in a model in PRIMER. If the optional property argument is not given then an array of Beam objects is returned. If the property argument is given, that property value for each beam is returned in the array instead of a Beam object |
Model to get beams from
Name for property to get for all beams in the model
ReturnsArray of Beam objects or properties Return typeArray |
GetComments()DescriptionExtracts the comments associated to a beam. |
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 beam b: var comm_array = b.GetComments();
|
GetFlagged(Model[Model], flag[Flag], property (optional)[string]) [static]DescriptionReturns an array of Beam objects for all of the flagged beams in a model in PRIMER If the optional property argument is not given then an array of Beam objects is returned. If the property argument is given, then that property value for each beam is returned in the array instead of a Beam object |
Model to get beams from
Flag set on the beams that you want to retrieve
Name for property to get for all flagged beams in the model
ReturnsArray of Beam objects or properties Return typeArray |
GetFromID(Model[Model], number[integer]) [static]DescriptionReturns the Beam object for a beam ID. |
Model to find the beam in
number of the beam you want the Beam object for
ReturnsBeam object (or null if beam does not exist). Return typeBeam |
ExampleTo get the Beam object for beam 100 in model m var b = Beam.GetFromID(m, 100);
|
GetParameter(prop[string])DescriptionChecks if a Beam 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 Beam.ViewParameters() method and 'method chaining' (see the examples below). |
beam property to get parameter for
ReturnsParameter object if property is a parameter, null if not. Return typeParameter |
Keyword()DescriptionReturns the keyword for this beam (*BEAM, *BEAM_SCALAR or *BEAM_SCALAR_VALUE). Note that a carriage return is not added. See also Beam.KeywordCards() |
No arguments
Returnsstring containing the keyword. Return typeString |
ExampleTo get the keyword for beam s: var key = s.Keyword();
|
KeywordCards()DescriptionReturns the keyword cards for the beam. Note that a carriage return is not added. See also Beam.Keyword() |
No arguments
Returnsstring containing the cards. Return typeString |
ExampleTo get the cards for beam b: var cards = b.KeywordCards();
|
Last(Model[Model]) [static]DescriptionReturns the last beam in the model. |
Model to get last beam in
ReturnsBeam object (or null if there are no beams in the model). Return typeBeam |
ExampleTo get the last beam in model m: var b = Beam.Last(m);
|
LastFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the last free beam label in the model. Also see Beam.FirstFreeLabel(), Beam.NextFreeLabel() and see Model.LastFreeItemLabel() |
Model to get last free beam 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.
ReturnsBeam label. Return typeNumber |
ExampleTo get the last free beam label in model m: var label = Beam.LastFreeLabel(m);
|
Next()DescriptionReturns the next beam in the model. |
No arguments
ReturnsBeam object (or null if there are no more beams in the model). Return typeBeam |
ExampleTo get the beam in model m after beam b: var b = b.Next();
|
NextFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the next free (highest+1) beam label in the model. Also see Beam.FirstFreeLabel(), Beam.LastFreeLabel() and Model.NextFreeItemLabel() |
Model to get next free beam 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).
ReturnsBeam label. Return typeNumber |
ExampleTo get the next free beam label in model m: var label = Beam.NextFreeLabel(m);
|
Pick(prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean], button text (optional)[string]) [static]DescriptionAllows the user to pick a beam. |
Text to display as a prompt to the user
If the argument is a Model then only beams from that model can be picked. If the argument is a Flag then only beams that are flagged with limit can be selected. If omitted, or null, any beams 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.
ReturnsBeam object (or null if not picked) Return typeBeam |
ExampleTo pick a beam from model m giving the prompt 'Pick beam from screen': var b = Beam.Pick('Pick beam from screen', m);
|
Previous()DescriptionReturns the previous beam in the model. |
No arguments
ReturnsBeam object (or null if there are no more beams in the model). Return typeBeam |
ExampleTo get the beam in model m before beam b: var b = b.Previous();
|
RenumberAll(Model[Model], start[integer]) [static]DescriptionRenumbers all of the beams in the model. |
Model that all beams will be renumbered in
Start point for renumbering
ReturnsNo return value |
ExampleTo renumber all of the beams in model m, from 1000000: Beam.RenumberAll(m, 1000000);
|
RenumberFlagged(Model[Model], flag[Flag], start[integer]) [static]DescriptionRenumbers all of the flagged beams in the model. |
Model that all the flagged beams will be renumbered in
Flag set on the beams that you want to renumber
Start point for renumbering
ReturnsNo return value |
ExampleTo renumber all of the beams in model m flagged with f, from 1000000: Beam.RenumberFlagged(m, f, 1000000);
|
SectionFacePoints(face[integer])DescriptionReturns the indices of the points for a faces to plot the true section of the beam. Note face numbers start at 0. Beam.SectionPoints must be called before this method. |
Face to get indices for
ReturnsArray of integers Return typeNumber |
ExampleTo get the indices of the points for the second face on beam b: var indices = b.SectionFacePoints(1);
|
SectionFaces()DescriptionReturns the number of faces to plot the true section of the beam. Beam.SectionPoints must be called before this method. |
No arguments
Returnsinteger Return typeNumber |
ExampleTo get the number of faces for beam b: var faces = b.SectionFaces();
|
SectionPoints()DescriptionReturns the point coordinates to plot the true section of the beam. They are returned in a single array of numbers. |
No arguments
ReturnsArray of reals Return typeNumber |
ExampleTo get the point coordinates for beam b: var points = b.SectionPoints();
|
Select(flag[Flag], prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean]) [static]DescriptionAllows the user to select beams using standard PRIMER object menus. |
Flag to use when selecting beams
Text to display as a prompt to the user
If the argument is a Model then only beams from that model can be selected. If the argument is a Flag then only beams that are flagged with limit can be selected (limit should be different to flag). If omitted, or null, any beams 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 beams selected or null if menu cancelled Return typeNumber |
SetFlag(flag[Flag])DescriptionSets a flag on the beam. |
Flag to set on the beam
ReturnsNo return value |
ExampleTo set flag f for beam b: b.SetFlag(f);
|
Sketch(redraw (optional)[boolean])DescriptionSketches the beam. The beam will be sketched until you either call Beam.Unsketch(), Beam.UnsketchAll(), Model.UnsketchAll(), or delete the model |
If model should be redrawn or not after the beam is sketched. If omitted redraw is true. If you want to sketch several beams and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo sketch beam b: b.Sketch();
|
SketchFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionSketches all of the flagged beams in the model. The beams will be sketched until you either call Beam.Unsketch(), Beam.UnsketchFlagged(), Model.UnsketchAll(), or delete the model |
Model that all the flagged beams will be sketched in
Flag set on the beams that you want to sketch
If model should be redrawn or not after the beams are sketched. If omitted redraw is true. If you want to sketch flagged beams several times and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo sketch all beams flagged with flag in model m: Beam.SketchFlagged(m, flag);
|
TiedNodeCheck(Contact label[integer], Flag[Flag], Option1[integer], Option2[integer])DescriptionChecks if nodes of beam are tied by contact or directly attached (non-zero option1) |
The label of the tied contact. If zero the tied contact is found for the beam by reverse lookup.
flag bit
Directly tied node (logical OR) 0:NONE 1:NRB/C_EXNO 2:BEAM 4:SHELL 8:SOLID 16:TSHELL
0:No action 1:report error if directly attached node (acc. option1) also captured by contact
Returnsstring Return typeString |
ExampleTo check if both nodes of beam b are tied by contact 200 or attach directly to constraint, beam or shell: var message = b.TiedNodeCheck(200, flag, 1|2|4, 1)
|
Timestep()DescriptionCalculates the timestep for the beam |
No arguments
Returnsreal Return typeNumber |
ExampleTo calculate the timestep for beam b: var timestep = b.Timestep();
|
Total(Model[Model], exists (optional)[boolean]) [static]DescriptionReturns the total number of beams in the model. |
Model to get total for
true if only existing beams should be counted. If false or omitted referenced but undefined beams will also be included in the total.
Returnsnumber of beams Return typeNumber |
ExampleTo get the total number of beams in model m: var total = Beam.Total(m);
|
Unblank()DescriptionUnblanks the beam |
No arguments
ReturnsNo return value |
ExampleTo unblank beam b: b.Unblank();
|
UnblankAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionUnblanks all of the beams in the model. |
Model that all beams 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 beams in model m: Beam.UnblankAll(m);
|
UnblankFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionUnblanks all of the flagged beams in the model. |
Model that the flagged beams will be unblanked in
Flag set on the beams 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 beams in model m flagged with f: Beam.UnblankFlagged(m, f);
|
UnflagAll(Model[Model], flag[Flag]) [static]DescriptionUnsets a defined flag on all of the beams in the model. |
Model that the defined flag for all beams will be unset in
Flag to unset on the beams
ReturnsNo return value |
ExampleTo unset the flag f on all the beams in model m: Beam.UnflagAll(m, f);
|
Unsketch(redraw (optional)[boolean])DescriptionUnsketches the beam. |
If model should be redrawn or not after the beam is unsketched. If omitted redraw is true. If you want to unsketch several beams and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo unsketch beam b: b.Unsketch();
|
UnsketchAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionUnsketches all beams. |
Model that all beams will be unblanked in
If model should be redrawn or not after the beams 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 beams in model m: Beam.UnsketchAll(m);
|
UnsketchFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionUnsketches all flagged beams in the model. |
Model that all beams will be unsketched in
Flag set on the beams that you want to unsketch
If model should be redrawn or not after the beams 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 beams flagged with flag in model m: Beam.UnsketchAll(m, flag);
|
No arguments
ReturnsBeam object. Return typeBeam |
ExampleTo check if Beam property b.example is a parameter by using the Beam.GetParameter() method: if (b.ViewParameters().GetParameter(b.example) ) do_something...
|
Warning(message[string], details (optional)[string])DescriptionAdds a warning for beam. 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 beam b: b.Warning("My custom warning");
|
Xrefs()DescriptionReturns the cross references for this beam. |
No arguments
ReturnsXrefs object. Return typeXrefs |
ExampleTo get the cross references for beam b: var xrefs = b.Xrefs();
|
toString()DescriptionCreates a string containing the beam data in keyword format. Note that this contains the keyword header and the keyword cards. See also Beam.Keyword() and Beam.KeywordCards(). |
No arguments
Returnsstring Return typeString |
ExampleTo get data for beam b in keyword format var str = b.toString();
|