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