Oasys.PRIMER.IGA2DNurbsXYZ class¶
Properties¶
- property IGA2DNurbsXYZ.exists(read only): boolean¶
true if IGA 2D Nurbs XYZ exists, false if referred to but not defined
- property IGA2DNurbsXYZ.label: integer¶
IGA2DNurbsXYZnumber. Also see thepatchidproperty which is an alternative name for this
- property IGA2DNurbsXYZ.nr: integer¶
Number of control points in the local r-direction
- property IGA2DNurbsXYZ.ns: integer¶
Number of control points in the local s-direction
- property IGA2DNurbsXYZ.patchid: integer¶
IGA2DNurbsXYZnumber. Also see thelabelproperty which is an alternative name for this
- property IGA2DNurbsXYZ.pr: integer¶
Polynomial degree of the basis in the local r-direction
- property IGA2DNurbsXYZ.ps: integer¶
Polynomial degree of the basis in the local s-direction
- property IGA2DNurbsXYZ.rfirst: float¶
First knot value in the local r-direction
- property IGA2DNurbsXYZ.rlast: float¶
Last knot value in the local r-direction
- property IGA2DNurbsXYZ.sfirst: float¶
First knot value in the local s-direction
- property IGA2DNurbsXYZ.slast: float¶
Last knot value in the local s-direction
- property IGA2DNurbsXYZ.unir: integer¶
Knot vector type in the local r-direction
- property IGA2DNurbsXYZ.unis: integer¶
Knot vector type in the local s-direction
Constructor¶
- classmethod IGA2DNurbsXYZ(model, details)¶
Create a new
IGA2DNurbsXYZobject
- Parameters:
model (Model) –
Modelthat IGA 2d nurbs xyz will be created indetails (dict) –
Details for creating the
IGA2DNurbsXYZ
- nr (optional):
(integer) Number of control points in the local r-direction
- ns (optional):
(integer) Number of control points in the local s-direction
- patchid:
(integer) ID of the IGA 2D Nurbs XYZ
- pr (optional):
(integer) Polynomial degree of the basis in the local r-direction
- ps (optional):
(integer) Polynomial degree of the basis in the local s-direction
- unir (optional):
(integer) Knot vector type in the local r-direction
- unis (optional):
(integer) Knot vector type in the local s-direction
- Returns:
IGA2DNurbsXYZ object
- Return type:
IGA2DNurbsXYZ
Example
To create a new IGA 2d nurbs xyz in model m of id 10:
ig2x = Oasys.PRIMER.IGA2DNurbsXYZ(m, {'patchid':10})To create a new IGA 2d nurbs xyz in model m of id 11 with nr, ns, pr, ps, unir, unis as 12, 13, 14, 15, 21, 22 respectively:
ig2x = Oasys.PRIMER.IGA2DNurbsXYZ(m, {'patchid':11, 'nr':12, 'ns':13, 'pr':14, 'ps':15, 'unir':21, 'unis':22})
Static methods¶
- classmethod IGA2DNurbsXYZ.Create(model, modal=Oasys.gRPC.defaultArg)¶
Starts an interactive editing panel to create a IGA 2D Nurbs XYZ
- Parameters:
model (Model) –
Modelthat the IGA 2D Nurbs XYZ 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:
IGA2DNurbsXYZ object (or None if not made)
- Return type:
IGA2DNurbsXYZ
Example
To start creating a IGA 2D Nurbs XYZ in model m:
ig2x = Oasys.PRIMER.IGA2DNurbsXYZ.Create(m)
- classmethod IGA2DNurbsXYZ.First(model)¶
Returns the first IGA 2D Nurbs XYZ in the model
- Parameters:
model (Model) –
Modelto get first IGA 2D Nurbs XYZ in- Returns:
IGA2DNurbsXYZ object (or None if there are no IGA 2D Nurbs XYZs in the model)
- Return type:
IGA2DNurbsXYZ
Example
To get the first IGA 2D Nurbs XYZ in model m:
ig2x = Oasys.PRIMER.IGA2DNurbsXYZ.First(m)
- classmethod IGA2DNurbsXYZ.FirstFreeLabel(model, layer=Oasys.gRPC.defaultArg)¶
Returns the first free IGA 2D Nurbs XYZ label in the model. Also see
IGA2DNurbsXYZ.LastFreeLabel(),IGA2DNurbsXYZ.NextFreeLabel()andModel.FirstFreeItemLabel()
- Parameters:
- Returns:
IGA2DNurbsXYZ label
- Return type:
int
Example
To get the first free IGA 2D Nurbs XYZ label in model m:
label = Oasys.PRIMER.IGA2DNurbsXYZ.FirstFreeLabel(m)
- classmethod IGA2DNurbsXYZ.FlagAll(model, flag)¶
Flags all of the IGA 2D Nurbs XYZs in the model with a defined flag
- Parameters:
model (Model) –
Modelthat all IGA 2D Nurbs XYZs will be flagged inflag (Flag) – Flag to set on the IGA 2D Nurbs XYZs
- Returns:
No return value
- Return type:
None
Example
To flag all of the IGA 2D Nurbs XYZs with flag f in model m:
Oasys.PRIMER.IGA2DNurbsXYZ.FlagAll(m, f)
- classmethod IGA2DNurbsXYZ.GetAll(model, property=Oasys.gRPC.defaultArg)¶
Returns a list of IGA2DNurbsXYZ objects or properties for all of the IGA 2D Nurbs XYZs in a model in PRIMER. If the optional property argument is not given then a list of IGA2DNurbsXYZ objects is returned. If the property argument is given, that property value for each IGA 2D Nurbs XYZ is returned in the list instead of a IGA2DNurbsXYZ object
- Parameters:
model (Model) –
Modelto get IGA 2D Nurbs XYZs fromproperty (string) – Optional. Name for property to get for all IGA 2D Nurbs XYZs in the model
- Returns:
List of IGA2DNurbsXYZ objects or properties
- Return type:
list
Example
To make a list of IGA2DNurbsXYZ objects for all of the IGA 2D Nurbs XYZs in model m:
a = Oasys.PRIMER.IGA2DNurbsXYZ.GetAll(m)To return a list containing the value of property ‘foo’ (for example ‘x’ for a node) for each IGA 2D Nurbs XYZ in model m:
a = Oasys.PRIMER.IGA2DNurbsXYZ.GetAll(m, 'foo')
- classmethod IGA2DNurbsXYZ.GetFlagged(model, flag, property=Oasys.gRPC.defaultArg)¶
Returns a list of IGA2DNurbsXYZ objects for all of the flagged IGA 2D Nurbs XYZs in a model in PRIMER If the optional property argument is not given then a list of IGA2DNurbsXYZ objects is returned. If the property argument is given, then that property value for each IGA 2D Nurbs XYZ is returned in the list instead of a IGA2DNurbsXYZ object
- Parameters:
model (Model) –
Modelto get IGA 2D Nurbs XYZs fromflag (Flag) – Flag set on the IGA 2D Nurbs XYZs that you want to retrieve
property (string) – Optional. Name for property to get for all flagged IGA 2D Nurbs XYZs in the model
- Returns:
List of IGA2DNurbsXYZ objects or properties
- Return type:
list
Example
To make a list of IGA2DNurbsXYZ objects for all of the IGA 2D Nurbs XYZs in model m flagged with f:
ig2x = Oasys.PRIMER.IGA2DNurbsXYZ.GetFlagged(m, f)To return a list containing the value of property ‘foo’ (for example ‘x’ for a node) for all of the IGA 2D Nurbs XYZs in model m flagged with f:
a = Oasys.PRIMER.IGA2DNurbsXYZ.GetFlagged(m, f, 'foo')
- classmethod IGA2DNurbsXYZ.GetFromID(model, number)¶
Returns the IGA2DNurbsXYZ object for a IGA 2D Nurbs XYZ ID
- Parameters:
model (Model) –
Modelto find the IGA 2D Nurbs XYZ innumber (integer) – number of the IGA 2D Nurbs XYZ you want the IGA2DNurbsXYZ object for
- Returns:
IGA2DNurbsXYZ object (or None if IGA 2D Nurbs XYZ does not exist)
- Return type:
IGA2DNurbsXYZ
Example
To get the IGA2DNurbsXYZ object for IGA 2D Nurbs XYZ 100 in model m
ig2x = Oasys.PRIMER.IGA2DNurbsXYZ.GetFromID(m, 100)
- classmethod IGA2DNurbsXYZ.Last(model)¶
Returns the last IGA 2D Nurbs XYZ in the model
- Parameters:
model (Model) –
Modelto get last IGA 2D Nurbs XYZ in- Returns:
IGA2DNurbsXYZ object (or None if there are no IGA 2D Nurbs XYZs in the model)
- Return type:
IGA2DNurbsXYZ
Example
To get the last IGA 2D Nurbs XYZ in model m:
ig2x = Oasys.PRIMER.IGA2DNurbsXYZ.Last(m)
- classmethod IGA2DNurbsXYZ.LastFreeLabel(model, layer=Oasys.gRPC.defaultArg)¶
Returns the last free IGA 2D Nurbs XYZ label in the model. Also see
IGA2DNurbsXYZ.FirstFreeLabel(),IGA2DNurbsXYZ.NextFreeLabel()and seeModel.LastFreeItemLabel()
- Parameters:
- Returns:
IGA2DNurbsXYZ label
- Return type:
int
Example
To get the last free IGA 2D Nurbs XYZ label in model m:
label = Oasys.PRIMER.IGA2DNurbsXYZ.LastFreeLabel(m)
- classmethod IGA2DNurbsXYZ.NextFreeLabel(model, layer=Oasys.gRPC.defaultArg)¶
Returns the next free (highest+1) IGA 2D Nurbs XYZ label in the model. Also see
IGA2DNurbsXYZ.FirstFreeLabel(),IGA2DNurbsXYZ.LastFreeLabel()andModel.NextFreeItemLabel()
- Parameters:
- Returns:
IGA2DNurbsXYZ label
- Return type:
int
Example
To get the next free IGA 2D Nurbs XYZ label in model m:
label = Oasys.PRIMER.IGA2DNurbsXYZ.NextFreeLabel(m)
- classmethod IGA2DNurbsXYZ.RenumberAll(model, start)¶
Renumbers all of the IGA 2D Nurbs XYZs in the model
- Parameters:
model (Model) –
Modelthat all IGA 2D Nurbs XYZs will be renumbered instart (integer) – Start point for renumbering
- Returns:
No return value
- Return type:
None
Example
To renumber all of the IGA 2D Nurbs XYZs in model m, from 1000000:
Oasys.PRIMER.IGA2DNurbsXYZ.RenumberAll(m, 1000000)
- classmethod IGA2DNurbsXYZ.RenumberFlagged(model, flag, start)¶
Renumbers all of the flagged IGA 2D Nurbs XYZs in the model
- Parameters:
model (Model) –
Modelthat all the flagged IGA 2D Nurbs XYZs will be renumbered inflag (Flag) – Flag set on the IGA 2D Nurbs XYZs that you want to renumber
start (integer) – Start point for renumbering
- Returns:
No return value
- Return type:
None
Example
To renumber all of the IGA 2D Nurbs XYZs in model m flagged with f, from 1000000:
Oasys.PRIMER.IGA2DNurbsXYZ.RenumberFlagged(m, f, 1000000)
- classmethod IGA2DNurbsXYZ.Select(flag, prompt, limit=Oasys.gRPC.defaultArg, modal=Oasys.gRPC.defaultArg)¶
Allows the user to select IGA 2D Nurbs XYZs using standard PRIMER object menus
- Parameters:
flag (Flag) – Flag to use when selecting IGA 2D Nurbs XYZs
prompt (string) – Text to display as a prompt to the user
limit (Model or Flag) – Optional. If the argument is a
Modelthen only IGA 2D Nurbs XYZs from that model can be selected. If the argument is aFlagthen only IGA 2D Nurbs XYZs that are flagged with limit can be selected (limit should be different to flag). If omitted, or None, any IGA 2D Nurbs XYZs 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 IGA 2D Nurbs XYZs selected or None if menu cancelled
- Return type:
int
Example
To select IGA 2D Nurbs XYZs from model m, flagging those selected with flag f, giving the prompt ‘Select IGA 2D Nurbs XYZs’:
Oasys.PRIMER.IGA2DNurbsXYZ.Select(f, 'Select IGA 2D Nurbs XYZs', m)To select IGA 2D Nurbs XYZs, flagging those selected with flag f but limiting selection to IGA 2D Nurbs XYZs flagged with flag l, giving the prompt ‘Select IGA 2D Nurbs XYZs’:
Oasys.PRIMER.IGA2DNurbsXYZ.Select(f, 'Select IGA 2D Nurbs XYZs', l)
- classmethod IGA2DNurbsXYZ.SketchFlagged(model, flag, redraw=Oasys.gRPC.defaultArg)¶
Sketches all of the flagged IGA 2D Nurbs XYZs in the model. The IGA 2D Nurbs XYZs will be sketched until you either call
IGA2DNurbsXYZ.Unsketch(),IGA2DNurbsXYZ.UnsketchFlagged(),Model.UnsketchAll(), or delete the model
- Parameters:
model (Model) –
Modelthat all the flagged IGA 2D Nurbs XYZs will be sketched inflag (Flag) – Flag set on the IGA 2D Nurbs XYZs that you want to sketch
redraw (boolean) – Optional. If model should be redrawn or not after the IGA 2D Nurbs XYZs are sketched. If omitted redraw is true. If you want to sketch flagged IGA 2D Nurbs XYZs 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 IGA 2D Nurbs XYZs flagged with flag in model m:
Oasys.PRIMER.IGA2DNurbsXYZ.SketchFlagged(m, flag)
- classmethod IGA2DNurbsXYZ.Total(model, exists=Oasys.gRPC.defaultArg)¶
Returns the total number of IGA 2D Nurbs XYZs in the model
- Parameters:
model (Model) –
Modelto get total forexists (boolean) – Optional. true if only existing IGA 2D Nurbs XYZs should be counted. If false or omitted referenced but undefined IGA 2D Nurbs XYZs will also be included in the total
- Returns:
number of IGA 2D Nurbs XYZs
- Return type:
int
Example
To get the total number of IGA 2D Nurbs XYZs in model m:
total = Oasys.PRIMER.IGA2DNurbsXYZ.Total(m)
- classmethod IGA2DNurbsXYZ.UnflagAll(model, flag)¶
Unsets a defined flag on all of the IGA 2D Nurbs XYZs in the model
- Parameters:
model (Model) –
Modelthat the defined flag for all IGA 2D Nurbs XYZs will be unset inflag (Flag) – Flag to unset on the IGA 2D Nurbs XYZs
- Returns:
No return value
- Return type:
None
Example
To unset the flag f on all the IGA 2D Nurbs XYZs in model m:
Oasys.PRIMER.IGA2DNurbsXYZ.UnflagAll(m, f)
- classmethod IGA2DNurbsXYZ.UnsketchAll(model, redraw=Oasys.gRPC.defaultArg)¶
Unsketches all IGA 2D Nurbs XYZs
- Parameters:
model (Model) –
Modelthat all IGA 2D Nurbs XYZs will be unblanked inredraw (boolean) – Optional. If model should be redrawn or not after the IGA 2D Nurbs XYZs 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 IGA 2D Nurbs XYZs in model m:
Oasys.PRIMER.IGA2DNurbsXYZ.UnsketchAll(m)
- classmethod IGA2DNurbsXYZ.UnsketchFlagged(model, flag, redraw=Oasys.gRPC.defaultArg)¶
Unsketches all flagged IGA 2D Nurbs XYZs in the model
- Parameters:
model (Model) –
Modelthat all IGA 2D Nurbs XYZs will be unsketched inflag (Flag) – Flag set on the IGA 2D Nurbs XYZs that you want to unsketch
redraw (boolean) – Optional. If model should be redrawn or not after the IGA 2D Nurbs XYZs 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 IGA 2D Nurbs XYZs flagged with flag in model m:
Oasys.PRIMER.IGA2DNurbsXYZ.UnsketchAll(m, flag)
Instance methods¶
- IGA2DNurbsXYZ.AssociateComment(comment)¶
Associates a comment with a IGA 2D Nurbs XYZ
- Parameters:
comment (Comment) –
Commentthat will be attached to the IGA 2D Nurbs XYZ- Returns:
No return value
- Return type:
None
Example
To associate comment c to the IGA 2D Nurbs XYZ ig2x:
ig2x.AssociateComment(c)
- IGA2DNurbsXYZ.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 IGA 2D Nurbs XYZ ig2x:
ig2x.Browse()
- IGA2DNurbsXYZ.ClearFlag(flag)¶
Clears a flag on the IGA 2D Nurbs XYZ
- Parameters:
flag (Flag) – Flag to clear on the IGA 2D Nurbs XYZ
- Returns:
No return value
- Return type:
None
Example
To clear flag f for IGA 2D Nurbs XYZ ig2x:
ig2x.ClearFlag(f)
- IGA2DNurbsXYZ.Copy(range=Oasys.gRPC.defaultArg)¶
Copies the IGA 2D Nurbs XYZ. The target include of the copied IGA 2D Nurbs XYZ 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:
IGA2DNurbsXYZ object
- Return type:
IGA2DNurbsXYZ
Example
To copy IGA 2D Nurbs XYZ ig2x into IGA 2D Nurbs XYZ z:
z = ig2x.Copy()
- IGA2DNurbsXYZ.DetachComment(comment)¶
Detaches a comment from a IGA 2D Nurbs XYZ
- Parameters:
comment (Comment) –
Commentthat will be detached from the IGA 2D Nurbs XYZ- Returns:
No return value
- Return type:
None
Example
To detach comment c from the IGA 2D Nurbs XYZ ig2x:
ig2x.DetachComment(c)
- IGA2DNurbsXYZ.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 IGA 2D Nurbs XYZ ig2x:
ig2x.Edit()
- IGA2DNurbsXYZ.Flagged(flag)¶
Checks if the IGA 2D Nurbs XYZ is flagged or not
- Parameters:
flag (Flag) – Flag to test on the IGA 2D Nurbs XYZ
- Returns:
True if flagged, False if not
- Return type:
bool
Example
To check if IGA 2D Nurbs XYZ ig2x has flag f set on it:
if ig2x.Flagged(f): do_something..
- IGA2DNurbsXYZ.GetComments()¶
Extracts the comments associated to a IGA 2D Nurbs XYZ
- 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 IGA 2D Nurbs XYZ ig2x:
comm_list = ig2x.GetComments()
- IGA2DNurbsXYZ.GetControlPoint(index)¶
Returns the data for a specific control point an a list. There are
nrxnscontrol points
- Parameters:
index (integer) – Index you want the control data for. Note that indices start at 0
- Returns:
A list containing the control point data
- Return type:
list
Example
To get the data for the 3rd control point in IGA 2d nurbs xyz ig2x:
data = ig2x.GetControlPoint(2)
- IGA2DNurbsXYZ.GetParameter(prop)¶
Checks if a IGA2DNurbsXYZ 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_namesoption to true before calling the function and then resetting it to false afterwards.. This behaviour can also temporarily be switched by using theIGA2DNurbsXYZ.ViewParameters()method and ‘method chaining’ (see the examples below)
- Parameters:
prop (string) – IGA 2D Nurbs XYZ property to get parameter for
- Returns:
Parameter object if property is a parameter, None if not
- Return type:
Parameter
Example
To check if IGA2DNurbsXYZ property ig2x.example is a parameter:
Oasys.PRIMER.Options.property_parameter_names = True if ig2x.GetParameter(ig2x.example): do_something... Oasys.PRIMER.Options.property_parameter_names = FalseTo check if IGA2DNurbsXYZ property ig2x.example is a parameter by using the GetParameter method:
if ig2x.ViewParameters().GetParameter(ig2x.example): do_something..
- IGA2DNurbsXYZ.GetRKnotVector(index)¶
The data for Knot values in the local r-direction
- Parameters:
index (integer) – Index you want the r-knot value for. Note that indices start at 0
- Returns:
Knot values in the local r-direction
- Return type:
int
Example
To get the 3rd r-knot value in IGA 2d nurbs xyz ig2x:
data = ig2x.GetRKnotVector(2)
- IGA2DNurbsXYZ.GetSKnotVector(index)¶
The data for Knot values in the local s-direction
- Parameters:
index (integer) – Index you want the s-knot value for. Note that indices start at 0
- Returns:
Knot values in the local s-direction
- Return type:
int
Example
To get the 3rd s-knot value in IGA 2d nurbs xyz ig2x:
data = ig2x.GetSKnotVector(2)
- IGA2DNurbsXYZ.Keyword()¶
Returns the keyword for this IGA 2d nurbs xyz (*IGA_2D_NURBS_XYZ). Note that a carriage return is not added. See also
IGA2DNurbsXYZ.KeywordCards()
- Returns:
string containing the keyword
- Return type:
str
Example
To get the keyword for IGA 2d nurbs xyz ig2x:
key = ig2x.Keyword()
- IGA2DNurbsXYZ.KeywordCards()¶
Returns the keyword cards for the IGA 2d nurbs xyz. Note that a carriage return is not added. See also
IGA2DNurbsXYZ.Keyword()
- Returns:
string containing the cards
- Return type:
str
Example
To get the cards for IGA 2d nurbs xyz ig2x:
cards = ig2x.KeywordCards()
- IGA2DNurbsXYZ.Next()¶
Returns the next IGA 2D Nurbs XYZ in the model
- Returns:
IGA2DNurbsXYZ object (or None if there are no more IGA 2D Nurbs XYZs in the model)
- Return type:
IGA2DNurbsXYZ
Example
To get the IGA 2D Nurbs XYZ in model m after IGA 2D Nurbs XYZ ig2x:
ig2x = ig2x.Next()
- IGA2DNurbsXYZ.Previous()¶
Returns the previous IGA 2D Nurbs XYZ in the model
- Returns:
IGA2DNurbsXYZ object (or None if there are no more IGA 2D Nurbs XYZs in the model)
- Return type:
IGA2DNurbsXYZ
Example
To get the IGA 2D Nurbs XYZ in model m before IGA 2D Nurbs XYZ ig2x:
ig2x = ig2x.Previous()
- IGA2DNurbsXYZ.SetControlPoint(index, data)¶
Set the data for a specific control point. For each control point there will be control point X, Y, Z and control weight WGT. There are
nrxnscontrol points
- Parameters:
index (integer) – Index you want the control point data for. Note that indices start at 0
data (List of data) – List containing the control point data. The list length should be 4
- Returns:
No return value
- Return type:
None
Example
To set the 3rd control point data for IGA 2d nurbs xyz ig2x to the values in list data:
ig2x.SetControlPoint(2, data)
- IGA2DNurbsXYZ.SetFlag(flag)¶
Sets a flag on the IGA 2D Nurbs XYZ
- Parameters:
flag (Flag) – Flag to set on the IGA 2D Nurbs XYZ
- Returns:
No return value
- Return type:
None
Example
To set flag f for IGA 2D Nurbs XYZ ig2x:
ig2x.SetFlag(f)
- IGA2DNurbsXYZ.SetRKnotVector(index, r)¶
Sets knot value, r in *IGA_2D_NURBS_XYZ. There are [
nr+pr+ 1] knot values
- Parameters:
index (integer) – Index you want to set the r knot vector for. Note that indices start at 0
r (float) – Knot values in the local r-direction
- Returns:
No return value
- Return type:
None
Example
To set the 3rd knot value for IGA 2d nurbs xyz ig2x as 13.5:
ig2x.SetRKnotVector(2, 13.5)
- IGA2DNurbsXYZ.SetSKnotVector(index, r)¶
Sets knot value, s in *IGA_2D_NURBS_XYZ. There are [
ns+ps+ 1] knot values
- Parameters:
index (integer) – Index you want to set the s knot vector for. Note that indices start at 0
r (float) – Knot values in the local s-direction
- Returns:
No return value
- Return type:
None
Example
To set the 2rd knot value for IGA 2d nurbs xyz ig2x as 24.5:
ig2x.SetSKnotVector(1, 24.5)
- IGA2DNurbsXYZ.Sketch(redraw=Oasys.gRPC.defaultArg)¶
Sketches the IGA 2D Nurbs XYZ. The IGA 2D Nurbs XYZ will be sketched until you either call
IGA2DNurbsXYZ.Unsketch(),IGA2DNurbsXYZ.UnsketchAll(),Model.UnsketchAll(), or delete the model
- Parameters:
redraw (boolean) – Optional. If model should be redrawn or not after the IGA 2D Nurbs XYZ is sketched. If omitted redraw is true. If you want to sketch several IGA 2D Nurbs XYZs 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 IGA 2D Nurbs XYZ ig2x:
ig2x.Sketch()
- IGA2DNurbsXYZ.Unsketch(redraw=Oasys.gRPC.defaultArg)¶
Unsketches the IGA 2D Nurbs XYZ
- Parameters:
redraw (boolean) – Optional. If model should be redrawn or not after the IGA 2D Nurbs XYZ is unsketched. If omitted redraw is true. If you want to unsketch several IGA 2D Nurbs XYZs 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 IGA 2D Nurbs XYZ ig2x:
ig2x.Unsketch()
- IGA2DNurbsXYZ.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:
IGA2DNurbsXYZ object
- Return type:
IGA2DNurbsXYZ
Example
To check if IGA2DNurbsXYZ property ig2x.example is a parameter by using the
IGA2DNurbsXYZ.GetParameter()method:if ig2x.ViewParameters().GetParameter(ig2x.example): do_something..
- IGA2DNurbsXYZ.Xrefs()¶
Returns the cross references for this IGA 2D Nurbs XYZ
- Returns:
Xrefs object
- Return type:
Xrefs
Example
To get the cross references for IGA 2D Nurbs XYZ ig2x:
xrefs = ig2x.Xrefs()