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