The PrescribedAccelerometerRigid class gives you access to define *BOUNDARY_PRESCRIBED_ACCELEROMETER_RIGID 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 prescribed accelerometer rigid exists, false if referred to but not defined. |
| include | integer | The Include file number that the prescribed accelerometer rigid is in. |
| model (read only) | integer | The Model number that the prescribed accelerometer rigid is in. |
| nrow (read only) | integer | Number of accelerometer cards. |
| pid | integer | Part ID for rigid body whose motion is prescribed. |
| solv | integer | Solver type: 1 for Gaussian elimination or 2 for linear regression. |
Constructornew PrescribedAccelerometerRigid(Model[Model], pid[integer], solv (optional)[integer])DescriptionCreate a new PrescribedAccelerometerRigid object. |
Model that prescribed accelerometer rigid will be created in
Part ID for rigid body whose motion is prescribed.
Solver type
ReturnsPrescribedAccelerometerRigid object Return typePrescribedAccelerometerRigid |
ExampleTo create a new prescribed accelerometer rigid in model m with part ID 10 and solver type 2 (linear regression): var par = new PrescribedAccelerometerRigid(m, 10, 2);
|
Details of functionsAssociateComment(Comment[Comment])DescriptionAssociates a comment with a prescribed accelerometer rigid. |
Comment that will be attached to the prescribed accelerometer rigid
ReturnsNo return value |
ExampleTo associate comment c to the prescribed accelerometer rigid par: par.AssociateComment(c);
|
Browse(modal (optional)[boolean])DescriptionStarts an edit panel in Browse mode. |
If this window is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the window will be modal.
Returnsno return value |
ExampleTo Browse prescribed accelerometer rigid par: par.Browse();
|
ClearFlag(flag[Flag])DescriptionClears a flag on the prescribed accelerometer rigid. |
Flag to clear on the prescribed accelerometer rigid
ReturnsNo return value |
ExampleTo clear flag f for prescribed accelerometer rigid par: par.ClearFlag(f);
|
Copy(range (optional)[boolean])DescriptionCopies the prescribed accelerometer rigid. The target include of the copied prescribed accelerometer rigid 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().
ReturnsPrescribedAccelerometerRigid object Return typePrescribedAccelerometerRigid |
ExampleTo copy prescribed accelerometer rigid par into prescribed accelerometer rigid z: var z = par.Copy();
|
Create(Model[Model], modal (optional)[boolean]) [static]DescriptionStarts an interactive editing panel to create a prescribed accelerometer rigid |
Model that the prescribed accelerometer rigid 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.
ReturnsPrescribedAccelerometerRigid object (or null if not made). Return typePrescribedAccelerometerRigid |
ExampleTo start creating a prescribed accelerometer rigid in model m: var par = PrescribedAccelerometerRigid.Create(m);
|
DetachComment(Comment[Comment])DescriptionDetaches a comment from a prescribed accelerometer rigid. |
Comment that will be detached from the prescribed accelerometer rigid
ReturnsNo return value |
ExampleTo detach comment c from the prescribed accelerometer rigid par: par.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 prescribed accelerometer rigid par: par.Edit();
|
Error(message[string], details (optional)[string])DescriptionAdds an error for prescribed accelerometer rigid. 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 prescribed accelerometer rigid par: par.Error("My custom error");
|
First(Model[Model]) [static]DescriptionReturns the first prescribed accelerometer rigid in the model. |
Model to get first prescribed accelerometer rigid in
ReturnsPrescribedAccelerometerRigid object (or null if there are no prescribed accelerometer rigids in the model). Return typePrescribedAccelerometerRigid |
ExampleTo get the first prescribed accelerometer rigid in model m: var par = PrescribedAccelerometerRigid.First(m);
|
FlagAll(Model[Model], flag[Flag]) [static]DescriptionFlags all of the prescribed accelerometer rigids in the model with a defined flag. |
Model that all prescribed accelerometer rigids will be flagged in
Flag to set on the prescribed accelerometer rigids
ReturnsNo return value |
ExampleTo flag all of the prescribed accelerometer rigids with flag f in model m: PrescribedAccelerometerRigid.FlagAll(m, f);
|
Flagged(flag[Flag])DescriptionChecks if the prescribed accelerometer rigid is flagged or not. |
Flag to test on the prescribed accelerometer rigid
Returnstrue if flagged, false if not. Return typeBoolean |
ExampleTo check if prescribed accelerometer rigid par has flag f set on it: if (par.Flagged(f) ) do_something...
|
ForEach(Model[Model], func[function], extra (optional)[any]) [static]DescriptionCalls a function for each prescribed accelerometer rigid in the model. |
Model that all prescribed accelerometer rigids are in
Function to call for each prescribed accelerometer rigid
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 PrescribedAccelerometerRigid objects or properties for all of the prescribed accelerometer rigids in a model in PRIMER. If the optional property argument is not given then an array of PrescribedAccelerometerRigid objects is returned. If the property argument is given, that property value for each prescribed accelerometer rigid is returned in the array instead of a PrescribedAccelerometerRigid object |
Model to get prescribed accelerometer rigids from
Name for property to get for all prescribed accelerometer rigids in the model
ReturnsArray of PrescribedAccelerometerRigid objects or properties Return typeArray |
GetComments()DescriptionExtracts the comments associated to a prescribed accelerometer rigid. |
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 prescribed accelerometer rigid par: var comm_array = par.GetComments();
|
GetFlagged(Model[Model], flag[Flag], property (optional)[string]) [static]DescriptionReturns an array of PrescribedAccelerometerRigid objects for all of the flagged prescribed accelerometer rigids in a model in PRIMER If the optional property argument is not given then an array of PrescribedAccelerometerRigid objects is returned. If the property argument is given, then that property value for each prescribed accelerometer rigid is returned in the array instead of a PrescribedAccelerometerRigid object |
Model to get prescribed accelerometer rigids from
Flag set on the prescribed accelerometer rigids that you want to retrieve
Name for property to get for all flagged prescribed accelerometer rigids in the model
ReturnsArray of PrescribedAccelerometerRigid objects or properties Return typeArray |
GetFromID(Model[Model], number[integer]) [static]DescriptionReturns the PrescribedAccelerometerRigid object for a prescribed accelerometer rigid ID. |
Model to find the prescribed accelerometer rigid in
number of the prescribed accelerometer rigid you want the PrescribedAccelerometerRigid object for
ReturnsPrescribedAccelerometerRigid object (or null if prescribed accelerometer rigid does not exist). Return typePrescribedAccelerometerRigid |
ExampleTo get the PrescribedAccelerometerRigid object for prescribed accelerometer rigid 100 in model m var par = PrescribedAccelerometerRigid.GetFromID(m, 100);
|
GetParameter(prop[string])DescriptionChecks if a PrescribedAccelerometerRigid 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 PrescribedAccelerometerRigid.ViewParameters() method and 'method chaining' (see the examples below). |
prescribed accelerometer rigid property to get parameter for
ReturnsParameter object if property is a parameter, null if not. Return typeParameter |
GetRow(row[integer])DescriptionReturns the data for a row in the prescribed accelerometer rigid. |
The row you want the data for. Note row indices start at 0.
ReturnsAn array of numbers containing the row variables NID, CID, LCIDX, LCIDY and LCIDZ. Return typeNumber |
ExampleTo get the data for the 2nd row in prescribed accelerometer rigid par: var data = par.GetRow(1);
|
Keyword()DescriptionReturns the keyword for this prescribed accelerometer rigid. Note that a carriage return is not added. See also PrescribedAccelerometerRigid.KeywordCards() |
No arguments
Returnsstring containing the keyword. Return typeString |
ExampleTo get the keyword for prescribed accelerometer rigid par: var key = par.Keyword();
|
KeywordCards()DescriptionReturns the keyword cards for the prescribed accelerometer rigid. Note that a carriage return is not added. See also PrescribedAccelerometerRigid.Keyword() |
No arguments
Returnsstring containing the cards. Return typeString |
ExampleTo get the cards for prescribed accelerometer rigid par: var cards = par.KeywordCards();
|
Last(Model[Model]) [static]DescriptionReturns the last prescribed accelerometer rigid in the model. |
Model to get last prescribed accelerometer rigid in
ReturnsPrescribedAccelerometerRigid object (or null if there are no prescribed accelerometer rigids in the model). Return typePrescribedAccelerometerRigid |
ExampleTo get the last prescribed accelerometer rigid in model m: var par = PrescribedAccelerometerRigid.Last(m);
|
Next()DescriptionReturns the next prescribed accelerometer rigid in the model. |
No arguments
ReturnsPrescribedAccelerometerRigid object (or null if there are no more prescribed accelerometer rigids in the model). Return typePrescribedAccelerometerRigid |
ExampleTo get the prescribed accelerometer rigid in model m after prescribed accelerometer rigid par: var par = par.Next();
|
Previous()DescriptionReturns the previous prescribed accelerometer rigid in the model. |
No arguments
ReturnsPrescribedAccelerometerRigid object (or null if there are no more prescribed accelerometer rigids in the model). Return typePrescribedAccelerometerRigid |
ExampleTo get the prescribed accelerometer rigid in model m before prescribed accelerometer rigid par: var par = par.Previous();
|
RemoveRow(row[integer])DescriptionRemoves the data for a row in *BOUNDARY_PRESCRIBED_ACCELEROMETER_RIGID. |
The row you want to remove the data for. Note that row indices start at 0.
ReturnsNo return value. |
ExampleTo remove the second row of data for prescribed accelerometer rigid par: par.RemoveRow(1);
|
Select(flag[Flag], prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean]) [static]DescriptionAllows the user to select prescribed accelerometer rigids using standard PRIMER object menus. |
Flag to use when selecting prescribed accelerometer rigids
Text to display as a prompt to the user
If the argument is a Model then only prescribed accelerometer rigids from that model can be selected. If the argument is a Flag then only prescribed accelerometer rigids that are flagged with limit can be selected (limit should be different to flag). If omitted, or null, any prescribed accelerometer rigids 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 prescribed accelerometer rigids selected or null if menu cancelled Return typeNumber |
SetFlag(flag[Flag])DescriptionSets a flag on the prescribed accelerometer rigid. |
Flag to set on the prescribed accelerometer rigid
ReturnsNo return value |
ExampleTo set flag f for prescribed accelerometer rigid par: par.SetFlag(f);
|
SetRow(row[integer], data[Array of data])DescriptionSets the data for a row in *BOUNDARY_PRESCRIBED_ACCELEROMETER_RIGID. |
The row you want to set the data for. Note that row indices start at 0.
The data you want to set the row to
ReturnsNo return value. |
Total(Model[Model], exists (optional)[boolean]) [static]DescriptionReturns the total number of prescribed accelerometer rigids in the model. |
Model to get total for
true if only existing prescribed accelerometer rigids should be counted. If false or omitted referenced but undefined prescribed accelerometer rigids will also be included in the total.
Returnsnumber of prescribed accelerometer rigids Return typeNumber |
ExampleTo get the total number of prescribed accelerometer rigids in model m: var total = PrescribedAccelerometerRigid.Total(m);
|
UnflagAll(Model[Model], flag[Flag]) [static]DescriptionUnsets a defined flag on all of the prescribed accelerometer rigids in the model. |
Model that the defined flag for all prescribed accelerometer rigids will be unset in
Flag to unset on the prescribed accelerometer rigids
ReturnsNo return value |
ExampleTo unset the flag f on all the prescribed accelerometer rigids in model m: PrescribedAccelerometerRigid.UnflagAll(m, f);
|
No arguments
ReturnsPrescribedAccelerometerRigid object. Return typePrescribedAccelerometerRigid |
ExampleTo check if PrescribedAccelerometerRigid property par.example is a parameter by using the PrescribedAccelerometerRigid.GetParameter() method: if (par.ViewParameters().GetParameter(par.example) ) do_something...
|
Warning(message[string], details (optional)[string])DescriptionAdds a warning for prescribed accelerometer rigid. 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 prescribed accelerometer rigid par: par.Warning("My custom warning");
|
Xrefs()DescriptionReturns the cross references for this prescribed accelerometer rigid. |
No arguments
ReturnsXrefs object. Return typeXrefs |
ExampleTo get the cross references for prescribed accelerometer rigid par: var xrefs = par.Xrefs();
|
toString()DescriptionCreates a string containing the prescribed accelerometer rigid data in keyword format. Note that this contains the keyword header and the keyword cards. See also PrescribedAccelerometerRigid.Keyword() and PrescribedAccelerometerRigid.KeywordCards(). |
No arguments
Returnsstring Return typeString |
ExampleTo get data for prescribed accelerometer rigid par in keyword format var s = par.toString();
|