The JointStiffness class gives you access to constrained joint stiffness 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 |
| cida | integer | Coordinate System ID #A. |
| cidb | integer | Coordinate System ID #B. |
| dlcidal | integer | LC: Alpha damping moment vs Rotl vel. |
| dlcidbt | integer | LC: Beta damping moment vs Rotl vel. |
| dlcidg | integer | LC: Gamma damping factor vs factor on Alpha damping moment. |
| dlcidp | integer | LC: P damping vs P rel velocity. |
| dlcidph | integer | LC: Phi damping moment vs rotation vel. |
| dlcidps | integer | LC: Psi damping moment vs rotation vel. |
| dlcidr | integer | LC: R damping vs R rel velocity. |
| dlcidt | integer | LC: Theta damping moment vs rotation vel. |
| dlcidx | integer | LC: X damping vs X rel velocity. |
| dlcidy | integer | LC: Y damping vs Y rel velocity. |
| dlcidz | integer | LC: Z damping vs Z rel velocity. |
| esal | real | Stiffness/angle in Alpha direction. |
| esbt | real | Stiffness/angle in Beta direction. |
| esph | real | Stiffness/angle in Phi direction. |
| esps | real | Stiffness/angle in Psi direction. |
| esr | real | Elastic stiffness for R stop and friction. |
| est | real | Stiffness/angle in Theta direction. |
| esx | real | Elastic stiffness for X stop and friction. |
| esy | real | Elastic stiffness for Y stop and friction. |
| esz | real | Elastic stiffness for Z stop and friction. |
| exists (read only) | logical | true if joint stiffness exists, false if referred to but not defined. |
| fd | real | Dynamic friction coefficient. |
| ffr | integer | LC: Lim R force, or yield force vs R translation. |
| ffx | integer | LC: Lim X force, or yield force vs X translation. |
| ffy | integer | LC: Lim Y force, or yield force vs Y translation. |
| ffz | integer | LC: Lim Z force, or yield force vs Z translation. |
| fmal | integer | LC: Alpha Frictional moment vs rotation. |
| fmbt | integer | LC: Beta Frictional moment vs rotation. |
| fmph | integer | LC: Psi frictional moment vs rotation. |
| fmps | integer | LC: Psi frictional moment vs rotation. |
| fmt | integer | LC: Theta frictional moment vs rotation. |
| fs | real | Static friction coefficient. |
| heading | string | This property is deprecated in version 21.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. JointStiffness heading. Use the title property instead [deprecated] |
| include | integer | The Include file number that the joint stiffness is in. |
| jid | integer | Joint for restraint/table uses. |
| jsid | integer | ID of the JointStiffness. Also see the label property which is an alternative name for this |
| label | integer | Label of the JointStiffness |
| lcidal | integer | LC: Alpha moment vs Rotation. |
| lcidbt | integer | LC: Beta moment vs Rotation. |
| lcidg | integer | LC: Gamma angle vs factor on Alpha blending. |
| lcidph | integer | LC: Phi moment vs rotation. |
| lcidps | integer | LC: Psi moment vs rotation. |
| lcidr | integer | LC: R force vs R rel displ. |
| lcidt | integer | LC: Theta moment vs rotation. |
| lcidx | integer | LC: X force vs X rel displ. |
| lcidy | integer | LC: Y force vs Y rel displ. |
| lcidz | integer | LC: Z force vs Z rel displ. |
| model (read only) | integer | The Model number that the joint stiffness is in. |
| nsabt | real | Stop angle for -ve Beta rotation. |
| nsaph | real | Stop angle for -ve Phi rotation. |
| nsaps | real | Stop angle for -ve Psi rotation. |
| nsat | real | Stop angle for -ve Theta rotation. |
| nsdx | real | Limiting -ve X translation. |
| nsdy | real | Limiting -ve Y translation. |
| nsdz | real | Limiting -ve Z translation. |
| option | constant | JointStiffness type. Can be JointStiffness.GENERALIZED, JointStiffness.FLEXION_TORSION, JointStiffness.TRANSLATIONAL or JointStiffness.CYLINDRICAL |
| pida | integer | Part ID #A. |
| pidb | integer | Part ID #B. |
| psabt | real | Stop angle for +ve Beta rotation. |
| psaph | real | Stop angle for +ve Phi rotation. |
| psaps | real | Stop angle for +ve Psi rotation. |
| psat | real | Stop angle for +ve Theta rotation. |
| psdr | real | Limiting R translation. |
| psdx | real | Limiting +ve X translation. |
| psdy | real | Limiting +ve Y translation. |
| psdz | real | Limiting +ve Z translation. |
| rad1 | real | Radius of pin. |
| rad2 | real | Radius of hole. |
| rps | real | Relative penalty stiffness. |
| saal | real | Stop angle for Alpha rotation. |
| title | string | JointStiffness title |
Constructornew JointStiffness(Model[Model], options [object])DescriptionCreate a new JointStiffness object. The fields on card 1 of the joint stiffness can be set in the constructor using the option argument. To set any other values use properties. |
Model that the joint stiffness will be created in
Options for creating the joint stiffness
Object has the following properties:
| Name | Type | Description |
| cida (optional) | integer | Coordinate System ID #A |
| cidb (optional) | integer | Coordinate System ID #B |
| id | integer | Joint stiffness ID |
| jid (optional) | integer | Joint for restraint/table uses |
| option | constant | Constrained joint stiffness option. Can be JointStiffness.GENERALIZED, JointStiffness.FLEXION_TORSION, JointStiffness.TRANSLATIONAL or JointStiffness.CYLINDRICAL |
| pida (optional) | integer | Part ID #A |
| pidb (optional) | integer | Part ID #B |
| rps (optional) | real | Relative penalty stiffness (for JointStiffness.TRANSLATIONAL or JointStiffness.CYLINDRICAL) |
| title (optional) | string | Joint stiffness title |
ReturnsJointStiffness object Return typeJointStiffness |
new JointStiffness(Model[Model], option[constant], label[integer], pida[integer], pidb[integer], cida[integer], cidb[integer], jid[integer], lcidph[integer], lcidt[integer], lcidps[integer], dlcidph[integer], dlcidt[integer], dlcidps[integer], esph[real], fmph[integer], est[real], fmt[integer], esps[real], fmps[integer], nsaph[real], psaph[real], nsat[real], psat[real], nsaps[real], psaps[real]) [deprecated]This function is deprecated in version 21.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. DescriptionCreate a new JointStiffness object for *CONSTRAINED_JOINT_STIFFNESS_GENERALIZED. |
Model that jstf will be created in
Must be JointStiffness.GENERALIZED.
JointStiffness ID of the JSTF. Also see the label argument which is an alternative name for this.
Part ID #A.
Part ID #B.
Coordinate System ID #A.
Coordinate System ID #B.
Joint for restraint/table uses.
LC: Phi moment vs rotation.
LC: Theta moment vs rotation.
LC: Psi moment vs rotation.
LC: Phi damping moment vs rotation vel.
LC: Theta damping moment vs rotation vel.
LC: Psi damping moment vs rotation vel.
Stiffness/angle in Phi direction.
LC: Psi frictional moment vs rotation.
Stiffness/angle in Theta direction.
LC: Theta frictional moment vs rotation.
Stiffness/angle in Psi direction.
LC: Psi frictional moment vs rotation.
Stop angle for -ve Phi rotation.
Stop angle for +ve Phi rotation.
Stop angle for -ve Theta rotation.
Stop angle for +ve Theta rotation.
Stop angle for -ve Psi rotation.
Stop angle for +ve Psi rotation.
ReturnsJointStiffness object Return typeJointStiffness |
new JointStiffness(Model[Model], option[constant], label[integer], pida[integer], pidb[integer], cida[integer], cidb[integer], jid[integer], lcidal[integer], lcidg[integer], lcidbt[integer], dlcidal[integer], dlcidg[integer], dlcidbt[integer], esal[real], fmal[integer], esbt[real], fmbt[integer], saal[real], nsabt[real], psabt[real]) [deprecated]This function is deprecated in version 21.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. DescriptionCreate a new JointStiffness object for *CONSTRAINED_JOINT_STIFFNESS_FLEXION-TORSION. |
Model that jstf will be created in
Must be JointStiffness.FLEXION_TORSION.
JointStiffness ID of the JSTF. Also see the label argument which is an alternative name for this.
Part ID #A.
Part ID #B.
Coordinate System ID #A.
Coordinate System ID #B.
Joint for restraint/table uses.
LC: Alpha moment vs Rotation.
LC: Gamma angle vs factor on Alpha blending.
LC: Beta moment vs Rotation.
LC: Alpha damping moment vs Rotl vel.
LC: Gamma damping factor vs factor on Alpha damping moment.
LC: Beta damping moment vs Rotl vel.
Stiffness/angle in Alpha direction.
LC: Alpha Frictional moment vs rotation.
Stiffness/angle in Beta direction.
LC: Beta Frictional moment vs rotation.
Stop angle for Alpha rotation.
Stop angle for -ve Beta rotation.
Stop angle for +ve Beta rotation.
ReturnsJointStiffness object Return typeJointStiffness |
new JointStiffness(Model[Model], option[constant], label[integer], pida[integer], pidb[integer], cida[integer], cidb[integer], jid[integer], rps[real], lcidx[integer], lcidy[integer], lcidz[integer], dlcidx[integer], dlcidy[integer], dlcidz[integer], esx[real], ffx[integer], esy[real], ffy[integer], esz[real], ffz[integer], nsdx[real], psdx[real], nsdy[real], psdy[real], nsdz[real], psdz[real], fs[real], fd[real]) [deprecated]This function is deprecated in version 21.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. DescriptionCreate a new JointStiffness object for *CONSTRAINED_JOINT_STIFFNESS_TRANSLATIONAL. |
Model that jstf will be created in
Must be JointStiffness.TRANSLATIONAL.
JointStiffness ID of the JSTF. Also see the label argument which is an alternative name for this.
Part ID #A.
Part ID #B.
Coordinate System ID #A.
Coordinate System ID #B.
Joint for restraint/table uses.
Relative penalty stiffness.
LC: X force vs X rel displ.
LC: Y force vs Y rel displ.
LC: Z force vs Z rel displ.
LC: X damping vs X rel velocity.
LC: Y damping vs Y rel velocity.
LC: Z damping vs Z rel velocity.
Elastic stiffness for X stop and friction.
LC: Lim X force, or yield force vs X translation.
Elastic stiffness for Y stop and friction.
LC: Lim Y force, or yield force vs Y translation.
Elastic stiffness for Z stop and friction.
LC: Lim Z force, or yield force vs Z translation.
Limiting -ve X translation.
Limiting +ve X translation.
Limiting -ve Y translation.
Limiting +ve Y translation.
Limiting -ve Z translation.
Limiting +ve Z translation.
Static friction coefficient.
Dynamic friction coefficient.
ReturnsJointStiffness object Return typeJointStiffness |
new JointStiffness(Model[Model], option[constant], label[integer], pida[integer], pidb[integer], cida[integer], cidb[integer], jid[integer], rps[real], lcidr[integer], lcidz[integer], dlcidr[integer], dlcidp[integer], dlcidz[integer], lcidt[integer], dlcidt[integer], esr[real], ffr[integer], esz[real], ffz[integer], rad1[real], rad2[real], psdr[real], nsdz[real], psdz[real], fs[real], fd[real]) [deprecated]This function is deprecated in version 21.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. DescriptionCreate a new JointStiffness object for *CONSTRAINED_JOINT_STIFFNESS_CYLINDRICAL. |
Model that jstf will be created in
Must be JointStiffness.CYLINDRICAL.
JointStiffness ID of the JSTF. Also see the label argument which is an alternative name for this.
Part ID #A.
Part ID #B.
Coordinate System ID #A.
Coordinate System ID #B.
Joint for restraint/table uses.
Relative penalty stiffness.
LC: R force vs R rel displ.
LC: Z force vs Z rel displ.
LC: R damping vs R rel velocity.
LC: P damping vs P rel velocity.
LC: Z damping vs Z rel velocity.
LC: Theta moment vs rotation.
LC: Theta damping moment vs rotation vel.
Elastic stiffness for R stop and friction.
LC: Lim R force, or yield force vs R translation.
Elastic stiffness for Z stop and friction.
LC: Lim Z force, or yield force vs Z translation.
Radius of pin.
Radius of hole.
Limiting R translation.
Limiting -ve Z translation.
Limiting +ve Z translation.
Static friction coefficient.
Dynamic friction coefficient.
ReturnsJointStiffness object Return typeJointStiffness |
Details of functionsAssociateComment(Comment[Comment])DescriptionAssociates a comment with a joint stiffness. |
Comment that will be attached to the joint stiffness
ReturnsNo return value |
ExampleTo associate comment c to the joint stiffness js: js.AssociateComment(c);
|
Blank()DescriptionBlanks the joint stiffness |
No arguments
ReturnsNo return value |
ExampleTo blank joint stiffness js: js.Blank();
|
BlankAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionBlanks all of the joint stiffnesses in the model. |
Model that all joint stiffnesses 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 joint stiffnesses in model m: JointStiffness.BlankAll(m);
|
BlankFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionBlanks all of the flagged joint stiffnesses in the model. |
Model that all the flagged joint stiffnesses will be blanked in
Flag set on the joint stiffnesses 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 joint stiffnesses in model m flagged with f: JointStiffness.BlankFlagged(m, f);
|
Blanked()DescriptionChecks if the joint stiffness is blanked or not. |
No arguments
Returnstrue if blanked, false if not. Return typeBoolean |
ExampleTo check if joint stiffness js is blanked: if (js.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 joint stiffness js: js.Browse();
|
ClearFlag(flag[Flag])DescriptionClears a flag on the joint stiffness. |
Flag to clear on the joint stiffness
ReturnsNo return value |
ExampleTo clear flag f for joint stiffness js: js.ClearFlag(f);
|
Copy(range (optional)[boolean])DescriptionCopies the joint stiffness. The target include of the copied joint stiffness 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().
ReturnsJointStiffness object Return typeJointStiffness |
ExampleTo copy joint stiffness js into joint stiffness z: var z = js.Copy();
|
Create(Model[Model], modal (optional)[boolean]) [static]DescriptionStarts an interactive editing panel to create a joint stiffness |
Model that the joint stiffness 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.
ReturnsJointStiffness object (or null if not made). Return typeJointStiffness |
ExampleTo start creating a joint stiffness in model m: var js = JointStiffness.Create(m);
|
DetachComment(Comment[Comment])DescriptionDetaches a comment from a joint stiffness. |
Comment that will be detached from the joint stiffness
ReturnsNo return value |
ExampleTo detach comment c from the joint stiffness js: js.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 joint stiffness js: js.Edit();
|
Error(message[string], details (optional)[string])DescriptionAdds an error for joint stiffness. 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 joint stiffness js: js.Error("My custom error");
|
First(Model[Model]) [static]DescriptionReturns the first joint stiffness in the model. |
Model to get first joint stiffness in
ReturnsJointStiffness object (or null if there are no joint stiffnesses in the model). Return typeJointStiffness |
ExampleTo get the first joint stiffness in model m: var js = JointStiffness.First(m);
|
FirstFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the first free joint stiffness label in the model. Also see JointStiffness.LastFreeLabel(), JointStiffness.NextFreeLabel() and Model.FirstFreeItemLabel(). |
Model to get first free joint stiffness 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).
ReturnsJointStiffness label. Return typeNumber |
ExampleTo get the first free joint stiffness label in model m: var label = JointStiffness.FirstFreeLabel(m);
|
FlagAll(Model[Model], flag[Flag]) [static]DescriptionFlags all of the joint stiffnesses in the model with a defined flag. |
Model that all joint stiffnesses will be flagged in
Flag to set on the joint stiffnesses
ReturnsNo return value |
ExampleTo flag all of the joint stiffnesses with flag f in model m: JointStiffness.FlagAll(m, f);
|
Flagged(flag[Flag])DescriptionChecks if the joint stiffness is flagged or not. |
Flag to test on the joint stiffness
Returnstrue if flagged, false if not. Return typeBoolean |
ExampleTo check if joint stiffness js has flag f set on it: if (js.Flagged(f) ) do_something...
|
ForEach(Model[Model], func[function], extra (optional)[any]) [static]DescriptionCalls a function for each joint stiffness in the model. |
Model that all joint stiffnesses are in
Function to call for each joint stiffness
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 JointStiffness objects or properties for all of the joint stiffnesses in a model in PRIMER. If the optional property argument is not given then an array of JointStiffness objects is returned. If the property argument is given, that property value for each joint stiffness is returned in the array instead of a JointStiffness object |
Model to get joint stiffnesses from
Name for property to get for all joint stiffnesses in the model
ReturnsArray of JointStiffness objects or properties Return typeArray |
GetComments()DescriptionExtracts the comments associated to a joint stiffness. |
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 joint stiffness js: var comm_array = js.GetComments();
|
GetFlagged(Model[Model], flag[Flag], property (optional)[string]) [static]DescriptionReturns an array of JointStiffness objects for all of the flagged joint stiffnesses in a model in PRIMER If the optional property argument is not given then an array of JointStiffness objects is returned. If the property argument is given, then that property value for each joint stiffness is returned in the array instead of a JointStiffness object |
Model to get joint stiffnesses from
Flag set on the joint stiffnesses that you want to retrieve
Name for property to get for all flagged joint stiffnesses in the model
ReturnsArray of JointStiffness objects or properties Return typeArray |
GetFromID(Model[Model], number[integer]) [static]DescriptionReturns the JointStiffness object for a joint stiffness ID. |
Model to find the joint stiffness in
number of the joint stiffness you want the JointStiffness object for
ReturnsJointStiffness object (or null if joint stiffness does not exist). Return typeJointStiffness |
ExampleTo get the JointStiffness object for joint stiffness 100 in model m var js = JointStiffness.GetFromID(m, 100);
|
GetParameter(prop[string])DescriptionChecks if a JointStiffness 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 JointStiffness.ViewParameters() method and 'method chaining' (see the examples below). |
joint stiffness property to get parameter for
ReturnsParameter object if property is a parameter, null if not. Return typeParameter |
Keyword()DescriptionReturns the keyword for this jstf (*CONSTRAINED_JOINT_STIFFNESS). Note that a carriage return is not added. See also JointStiffness.KeywordCards() |
No arguments
Returnsstring containing the keyword. Return typeString |
ExampleTo get the keyword for jstf n: var key = n.Keyword();
|
KeywordCards()DescriptionReturns the keyword cards for the jstf. Note that a carriage return is not added. See also JointStiffness.Keyword() |
No arguments
Returnsstring containing the cards. Return typeString |
ExampleTo get the cards for jstf n: var cards = n.KeywordCards();
|
Last(Model[Model]) [static]DescriptionReturns the last joint stiffness in the model. |
Model to get last joint stiffness in
ReturnsJointStiffness object (or null if there are no joint stiffnesses in the model). Return typeJointStiffness |
ExampleTo get the last joint stiffness in model m: var js = JointStiffness.Last(m);
|
LastFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the last free joint stiffness label in the model. Also see JointStiffness.FirstFreeLabel(), JointStiffness.NextFreeLabel() and see Model.LastFreeItemLabel() |
Model to get last free joint stiffness 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.
ReturnsJointStiffness label. Return typeNumber |
ExampleTo get the last free joint stiffness label in model m: var label = JointStiffness.LastFreeLabel(m);
|
Next()DescriptionReturns the next joint stiffness in the model. |
No arguments
ReturnsJointStiffness object (or null if there are no more joint stiffnesses in the model). Return typeJointStiffness |
ExampleTo get the joint stiffness in model m after joint stiffness js: var js = js.Next();
|
NextFreeLabel(Model[Model], layer (optional)[Include number]) [static]DescriptionReturns the next free (highest+1) joint stiffness label in the model. Also see JointStiffness.FirstFreeLabel(), JointStiffness.LastFreeLabel() and Model.NextFreeItemLabel() |
Model to get next free joint stiffness 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).
ReturnsJointStiffness label. Return typeNumber |
ExampleTo get the next free joint stiffness label in model m: var label = JointStiffness.NextFreeLabel(m);
|
Pick(prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean], button text (optional)[string]) [static]DescriptionAllows the user to pick a joint stiffness. |
Text to display as a prompt to the user
If the argument is a Model then only joint stiffnesses from that model can be picked. If the argument is a Flag then only joint stiffnesses that are flagged with limit can be selected. If omitted, or null, any joint stiffnesses 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.
ReturnsJointStiffness object (or null if not picked) Return typeJointStiffness |
ExampleTo pick a joint stiffness from model m giving the prompt 'Pick joint stiffness from screen': var js = JointStiffness.Pick('Pick joint stiffness from screen', m);
|
Previous()DescriptionReturns the previous joint stiffness in the model. |
No arguments
ReturnsJointStiffness object (or null if there are no more joint stiffnesses in the model). Return typeJointStiffness |
ExampleTo get the joint stiffness in model m before joint stiffness js: var js = js.Previous();
|
RenumberAll(Model[Model], start[integer]) [static]DescriptionRenumbers all of the joint stiffnesses in the model. |
Model that all joint stiffnesses will be renumbered in
Start point for renumbering
ReturnsNo return value |
ExampleTo renumber all of the joint stiffnesses in model m, from 1000000: JointStiffness.RenumberAll(m, 1000000);
|
RenumberFlagged(Model[Model], flag[Flag], start[integer]) [static]DescriptionRenumbers all of the flagged joint stiffnesses in the model. |
Model that all the flagged joint stiffnesses will be renumbered in
Flag set on the joint stiffnesses that you want to renumber
Start point for renumbering
ReturnsNo return value |
ExampleTo renumber all of the joint stiffnesses in model m flagged with f, from 1000000: JointStiffness.RenumberFlagged(m, f, 1000000);
|
Select(flag[Flag], prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean]) [static]DescriptionAllows the user to select joint stiffnesses using standard PRIMER object menus. |
Flag to use when selecting joint stiffnesses
Text to display as a prompt to the user
If the argument is a Model then only joint stiffnesses from that model can be selected. If the argument is a Flag then only joint stiffnesses that are flagged with limit can be selected (limit should be different to flag). If omitted, or null, any joint stiffnesses 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 joint stiffnesses selected or null if menu cancelled Return typeNumber |
SetFlag(flag[Flag])DescriptionSets a flag on the joint stiffness. |
Flag to set on the joint stiffness
ReturnsNo return value |
ExampleTo set flag f for joint stiffness js: js.SetFlag(f);
|
Sketch(redraw (optional)[boolean])DescriptionSketches the joint stiffness. The joint stiffness will be sketched until you either call JointStiffness.Unsketch(), JointStiffness.UnsketchAll(), Model.UnsketchAll(), or delete the model |
If model should be redrawn or not after the joint stiffness is sketched. If omitted redraw is true. If you want to sketch several joint stiffnesses and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo sketch joint stiffness js: js.Sketch();
|
SketchFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionSketches all of the flagged joint stiffnesses in the model. The joint stiffnesses will be sketched until you either call JointStiffness.Unsketch(), JointStiffness.UnsketchFlagged(), Model.UnsketchAll(), or delete the model |
Model that all the flagged joint stiffnesses will be sketched in
Flag set on the joint stiffnesses that you want to sketch
If model should be redrawn or not after the joint stiffnesses are sketched. If omitted redraw is true. If you want to sketch flagged joint stiffnesses several times and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo sketch all joint stiffnesses flagged with flag in model m: JointStiffness.SketchFlagged(m, flag);
|
Total(Model[Model], exists (optional)[boolean]) [static]DescriptionReturns the total number of joint stiffnesses in the model. |
Model to get total for
true if only existing joint stiffnesses should be counted. If false or omitted referenced but undefined joint stiffnesses will also be included in the total.
Returnsnumber of joint stiffnesses Return typeNumber |
ExampleTo get the total number of joint stiffnesses in model m: var total = JointStiffness.Total(m);
|
Unblank()DescriptionUnblanks the joint stiffness |
No arguments
ReturnsNo return value |
ExampleTo unblank joint stiffness js: js.Unblank();
|
UnblankAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionUnblanks all of the joint stiffnesses in the model. |
Model that all joint stiffnesses 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 joint stiffnesses in model m: JointStiffness.UnblankAll(m);
|
UnblankFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionUnblanks all of the flagged joint stiffnesses in the model. |
Model that the flagged joint stiffnesses will be unblanked in
Flag set on the joint stiffnesses 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 joint stiffnesses in model m flagged with f: JointStiffness.UnblankFlagged(m, f);
|
UnflagAll(Model[Model], flag[Flag]) [static]DescriptionUnsets a defined flag on all of the joint stiffnesses in the model. |
Model that the defined flag for all joint stiffnesses will be unset in
Flag to unset on the joint stiffnesses
ReturnsNo return value |
ExampleTo unset the flag f on all the joint stiffnesses in model m: JointStiffness.UnflagAll(m, f);
|
Unsketch(redraw (optional)[boolean])DescriptionUnsketches the joint stiffness. |
If model should be redrawn or not after the joint stiffness is unsketched. If omitted redraw is true. If you want to unsketch several joint stiffnesses and only redraw after the last one then use false for redraw and call View.Redraw().
ReturnsNo return value |
ExampleTo unsketch joint stiffness js: js.Unsketch();
|
UnsketchAll(Model[Model], redraw (optional)[boolean]) [static]DescriptionUnsketches all joint stiffnesses. |
Model that all joint stiffnesses will be unblanked in
If model should be redrawn or not after the joint stiffnesses 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 joint stiffnesses in model m: JointStiffness.UnsketchAll(m);
|
UnsketchFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]DescriptionUnsketches all flagged joint stiffnesses in the model. |
Model that all joint stiffnesses will be unsketched in
Flag set on the joint stiffnesses that you want to unsketch
If model should be redrawn or not after the joint stiffnesses 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 joint stiffnesses flagged with flag in model m: JointStiffness.UnsketchAll(m, flag);
|
No arguments
ReturnsJointStiffness object. Return typeJointStiffness |
ExampleTo check if JointStiffness property js.example is a parameter by using the JointStiffness.GetParameter() method: if (js.ViewParameters().GetParameter(js.example) ) do_something...
|
Warning(message[string], details (optional)[string])DescriptionAdds a warning for joint stiffness. 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 joint stiffness js: js.Warning("My custom warning");
|
Xrefs()DescriptionReturns the cross references for this joint stiffness. |
No arguments
ReturnsXrefs object. Return typeXrefs |
ExampleTo get the cross references for joint stiffness js: var xrefs = js.Xrefs();
|
toString()DescriptionCreates a string containing the jstf data in keyword format. Note that this contains the keyword header and the keyword cards. See also JointStiffness.Keyword() and JointStiffness.KeywordCards(). |
No arguments
Returnsstring Return typeString |
ExampleTo get data for jstf n in keyword format var s = n.toString();
|