The PrescribedMotion class gives you access to define boundary prescribed motion 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 |
| birth | real | Birth time |
| bndout2dynain | logical | true if _BNDOUT2DYNAIN option is set, false if not |
| death | real | Death time |
| dof | integer | Degree of freedom |
| exists (read only) | logical | true if boundary prescribed motion exists, false if referred to but not defined. |
| form | integer | Formulation type. Used for Card 6. |
| heading | string | PrescribedMotion heading |
| id | logical | true if _ID option is set, false if not |
| include | integer | The Include file number that the boundary prescribed motion is in. |
| label | integer | PrescribedMotion number. |
| lcid | integer | Load curve of motion vs. time |
| lrb | integer | Lead rigid body for measuring relative displacement |
| model (read only) | integer | The Model number that the boundary prescribed motion is in. |
| nbeg | integer | Node ID of a starting node. Used for PrescribedMotion.SET_LINE |
| nend | integer | Node ID of a ending node. Used for PrescribedMotion.SET_LINE |
| node1 | integer | Optional orientation node for relative displacement |
| node2 | integer | Optional orientation node for relative displacement |
| offset1 | real | Offset 1 for types 9-11 |
| offset2 | real | Offset 2 for types 9-11 |
| prmr | string | String representing the name of the parameter to be output to the dynain file. Used when PrescribedMotion.bndout2dynain is set to true. |
| sf | real | Load curve scale factor |
| sfd | real | Scale factor for displacement penalty stiffness. Used for Card 6. |
| sfr | real | This property is deprecated in version 14.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. Scale factor for rotational penalty stiffness. Used for Card 6. [deprecated] |
| type | constant | The Prescribed motion type. Can be PrescribedMotion.NODE, PrescribedMotion.SET, PrescribedMotion.RIGID, PrescribedMotion.RIGID_LOCAL, PrescribedMotion.NRBC, PrescribedMotion.NRBC_LOCAL, PrescribedMotion.SET_BOX, PrescribedMotion.SET_SEGMENT, PrescribedMotion.SET_LINE, PrescribedMotion.POINT_UVW, PrescribedMotion.EDGE_UVW, PrescribedMotion.FACE_XYZ, PrescribedMotion.SET_POINT_UVW, PrescribedMotion.SET_EDGE_UVW or PrescribedMotion.SET_FACE_XYZ |
| typeid | integer | Node ID, node set ID, part ID or NRB |
| vad | integer | Velocity/acceleration/displacement flag |
| vid | integer | Vector ID |
Detailed DescriptionThe PrescribedMotion class allows you to create, modify, edit and boundary prescribed motion cards. See the documentation below for more details. |
Constructornew PrescribedMotion(Model[Model], typeid[integer], dof[integer], vad[integer], lcid[integer], type[constant], label (optional)[integer], heading (optional)[string])DescriptionCreate a new PrescribedMotion object. |
Model that PrescribedMotion will be created in
Node ID, node set ID or part ID
Degree of freedom
Velocity/acceleration/displacement flag
Load curve for motion
Specify the type of prescribed motion (Can be PrescribedMotion.NODE, PrescribedMotion.SET, PrescribedMotion.RIGID, PrescribedMotion.RIGID_LOCAL, PrescribedMotion.NRBC, PrescribedMotion.NRBC_LOCAL, PrescribedMotion.SET_BOX, PrescribedMotion.SET_SEGMENT, PrescribedMotion.SET_LINE, PrescribedMotion.POINT_UVW, PrescribedMotion.EDGE_UVW, PrescribedMotion.FACE_XYZ, PrescribedMotion.SET_POINT_UVW, PrescribedMotion.SET_EDGE_UVW or PrescribedMotion.SET_FACE_XYZ)
PrescribedMotion number
Title for the PrescribedMotion
ReturnsPrescribedMotion object Return typePrescribedMotion |
ExampleTo create a new displacement for node 100 in x using loadcurve 10 model m with label 200, of type SET var b = new PrescribedMotion(m, 100, 1, 2, 10, PrescribedMotion.SET, 200);
|
Details of functionsAnimationBackward() [static]DescriptionMoves backward one frame of a PrescribedMotion animation (pausing animation first if required). Also see the PrescribedMotion.AnimationBegin() method which MUST be called before you start animating and the PrescribedMotion.AnimationFinish() method which MUST be called after you have finished animating. |
No arguments
ReturnsNo return value |
ExampleTo move backward one frame of an animation: PrescribedMotion.AnimationBackward();
|
AnimationBegin(Model[Model], flag[Flag]) [static]DescriptionBegins a PrescribedMotion animation. This MUST be called before any of the other Animation methods. Also see the PrescribedMotion.AnimationFinish() method which MUST be called after you have finished animating. |
Model that PrescribedMotions are in
Flag set on the PrescribedMotions that you want to animate
Returns |
Object with the following properties:
| Name | Type | Description |
| end | real | End time |
| frame | integer | Current frame |
| frames | integer | Number of frames |
| rate | integer | Animation speed in fps |
| repeat | integer | Animation repeat (0=off, 1=on) |
| start | real | Start time |
| time | real | Current time |
| timestep | real | Timestep |
object
ExampleTo begin an animation of the PrescribedMotions in model m flagged with f: var aprops = PrescribedMotion.AnimationBegin(m, f);
|
AnimationFinish() [static]DescriptionFinishes a PrescribedMotion animation. This MUST be called to finish animating. This will restore nodal coordinates but will not perform a graphics update. Also see the PrescribedMotion.AnimationBegin() method which MUST be called before you start animating. |
No arguments
ReturnsNo return value |
ExampleTo finish animating: PrescribedMotion.AnimationFinish();
|
AnimationForward() [static]DescriptionMoves forward one frame of a PrescribedMotion animation (pausing animation first if required). Also see the PrescribedMotion.AnimationBegin() method which MUST be called before you start animating and the PrescribedMotion.AnimationFinish() method which MUST be called after you have finished animating. |
No arguments
ReturnsNo return value |
ExampleTo move forward one frame of an animation: PrescribedMotion.AnimationForward();
|
AnimationGetData() [static]DescriptionReturns the animation data (pausing animation first if required). Also see the PrescribedMotion.AnimationBegin() method which MUST be called before you start animating and the PrescribedMotion.AnimationFinish() method which MUST be called after you have finished animating. |
No arguments
Returns |
Object with the following properties:
| Name | Type | Description |
| end | real | End time |
| frame | integer | Current frame |
| frames | integer | Number of frames |
| rate | integer | Animation speed in fps |
| repeat | integer | Animation repeat (0=off, 1=on) |
| start | real | Start time |
| time | real | Current time |
| timestep | real | Timestep |
object
ExampleTo get the current animation data: PrescribedMotion.AnimationGetData();
|
AnimationPause() [static]DescriptionPauses playback of a PrescribedMotion animation. Also see the PrescribedMotion.AnimationBegin() method which MUST be called before you start animating and the PrescribedMotion.AnimationFinish() method which MUST be called after you have finished animating. |
No arguments
ReturnsNo return value |
ExampleTo pause playback of an animation: PrescribedMotion.AnimationPause();
|
AnimationPlay() [static]DescriptionStarts playback of a PrescribedMotion animation.
Also see the PrescribedMotion.AnimationBegin() method
which MUST be called before you start animating and the
PrescribedMotion.AnimationFinish() method
which MUST be called after you have finished animating. |
No arguments
ReturnsNo return value |
ExampleTo start playback of an animation: PrescribedMotion.AnimationPlay();
|
AnimationSetData(data[object]) [static]DescriptionSets the current animation data (pausing animation first if required). Also see the PrescribedMotion.AnimationBegin() method which MUST be called before you start animating and the PrescribedMotion.AnimationFinish() method which MUST be called after you have finished animating. |
data returned from PrescribedMotion.AnimationBegin() or PrescribedMotion.AnimationGetData()
Object has the following properties:
| Name | Type | Description |
| end | real | End time |
| frame | integer | Current frame |
| frames | integer | Number of frames |
| rate | integer | Animation speed in fps |
| repeat | integer | Animation repeat (0=off, 1=on) |
| start | real | Start time |
| time | real | Current time |
| timestep | real | Timestep |
ReturnsNo return value |
ExampleTo set the animation frame rate to 10 frames/sec: data = PrescribedMotion.AnimationGetData(); data.rate = 10; PrescribedMotion.AnimationSetData(data);
|
AnimationToEnd() [static]DescriptionMoves to the end of a PrescribedMotion animation (pausing animation first if required). Also see the PrescribedMotion.AnimationBegin() method which MUST be called before you start animating and the PrescribedMotion.AnimationFinish() method which MUST be called after you have finished animating. |
No arguments
ReturnsNo return value |
ExampleTo move to the end of an animation: PrescribedMotion.AnimationToEnd();
|
AnimationToStart() [static]DescriptionMoves to the start of a PrescribedMotion animation (pausing animation first if required). Also see the PrescribedMotion.AnimationBegin() method which MUST be called before you start animating and the PrescribedMotion.AnimationFinish() method which MUST be called after you have finished animating. |
No arguments
ReturnsNo return value |
ExampleTo move to the start of an animation: PrescribedMotion.AnimationToStart();
|
AnimationToTime() [static]DescriptionMoves to a specific time in a PrescribedMotion animation (pausing animation first if required). Also see the PrescribedMotion.AnimationBegin() method which MUST be called before you start animating and the PrescribedMotion.AnimationFinish() method which MUST be called after you have finished animating. |
No arguments
ReturnsNo return value |
ExampleTo move to time 28.0 in an animation: PrescribedMotion.AnimationToTime(28.0);
|
AssociateComment(Comment[Comment])DescriptionAssociates a comment with a boundary prescribed motion. |
Comment that will be attached to the boundary prescribed motion
ReturnsNo return value |
ExampleTo associate comment c to the boundary prescribed motion b: b.AssociateComment(c);
|
Blank()DescriptionBlanks the boundary prescribed motion |
No arguments
ReturnsNo return value |
ExampleTo blank boundary prescribed motion b: b.Blank();
|
BlankAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionBlanks all of the boundary prescribed motions in the model. |
Model that all boundary prescribed motions 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 boundary prescribed motions in model m: PrescribedMotion.BlankAll(m);
|
BlankFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionBlanks all of the flagged boundary prescribed motions in the model. |
Model that all the flagged boundary prescribed motions will be blanked in
Flag set on the boundary prescribed motions 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 boundary prescribed motions in model m flagged with f: PrescribedMotion.BlankFlagged(m, f);
|
Blanked()DescriptionChecks if the boundary prescribed motion is blanked or not. |
No arguments
Returnstrue if blanked, false if not. Return typeBoolean |
ExampleTo check if boundary prescribed motion b is blanked: if (b.Blanked() ) do_something...
|
ClearFlag(flag[Flag])DescriptionClears a flag on the boundary prescribed motion. |
Flag to clear on the boundary prescribed motion
ReturnsNo return value |
ExampleTo clear flag f for boundary prescribed motion b: b.ClearFlag(f);
|
Copy(range (optional)[boolean])DescriptionCopies the boundary prescribed motion. The target include of the copied boundary prescribed motion 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().
ReturnsPrescribedMotion object Return typePrescribedMotion |
ExampleTo copy boundary prescribed motion b into boundary prescribed motion z: var z = b.Copy();
|
DetachComment(Comment[Comment])DescriptionDetaches a comment from a boundary prescribed motion. |
Comment that will be detached from the boundary prescribed motion
ReturnsNo return value |
ExampleTo detach comment c from the boundary prescribed motion b: b.DetachComment(c);
|
Error(message[string], details (optional)[string])DescriptionAdds an error for boundary prescribed motion. 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 boundary prescribed motion b: b.Error("My custom error");
|
First(Model[Model]) [static]DescriptionReturns the first boundary prescribed motion in the model. |
Model to get first boundary prescribed motion in
ReturnsPrescribedMotion object (or null if there are no boundary prescribed motions in the model). Return typePrescribedMotion |
ExampleTo get the first boundary prescribed motion in model m: var b = PrescribedMotion.First(m);
|
FirstFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the first free boundary prescribed motion label in the model. Also see PrescribedMotion.LastFreeLabel(), PrescribedMotion.NextFreeLabel() and Model.FirstFreeItemLabel(). |
Model to get first free boundary prescribed motion 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).
ReturnsPrescribedMotion label. Return typeNumber |
ExampleTo get the first free boundary prescribed motion label in model m: var label = PrescribedMotion.FirstFreeLabel(m);
|
FlagAll(Model[Model], flag[Flag]) [static]DescriptionFlags all of the boundary prescribed motions in the model with a defined flag. |
Model that all boundary prescribed motions will be flagged in
Flag to set on the boundary prescribed motions
ReturnsNo return value |
ExampleTo flag all of the boundary prescribed motions with flag f in model m: PrescribedMotion.FlagAll(m, f);
|
Flagged(flag[Flag])DescriptionChecks if the boundary prescribed motion is flagged or not. |
Flag to test on the boundary prescribed motion
Returnstrue if flagged, false if not. Return typeBoolean |
ExampleTo check if boundary prescribed motion 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 boundary prescribed motion in the model. |
Model that all boundary prescribed motions are in
Function to call for each boundary prescribed motion
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 PrescribedMotion objects or properties for all of the boundary prescribed motions in a model in PRIMER. If the optional property argument is not given then an array of PrescribedMotion objects is returned. If the property argument is given, that property value for each boundary prescribed motion is returned in the array instead of a PrescribedMotion object |
Model to get boundary prescribed motions from
Name for property to get for all boundary prescribed motions in the model
ReturnsArray of PrescribedMotion objects or properties Return typeArray |
GetComments()DescriptionExtracts the comments associated to a boundary prescribed motion. |
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 boundary prescribed motion b: var comm_array = b.GetComments();
|
GetFlagged(Model[Model], flag[Flag], property (optional)[string]) [static]DescriptionReturns an array of PrescribedMotion objects for all of the flagged boundary prescribed motions in a model in PRIMER If the optional property argument is not given then an array of PrescribedMotion objects is returned. If the property argument is given, then that property value for each boundary prescribed motion is returned in the array instead of a PrescribedMotion object |
Model to get boundary prescribed motions from
Flag set on the boundary prescribed motions that you want to retrieve
Name for property to get for all flagged boundary prescribed motions in the model
ReturnsArray of PrescribedMotion objects or properties Return typeArray |
GetFromID(Model[Model], number[integer]) [static]DescriptionReturns the PrescribedMotion object for a boundary prescribed motion ID. |
Model to find the boundary prescribed motion in
number of the boundary prescribed motion you want the PrescribedMotion object for
ReturnsPrescribedMotion object (or null if boundary prescribed motion does not exist). Return typePrescribedMotion |
ExampleTo get the PrescribedMotion object for boundary prescribed motion 100 in model m var b = PrescribedMotion.GetFromID(m, 100);
|
GetParameter(prop[string])DescriptionChecks if a PrescribedMotion 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 PrescribedMotion.ViewParameters() method and 'method chaining' (see the examples below). |
boundary prescribed motion property to get parameter for
ReturnsParameter object if property is a parameter, null if not. Return typeParameter |
Keyword()DescriptionReturns the keyword for this PrescribedMotion (*BOUNDARY_PRESCRIBED_MOTION_xxxx). Note that a carriage return is not added. See also PrescribedMotion.KeywordCards() |
No arguments
Returnsstring containing the keyword. Return typeString |
ExampleTo get the keyword for PrescribedMotion pm: var key = pm.Keyword();
|
KeywordCards()DescriptionReturns the keyword cards for the PrescribedMotion. Note that a carriage return is not added. See also PrescribedMotion.Keyword() |
No arguments
Returnsstring containing the cards. Return typeString |
ExampleTo get the cards for PrescribedMotion pm: var cards = pm.KeywordCards();
|
Last(Model[Model]) [static]DescriptionReturns the last boundary prescribed motion in the model. |
Model to get last boundary prescribed motion in
ReturnsPrescribedMotion object (or null if there are no boundary prescribed motions in the model). Return typePrescribedMotion |
ExampleTo get the last boundary prescribed motion in model m: var b = PrescribedMotion.Last(m);
|
LastFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the last free boundary prescribed motion label in the model. Also see PrescribedMotion.FirstFreeLabel(), PrescribedMotion.NextFreeLabel() and see Model.LastFreeItemLabel() |
Model to get last free boundary prescribed motion 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.
ReturnsPrescribedMotion label. Return typeNumber |
ExampleTo get the last free boundary prescribed motion label in model m: var label = PrescribedMotion.LastFreeLabel(m);
|
Next()DescriptionReturns the next boundary prescribed motion in the model. |
No arguments
ReturnsPrescribedMotion object (or null if there are no more boundary prescribed motions in the model). Return typePrescribedMotion |
ExampleTo get the boundary prescribed motion in model m after boundary prescribed motion b: var b = b.Next();
|
NextFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the next free (highest+1) boundary prescribed motion label in the model. Also see PrescribedMotion.FirstFreeLabel(), PrescribedMotion.LastFreeLabel() and Model.NextFreeItemLabel() |
Model to get next free boundary prescribed motion 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).
ReturnsPrescribedMotion label. Return typeNumber |
ExampleTo get the next free boundary prescribed motion label in model m: var label = PrescribedMotion.NextFreeLabel(m);
|
Pick(prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean], button text (optional)[string]) [static]DescriptionAllows the user to pick a boundary prescribed motion. |
Text to display as a prompt to the user
If the argument is a Model then only boundary prescribed motions from that model can be picked. If the argument is a Flag then only boundary prescribed motions that are flagged with limit can be selected. If omitted, or null, any boundary prescribed motions 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.
ReturnsPrescribedMotion object (or null if not picked) Return typePrescribedMotion |
Previous()DescriptionReturns the previous boundary prescribed motion in the model. |
No arguments
ReturnsPrescribedMotion object (or null if there are no more boundary prescribed motions in the model). Return typePrescribedMotion |
ExampleTo get the boundary prescribed motion in model m before boundary prescribed motion b: var b = b.Previous();
|
RenumberAll(Model[Model], start[integer]) [static]DescriptionRenumbers all of the boundary prescribed motions in the model. |
Model that all boundary prescribed motions will be renumbered in
Start point for renumbering
ReturnsNo return value |
ExampleTo renumber all of the boundary prescribed motions in model m, from 1000000: PrescribedMotion.RenumberAll(m, 1000000);
|
RenumberFlagged(Model[Model], flag[Flag], start[integer]) [static]DescriptionRenumbers all of the flagged boundary prescribed motions in the model. |
Model that all the flagged boundary prescribed motions will be renumbered in
Flag set on the boundary prescribed motions that you want to renumber
Start point for renumbering
ReturnsNo return value |
ExampleTo renumber all of the boundary prescribed motions in model m flagged with f, from 1000000: PrescribedMotion.RenumberFlagged(m, f, 1000000);
|
Select(flag[Flag], prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean]) [static]DescriptionAllows the user to select boundary prescribed motions using standard PRIMER object menus. |
Flag to use when selecting boundary prescribed motions
Text to display as a prompt to the user
If the argument is a Model then only boundary prescribed motions from that model can be selected. If the argument is a Flag then only boundary prescribed motions that are flagged with limit can be selected (limit should be different to flag). If omitted, or null, any boundary prescribed motions 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 boundary prescribed motions selected or null if menu cancelled Return typeNumber |
SetFlag(flag[Flag])DescriptionSets a flag on the boundary prescribed motion. |
Flag to set on the boundary prescribed motion
ReturnsNo return value |
ExampleTo set flag f for boundary prescribed motion b: b.SetFlag(f);
|
Sketch(redraw (optional)[boolean])DescriptionSketches the boundary prescribed motion. The boundary prescribed motion will be sketched until you either call PrescribedMotion.Unsketch(), PrescribedMotion.UnsketchAll(), Model.UnsketchAll(), or delete the model |
If model should be redrawn or not after the boundary prescribed motion is sketched. If omitted redraw is true. If you want to sketch several boundary prescribed motions and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo sketch boundary prescribed motion b: b.Sketch();
|
SketchFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionSketches all of the flagged boundary prescribed motions in the model. The boundary prescribed motions will be sketched until you either call PrescribedMotion.Unsketch(), PrescribedMotion.UnsketchFlagged(), Model.UnsketchAll(), or delete the model |
Model that all the flagged boundary prescribed motions will be sketched in
Flag set on the boundary prescribed motions that you want to sketch
If model should be redrawn or not after the boundary prescribed motions are sketched. If omitted redraw is true. If you want to sketch flagged boundary prescribed motions several times and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo sketch all boundary prescribed motions flagged with flag in model m: PrescribedMotion.SketchFlagged(m, flag);
|
Total(Model[Model], exists (optional)[boolean]) [static]DescriptionReturns the total number of boundary prescribed motions in the model. |
Model to get total for
true if only existing boundary prescribed motions should be counted. If false or omitted referenced but undefined boundary prescribed motions will also be included in the total.
Returnsnumber of boundary prescribed motions Return typeNumber |
ExampleTo get the total number of boundary prescribed motions in model m: var total = PrescribedMotion.Total(m);
|
Unblank()DescriptionUnblanks the boundary prescribed motion |
No arguments
ReturnsNo return value |
ExampleTo unblank boundary prescribed motion b: b.Unblank();
|
UnblankAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionUnblanks all of the boundary prescribed motions in the model. |
Model that all boundary prescribed motions 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 boundary prescribed motions in model m: PrescribedMotion.UnblankAll(m);
|
UnblankFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionUnblanks all of the flagged boundary prescribed motions in the model. |
Model that the flagged boundary prescribed motions will be unblanked in
Flag set on the boundary prescribed motions 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 boundary prescribed motions in model m flagged with f: PrescribedMotion.UnblankFlagged(m, f);
|
UnflagAll(Model[Model], flag[Flag]) [static]DescriptionUnsets a defined flag on all of the boundary prescribed motions in the model. |
Model that the defined flag for all boundary prescribed motions will be unset in
Flag to unset on the boundary prescribed motions
ReturnsNo return value |
ExampleTo unset the flag f on all the boundary prescribed motions in model m: PrescribedMotion.UnflagAll(m, f);
|
Unsketch(redraw (optional)[boolean])DescriptionUnsketches the boundary prescribed motion. |
If model should be redrawn or not after the boundary prescribed motion is unsketched. If omitted redraw is true. If you want to unsketch several boundary prescribed motions and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo unsketch boundary prescribed motion b: b.Unsketch();
|
UnsketchAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionUnsketches all boundary prescribed motions. |
Model that all boundary prescribed motions will be unblanked in
If model should be redrawn or not after the boundary prescribed motions 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 boundary prescribed motions in model m: PrescribedMotion.UnsketchAll(m);
|
UnsketchFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionUnsketches all flagged boundary prescribed motions in the model. |
Model that all boundary prescribed motions will be unsketched in
Flag set on the boundary prescribed motions that you want to unsketch
If model should be redrawn or not after the boundary prescribed motions 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 boundary prescribed motions flagged with flag in model m: PrescribedMotion.UnsketchAll(m, flag);
|
No arguments
ReturnsPrescribedMotion object. Return typePrescribedMotion |
ExampleTo check if PrescribedMotion property b.example is a parameter by using the PrescribedMotion.GetParameter() method: if (b.ViewParameters().GetParameter(b.example) ) do_something...
|
Warning(message[string], details (optional)[string])DescriptionAdds a warning for boundary prescribed motion. 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 boundary prescribed motion b: b.Warning("My custom warning");
|
Xrefs()DescriptionReturns the cross references for this boundary prescribed motion. |
No arguments
ReturnsXrefs object. Return typeXrefs |
ExampleTo get the cross references for boundary prescribed motion b: var xrefs = b.Xrefs();
|
toString()DescriptionCreates a string containing the PrescribedMotion data in keyword format. Note that this contains the keyword header and the keyword cards. See also PrescribedMotion.Keyword() and PrescribedMotion.KeywordCards(). |
No arguments
Returnsstring Return typeString |
ExampleTo get data for PrescribedMotion pm in keyword format var s = pm.toString();
|