Oasys.PRIMER.JointStiffness class¶
Constants¶
- JointStiffness.CYLINDRICAL¶
JointStiffness is *CONSTRAINED_JOINT_STIFFNESS_CYLINDRICAL
- JointStiffness.FLEXION_TORSION¶
JointStiffness is *CONSTRAINED_JOINT_STIFFNESS_FLEXION-TORSION
- JointStiffness.GENERALIZED¶
JointStiffness is *CONSTRAINED_JOINT_STIFFNESS_GENERALIZED
- JointStiffness.TRANSLATIONAL¶
JointStiffness is *CONSTRAINED_JOINT_STIFFNESS_TRANSLATIONAL
Properties¶
- property JointStiffness.cida: integer¶
Coordinate System
ID #A
- property JointStiffness.cidb: integer¶
Coordinate System
ID #B
- property JointStiffness.esal: float¶
Stiffness/angle in Alpha direction
- property JointStiffness.esbt: float¶
Stiffness/angle in Beta direction
- property JointStiffness.esph: float¶
Stiffness/angle in Phi direction
- property JointStiffness.esps: float¶
Stiffness/angle in Psi direction
- property JointStiffness.esr: float¶
Elastic stiffness for R stop and friction
- property JointStiffness.est: float¶
Stiffness/angle in Theta direction
- property JointStiffness.esx: float¶
Elastic stiffness for X stop and friction
- property JointStiffness.esy: float¶
Elastic stiffness for Y stop and friction
- property JointStiffness.esz: float¶
Elastic stiffness for Z stop and friction
- property JointStiffness.exists(read only): boolean¶
true if jstf exists, false if referred to but not defined
- property JointStiffness.fd: float¶
Dynamic friction coefficient
- property JointStiffness.fs: float¶
Static friction coefficient
- property JointStiffness.jsid: integer¶
ID of the
JointStiffness
. Also see thelabel
property which is an alternative name for this
- property JointStiffness.label: integer¶
Label of the
JointStiffness
- property JointStiffness.nsabt: float¶
Stop angle for -ve Beta rotation
- property JointStiffness.nsaph: float¶
Stop angle for -ve Phi rotation
- property JointStiffness.nsaps: float¶
Stop angle for -ve Psi rotation
- property JointStiffness.nsat: float¶
Stop angle for -ve Theta rotation
- property JointStiffness.nsdx: float¶
Limiting -ve X translation
- property JointStiffness.nsdy: float¶
Limiting -ve Y translation
- property JointStiffness.nsdz: float¶
Limiting -ve Z translation
- property JointStiffness.option: constant¶
JointStiffness type. Can be
JointStiffness.GENERALIZED
,JointStiffness.FLEXION_TORSION
,JointStiffness.TRANSLATIONAL
orJointStiffness.CYLINDRICAL
- property JointStiffness.psabt: float¶
Stop angle for +ve Beta rotation
- property JointStiffness.psaph: float¶
Stop angle for +ve Phi rotation
- property JointStiffness.psaps: float¶
Stop angle for +ve Psi rotation
- property JointStiffness.psat: float¶
Stop angle for +ve Theta rotation
- property JointStiffness.psdr: float¶
Limiting R translation
- property JointStiffness.psdx: float¶
Limiting +ve X translation
- property JointStiffness.psdy: float¶
Limiting +ve Y translation
- property JointStiffness.psdz: float¶
Limiting +ve Z translation
- property JointStiffness.rad1: float¶
Radius of pin
- property JointStiffness.rad2: float¶
Radius of hole
- property JointStiffness.rps: float¶
Relative penalty stiffness
- property JointStiffness.saal: float¶
Stop angle for Alpha rotation
- property JointStiffness.title: string¶
JointStiffness
title
Constructor¶
- classmethod JointStiffness(model, options)¶
Create 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
- Parameters:
model (Model) –
Model
that the joint stiffness will be created inoptions (dict) –
Options for creating the joint stiffness
- 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
orJointStiffness.CYLINDRICAL
- pida (optional):
(integer)
Part
ID #A- pidb (optional):
(integer)
Part
ID #B- rps (optional):
(float) Relative penalty stiffness (for
JointStiffness.TRANSLATIONAL
orJointStiffness.CYLINDRICAL
)- title (optional):
(string) Joint stiffness title
- Returns:
JointStiffness object
- Return type:
dict
Example
To create a new joint stiffness 500 with title “test” of type GENERALIZED in model m with rigid body parts 50 and 150 and lcidph 10
j = Oasys.PRIMER.JointStiffness(m, { 'type': Oasys.PRIMER.JointStiffness.GENERALIZED, 'id': 500, 'pida': 50, 'pidb': 50, 'title': 'test' } ) j.lcidph = 10
Static methods¶
- classmethod JointStiffness.BlankAll(model, redraw=Oasys.gRPC.defaultArg)¶
Blanks all of the joint stiffnesss in the model
- Parameters:
model (Model) –
Model
that all joint stiffnesss will be blanked inredraw (boolean) – Optional. 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()
- Returns:
No return value
- Return type:
None
Example
To blank all of the joint stiffnesss in model m:
Oasys.PRIMER.JointStiffness.BlankAll(m)
- classmethod JointStiffness.BlankFlagged(model, flag, redraw=Oasys.gRPC.defaultArg)¶
Blanks all of the flagged joint stiffnesss in the model
- Parameters:
model (Model) –
Model
that all the flagged joint stiffnesss will be blanked inflag (Flag) – Flag set on the joint stiffnesss that you want to blank
redraw (boolean) – Optional. 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()
- Returns:
No return value
- Return type:
None
Example
To blank all of the joint stiffnesss in model m flagged with f:
Oasys.PRIMER.JointStiffness.BlankFlagged(m, f)
- classmethod JointStiffness.Create(model, modal=Oasys.gRPC.defaultArg)¶
Starts an interactive editing panel to create a jstf
- Parameters:
model (Model) –
Model
that the jstf will be created inmodal (boolean) – Optional. 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
- Returns:
JointStiffness object (or None if not made)
- Return type:
dict
Example
To start creating a jstf in model m:
m = Oasys.PRIMER.JointStiffness.Create(m)
- classmethod JointStiffness.First(model)¶
Returns the first joint stiffness in the model
- Parameters:
model (Model) –
Model
to get first joint stiffness in- Returns:
JointStiffness object (or None if there are no joint stiffnesss in the model)
- Return type:
JointStiffness
Example
To get the first joint stiffness in model m:
js = Oasys.PRIMER.JointStiffness.First(m)
- classmethod JointStiffness.FirstFreeLabel(model, layer=Oasys.gRPC.defaultArg)¶
Returns the first free joint stiffness label in the model. Also see
JointStiffness.LastFreeLabel()
,JointStiffness.NextFreeLabel()
andModel.FirstFreeItemLabel()
- Parameters:
- Returns:
JointStiffness label
- Return type:
int
Example
To get the first free joint stiffness label in model m:
label = Oasys.PRIMER.JointStiffness.FirstFreeLabel(m)
- classmethod JointStiffness.FlagAll(model, flag)¶
Flags all of the joint stiffnesss in the model with a defined flag
- Parameters:
model (Model) –
Model
that all joint stiffnesss will be flagged inflag (Flag) – Flag to set on the joint stiffnesss
- Returns:
No return value
- Return type:
None
Example
To flag all of the joint stiffnesss with flag f in model m:
Oasys.PRIMER.JointStiffness.FlagAll(m, f)
- classmethod JointStiffness.GetAll(model)¶
Returns a list of JointStiffness objects for all of the joint stiffnesss in a model in PRIMER
- Parameters:
model (Model) –
Model
to get joint stiffnesss from- Returns:
List of JointStiffness objects
- Return type:
list
Example
To make a list of JointStiffness objects for all of the joint stiffnesss in model m
js = Oasys.PRIMER.JointStiffness.GetAll(m)
- classmethod JointStiffness.GetFlagged(model, flag)¶
Returns a list of JointStiffness objects for all of the flagged joint stiffnesss in a model in PRIMER
- Parameters:
model (Model) –
Model
to get joint stiffnesss fromflag (Flag) – Flag set on the joint stiffnesss that you want to retrieve
- Returns:
List of JointStiffness objects
- Return type:
list
Example
To make a list of JointStiffness objects for all of the joint stiffnesss in model m flagged with f
js = Oasys.PRIMER.JointStiffness.GetFlagged(m, f)
- classmethod JointStiffness.GetFromID(model, number)¶
Returns the JointStiffness object for a joint stiffness ID
- Parameters:
model (Model) –
Model
to find the joint stiffness innumber (integer) – number of the joint stiffness you want the JointStiffness object for
- Returns:
JointStiffness object (or None if joint stiffness does not exist)
- Return type:
JointStiffness
Example
To get the JointStiffness object for joint stiffness 100 in model m
js = Oasys.PRIMER.JointStiffness.GetFromID(m, 100)
- classmethod JointStiffness.Last(model)¶
Returns the last joint stiffness in the model
- Parameters:
model (Model) –
Model
to get last joint stiffness in- Returns:
JointStiffness object (or None if there are no joint stiffnesss in the model)
- Return type:
JointStiffness
Example
To get the last joint stiffness in model m:
js = Oasys.PRIMER.JointStiffness.Last(m)
- classmethod JointStiffness.LastFreeLabel(model, layer=Oasys.gRPC.defaultArg)¶
Returns the last free joint stiffness label in the model. Also see
JointStiffness.FirstFreeLabel()
,JointStiffness.NextFreeLabel()
and seeModel.LastFreeItemLabel()
- Parameters:
- Returns:
JointStiffness label
- Return type:
int
Example
To get the last free joint stiffness label in model m:
label = Oasys.PRIMER.JointStiffness.LastFreeLabel(m)
- classmethod JointStiffness.NextFreeLabel(model, layer=Oasys.gRPC.defaultArg)¶
Returns the next free (highest+1) joint stiffness label in the model. Also see
JointStiffness.FirstFreeLabel()
,JointStiffness.LastFreeLabel()
andModel.NextFreeItemLabel()
- Parameters:
- Returns:
JointStiffness label
- Return type:
int
Example
To get the next free joint stiffness label in model m:
label = Oasys.PRIMER.JointStiffness.NextFreeLabel(m)
- classmethod JointStiffness.Pick(prompt, limit=Oasys.gRPC.defaultArg, modal=Oasys.gRPC.defaultArg, button_text=Oasys.gRPC.defaultArg)¶
Allows the user to pick a joint stiffness
- Parameters:
prompt (string) – Text to display as a prompt to the user
limit (Model or Flag) – Optional. If the argument is a
Model
then only joint stiffnesss from that model can be picked. If the argument is aFlag
then only joint stiffnesss that are flagged with limit can be selected. If omitted, or None, any joint stiffnesss from any model can be selected. from any modelmodal (boolean) – Optional. 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
button_text (string) – Optional. By default the window with the prompt will have a button labelled ‘Cancel’ which if pressed will cancel the pick and return None. If you want to change the text on the button use this argument. If omitted ‘Cancel’ will be used
- Returns:
JointStiffness object (or None if not picked)
- Return type:
dict
Example
To pick a joint stiffness from model m giving the prompt ‘Pick joint stiffness from screen’:
js = Oasys.PRIMER.JointStiffness.Pick('Pick joint stiffness from screen', m)
- classmethod JointStiffness.RenumberAll(model, start)¶
Renumbers all of the joint stiffnesss in the model
- Parameters:
model (Model) –
Model
that all joint stiffnesss will be renumbered instart (integer) – Start point for renumbering
- Returns:
No return value
- Return type:
None
Example
To renumber all of the joint stiffnesss in model m, from 1000000:
Oasys.PRIMER.JointStiffness.RenumberAll(m, 1000000)
- classmethod JointStiffness.RenumberFlagged(model, flag, start)¶
Renumbers all of the flagged joint stiffnesss in the model
- Parameters:
model (Model) –
Model
that all the flagged joint stiffnesss will be renumbered inflag (Flag) – Flag set on the joint stiffnesss that you want to renumber
start (integer) – Start point for renumbering
- Returns:
No return value
- Return type:
None
Example
To renumber all of the joint stiffnesss in model m flagged with f, from 1000000:
Oasys.PRIMER.JointStiffness.RenumberFlagged(m, f, 1000000)
- classmethod JointStiffness.Select(flag, prompt, limit=Oasys.gRPC.defaultArg, modal=Oasys.gRPC.defaultArg)¶
Allows the user to select joint stiffnesss using standard PRIMER object menus
- Parameters:
flag (Flag) – Flag to use when selecting joint stiffnesss
prompt (string) – Text to display as a prompt to the user
limit (Model or Flag) – Optional. If the argument is a
Model
then only joint stiffnesss from that model can be selected. If the argument is aFlag
then only joint stiffnesss that are flagged with limit can be selected (limit should be different to flag). If omitted, or None, any joint stiffnesss can be selected. from any modelmodal (boolean) – Optional. 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
- Returns:
Number of joint stiffnesss selected or None if menu cancelled
- Return type:
int
Example
To select joint stiffnesss from model m, flagging those selected with flag f, giving the prompt ‘Select joint stiffnesss’:
Oasys.PRIMER.JointStiffness.Select(f, 'Select joint stiffnesss', m)To select joint stiffnesss, flagging those selected with flag f but limiting selection to joint stiffnesss flagged with flag l, giving the prompt ‘Select joint stiffnesss’:
Oasys.PRIMER.JointStiffness.Select(f, 'Select joint stiffnesss', l)
- classmethod JointStiffness.SketchFlagged(model, flag, redraw=Oasys.gRPC.defaultArg)¶
Sketches all of the flagged joint stiffnesss in the model. The joint stiffnesss will be sketched until you either call
JointStiffness.Unsketch()
,JointStiffness.UnsketchFlagged()
,Model.UnsketchAll()
, or delete the model
- Parameters:
model (Model) –
Model
that all the flagged joint stiffnesss will be sketched inflag (Flag) – Flag set on the joint stiffnesss that you want to sketch
redraw (boolean) – Optional. If model should be redrawn or not after the joint stiffnesss are sketched. If omitted redraw is true. If you want to sketch flagged joint stiffnesss several times and only redraw after the last one then use false for redraw and call
View.Redraw()
- Returns:
No return value
- Return type:
None
Example
To sketch all joint stiffnesss flagged with flag in model m:
Oasys.PRIMER.JointStiffness.SketchFlagged(m, flag)
- classmethod JointStiffness.Total(model, exists=Oasys.gRPC.defaultArg)¶
Returns the total number of joint stiffnesss in the model
- Parameters:
model (Model) –
Model
to get total forexists (boolean) – Optional. true if only existing joint stiffnesss should be counted. If false or omitted referenced but undefined joint stiffnesss will also be included in the total
- Returns:
number of joint stiffnesss
- Return type:
int
Example
To get the total number of joint stiffnesss in model m:
total = Oasys.PRIMER.JointStiffness.Total(m)
- classmethod JointStiffness.UnblankAll(model, redraw=Oasys.gRPC.defaultArg)¶
Unblanks all of the joint stiffnesss in the model
- Parameters:
model (Model) –
Model
that all joint stiffnesss will be unblanked inredraw (boolean) – Optional. 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()
- Returns:
No return value
- Return type:
None
Example
To unblank all of the joint stiffnesss in model m:
Oasys.PRIMER.JointStiffness.UnblankAll(m)
- classmethod JointStiffness.UnblankFlagged(model, flag, redraw=Oasys.gRPC.defaultArg)¶
Unblanks all of the flagged joint stiffnesss in the model
- Parameters:
model (Model) –
Model
that the flagged joint stiffnesss will be unblanked inflag (Flag) – Flag set on the joint stiffnesss that you want to unblank
redraw (boolean) – Optional. 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()
- Returns:
No return value
- Return type:
None
Example
To unblank all of the joint stiffnesss in model m flagged with f:
Oasys.PRIMER.JointStiffness.UnblankFlagged(m, f)
- classmethod JointStiffness.UnflagAll(model, flag)¶
Unsets a defined flag on all of the joint stiffnesss in the model
- Parameters:
model (Model) –
Model
that the defined flag for all joint stiffnesss will be unset inflag (Flag) – Flag to unset on the joint stiffnesss
- Returns:
No return value
- Return type:
None
Example
To unset the flag f on all the joint stiffnesss in model m:
Oasys.PRIMER.JointStiffness.UnflagAll(m, f)
- classmethod JointStiffness.UnsketchAll(model, redraw=Oasys.gRPC.defaultArg)¶
Unsketches all joint stiffnesss
- Parameters:
model (Model) –
Model
that all joint stiffnesss will be unblanked inredraw (boolean) – Optional. If model should be redrawn or not after the joint stiffnesss 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()
- Returns:
No return value
- Return type:
None
Example
To unsketch all joint stiffnesss in model m:
Oasys.PRIMER.JointStiffness.UnsketchAll(m)
- classmethod JointStiffness.UnsketchFlagged(model, flag, redraw=Oasys.gRPC.defaultArg)¶
Unsketches all flagged joint stiffnesss in the model
- Parameters:
model (Model) –
Model
that all joint stiffnesss will be unsketched inflag (Flag) – Flag set on the joint stiffnesss that you want to unsketch
redraw (boolean) – Optional. If model should be redrawn or not after the joint stiffnesss 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()
- Returns:
No return value
- Return type:
None
Example
To unsketch all joint stiffnesss flagged with flag in model m:
Oasys.PRIMER.JointStiffness.UnsketchAll(m, flag)
Instance methods¶
- JointStiffness.AssociateComment(comment)¶
Associates a comment with a joint stiffness
- Parameters:
comment (Comment) –
Comment
that will be attached to the joint stiffness- Returns:
No return value
- Return type:
None
Example
To associate comment c to the joint stiffness js:
js.AssociateComment(c)
- JointStiffness.Blank()¶
Blanks the joint stiffness
- Returns:
No return value
- Return type:
None
Example
To blank joint stiffness js:
js.Blank()
- JointStiffness.Blanked()¶
Checks if the joint stiffness is blanked or not
- Returns:
True if blanked, False if not
- Return type:
bool
Example
To check if joint stiffness js is blanked:
if js.Blanked(): do_something..
- JointStiffness.Browse(modal=Oasys.gRPC.defaultArg)¶
Starts an edit panel in Browse mode
- Parameters:
modal (boolean) – Optional. 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
- Returns:
no return value
- Return type:
None
Example
To Browse joint stiffness js:
js.Browse()
- JointStiffness.ClearFlag(flag)¶
Clears a flag on the joint stiffness
- Parameters:
flag (Flag) – Flag to clear on the joint stiffness
- Returns:
No return value
- Return type:
None
Example
To clear flag f for joint stiffness js:
js.ClearFlag(f)
- JointStiffness.Copy(range=Oasys.gRPC.defaultArg)¶
Copies the joint stiffness. The target include of the copied joint stiffness can be set using
Options.copy_target_include
- Parameters:
range (boolean) – Optional. 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()
- Returns:
JointStiffness object
- Return type:
JointStiffness
Example
To copy joint stiffness js into joint stiffness z:
z = js.Copy()
- JointStiffness.DetachComment(comment)¶
Detaches a comment from a joint stiffness
- Parameters:
comment (Comment) –
Comment
that will be detached from the joint stiffness- Returns:
No return value
- Return type:
None
Example
To detach comment c from the joint stiffness js:
js.DetachComment(c)
- JointStiffness.Edit(modal=Oasys.gRPC.defaultArg)¶
Starts an interactive editing panel
- Parameters:
modal (boolean) – Optional. 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
- Returns:
no return value
- Return type:
None
Example
To Edit joint stiffness js:
js.Edit()
- JointStiffness.Flagged(flag)¶
Checks if the joint stiffness is flagged or not
- Parameters:
flag (Flag) – Flag to test on the joint stiffness
- Returns:
True if flagged, False if not
- Return type:
bool
Example
To check if joint stiffness js has flag f set on it:
if js.Flagged(f): do_something..
- JointStiffness.GetComments()¶
Extracts the comments associated to a joint stiffness
- Returns:
List of Comment objects (or None if there are no comments associated to the node)
- Return type:
list
Example
To get the list of comments associated to the joint stiffness js:
comm_list = js.GetComments()
- JointStiffness.GetParameter(prop)¶
Checks 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 theJointStiffness.ViewParameters()
method and ‘method chaining’ (see the examples below)
- Parameters:
prop (string) – joint stiffness property to get parameter for
- Returns:
Parameter object if property is a parameter, None if not
- Return type:
dict
Example
To check if JointStiffness property js.example is a parameter:
Oasys.PRIMER.Options.property_parameter_names = True if js.GetParameter(js.example): do_something... Oasys.PRIMER.Options.property_parameter_names = FalseTo check if JointStiffness property js.example is a parameter by using the GetParameter method:
if js.ViewParameters().GetParameter(js.example): do_something..
- JointStiffness.Keyword()¶
Returns the keyword for this jstf (*CONSTRAINED_JOINT_STIFFNESS). Note that a carriage return is not added. See also
JointStiffness.KeywordCards()
- Returns:
string containing the keyword
- Return type:
str
Example
To get the keyword for jstf n:
key = n.Keyword()
- JointStiffness.KeywordCards()¶
Returns the keyword cards for the jstf. Note that a carriage return is not added. See also
JointStiffness.Keyword()
- Returns:
string containing the cards
- Return type:
str
Example
To get the cards for jstf n:
cards = n.KeywordCards()
- JointStiffness.Next()¶
Returns the next joint stiffness in the model
- Returns:
JointStiffness object (or None if there are no more joint stiffnesss in the model)
- Return type:
JointStiffness
Example
To get the joint stiffness in model m after joint stiffness js:
js = js.Next()
- JointStiffness.Previous()¶
Returns the previous joint stiffness in the model
- Returns:
JointStiffness object (or None if there are no more joint stiffnesss in the model)
- Return type:
JointStiffness
Example
To get the joint stiffness in model m before joint stiffness js:
js = js.Previous()
- JointStiffness.SetFlag(flag)¶
Sets a flag on the joint stiffness
- Parameters:
flag (Flag) – Flag to set on the joint stiffness
- Returns:
No return value
- Return type:
None
Example
To set flag f for joint stiffness js:
js.SetFlag(f)
- JointStiffness.Sketch(redraw=Oasys.gRPC.defaultArg)¶
Sketches the joint stiffness. The joint stiffness will be sketched until you either call
JointStiffness.Unsketch()
,JointStiffness.UnsketchAll()
,Model.UnsketchAll()
, or delete the model
- Parameters:
redraw (boolean) – Optional. 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 stiffnesss and only redraw after the last one then use false for redraw and call
View.Redraw()
- Returns:
No return value
- Return type:
None
Example
To sketch joint stiffness js:
js.Sketch()
- JointStiffness.Unblank()¶
Unblanks the joint stiffness
- Returns:
No return value
- Return type:
None
Example
To unblank joint stiffness js:
js.Unblank()
- JointStiffness.Unsketch(redraw=Oasys.gRPC.defaultArg)¶
Unsketches the joint stiffness
- Parameters:
redraw (boolean) – Optional. 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 stiffnesss and only redraw after the last one then use false for redraw and call
View.Redraw()
- Returns:
No return value
- Return type:
None
Example
To unsketch joint stiffness js:
js.Unsketch()
- JointStiffness.ViewParameters()¶
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. This function temporarily changes the behaviour so that if a property is a parameter the parameter name is returned instead. This can be used with ‘method chaining’ (see the example below) to make sure a property argument is correct
- Returns:
JointStiffness object
- Return type:
dict
Example
To check if JointStiffness property js.example is a parameter by using the
JointStiffness.GetParameter()
method:if js.ViewParameters().GetParameter(js.example): do_something..
- JointStiffness.Xrefs()¶
Returns the cross references for this joint stiffness
- Returns:
Xrefs object
- Return type:
dict
Example
To get the cross references for joint stiffness js:
xrefs = js.Xrefs()