Public Member Functions | List of all members
MeshControl Class Reference

MeshControl class is used to specify mesh settings.
The class can be called from Study class.
. More...

Public Member Functions

ConditionCreateCondition (String &typeName, String &name)
 Creates a mesh condition. More...
 
ConditionCreateLayerMesh (Selection *selection, double thickness, int division, double lamination)
 Use CreateCondition instead. More...
 
ConditionCreateLayerMeshWithUnit (Selection *selection, double thickness, int division, double lamination, String &unitName)
 Use CreateCondition instead. More...
 
ConditionCreateSizeCondition (String &typeName, Selection *selection, double value)
 Use CreateCondition instead. More...
 
ConditionCreateSizeConditionWithUnit (String &typeName, Selection *selection, double value, String &unitName)
 Use CreateCondition instead. More...
 
ConditionCreateSkinDepthSize (String &typeName, Selection *selection, double skinDepth, int division)
 Use CreateCondition instead. More...
 
ConditionCreateSkinDepthSizeWithUnit (String &typeName, Selection *selection, double skinDepth, int division, String &unitName)
 Use CreateCondition instead. More...
 
void DeleteCondition (Variant &val)
 Deletes a condition specifying the element size of mesh. More...
 
void DeleteConditionByType (String &typeName, Variant &val)
 Use DeleteCondition instead. More...
 
ConditionGetCondition (Variant &val)
 Returns the Condition object of the specified type. More...
 
ConditionGetConditionByType (String &typeName, Variant &val)
 Use GetCondition instead. More...
 
Variant GetConditionTypeNames ()
 Returns a list of type names for mesh condition. More...
 
int GetCoordinateSystemIndex (String &propName)
 Returns the index of the coordinate system in properties. More...
 
String GetCoordinateSystemName (String &propName)
 Returns the name of the coordinate system of properties. More...
 
String GetFlagAsString (String &name)
 Returns the flag name set in the specified property as a string. More...
 
Variant GetKeyNames (String &name)
 Returns a list of flags that can be set in the specified property. More...
 
PointGetPoint (String &propName)
 Returns the value of the property whose Type is "Vector" as a Point object. More...
 
String GetPropertyHelp (String &propName)
 Returns the help of properties as a string. More...
 
Variant GetPropertyNames ()
 Returns the name list of all properties that can be specified for conditions. More...
 
String GetPropertyTable ()
 Returns the property name and description using a string. More...
 
String GetPropertyType (String &propName)
 Returns the type of the property with the specified name. More...
 
DataSetGetTable (String &propName)
 Returns DataSet. More...
 
double GetValue (String &propName)
 Returns the property values as real numbers. More...
 
double GetValueWithUnit (String &propName, String &unitName)
 Returns the property values as real numbers in the specified unit. More...
 
virtual bool IsValid ()
 Returns True if an object is valid. More...
 
int NumConditions ()
 Returns the number of mesh conditions as an integer. More...
 
int NumConditionsByType (String &typeName)
 Use NumConditions instead. More...
 
void SetCoordinateSystem (String &propName, Variant &val)
 Specifies the coordinate system in properties. More...
 
void SetFlagByName (String &propName, String &scriptKeyName)
 Specifies the name to set the value of the flag property. More...
 
void SetPoint (String &propName, Point *value)
 Specifies "Vector" type properties. More...
 
void SetTableProperty (String &propName, DataSet *set)
 Specifies a table for the specified properties. More...
 
void SetValue (String &propName, Variant &value)
 Specifies the name to set mesh properties. More...
 
void SetValueWithUnit (String &propName, double value, String &unitName)
 Specifies the name to set mesh properties in units. More...
 
void SetXYZPoint (String &propName, Variant &x, Variant &y, Variant &z)
 Specifies point type properties with x, y, and z values. More...
 

Detailed Description

MeshControl class is used to specify mesh settings.
The class can be called from Study class.
.

Example of calling the class object:

app.GetModel(0).GetStudy(0).GetMeshControl()

For more information about the properties specified by the arguments "propName" for the mesh property, see "scriptMeshCondition"

Member Function Documentation

Condition * MeshControl::CreateCondition ( String &  typeName,
String &  name 
)

Creates a mesh condition.

Parameters
typeNameCondition type
nameCondition Title
Returns
Condition object

For more information about the types of mesh conditions, see Properties and Flags for the Mesh Settings .

Condition * MeshControl::CreateLayerMesh ( Selection selection,
double  thickness,
int  division,
double  lamination 
)

Use CreateCondition instead.

Deprecated:
Adds the layer mesh.
Parameters
selectionSelection object
thicknessThickness
divisionNumber of layers
laminationLamination factor
Returns
Condition object
Condition * MeshControl::CreateLayerMeshWithUnit ( Selection selection,
double  thickness,
int  division,
double  lamination,
String &  unitName 
)

Use CreateCondition instead.

Deprecated:
Adds layer mesh with unit specification.
Parameters
selectionSelection object
thicknessThickness
divisionNumber of layers
laminationLamination factor
unitNameUnit
Returns
Condition object
Condition * MeshControl::CreateSizeCondition ( String &  typeName,
Selection selection,
double  value 
)

Use CreateCondition instead.

Deprecated:
Creates a mesh condition of the specified type to set the element size of the Selection range to value.
Parameters
typeName
Type name:
Face
Edge
Vertex
selectionSelection object
valueValue of element size
Returns
Condition object
Condition * MeshControl::CreateSizeConditionWithUnit ( String &  typeName,
Selection selection,
double  value,
String &  unitName 
)

Use CreateCondition instead.

Deprecated:
Creates a mesh condition of the specified type to set the element size of the Selection range to value with unit specification.
Parameters
typeName
Type name:
Face
Edge
Vertex
selectionSelection object
valueValue of element size
unitNameUnit
Returns
Condition object
Condition * MeshControl::CreateSkinDepthSize ( String &  typeName,
Selection selection,
double  skinDepth,
int  division 
)

Use CreateCondition instead.

Deprecated:
Creates a mesh condition of a specified type to set the element size of the Selection range to value.
Parameters
typeNameType name
selectionSelection object
valueValue of element size
skinDepthSkin depth
divisionNumber of divisions
Returns
Condition object
Condition * MeshControl::CreateSkinDepthSizeWithUnit ( String &  typeName,
Selection selection,
double  skinDepth,
int  division,
String &  unitName 
)

Use CreateCondition instead.

Deprecated:
Creates a mesh condition of a specified type to set the element size of the Selection range to value with unit specification.
Parameters
typeNameType name
selectionSelection object
valueValue of element size
skinDepthSkin depth
divisionNumber of divisions
unitNameUnit
Returns
Condition object
void MeshControl::DeleteCondition ( Variant &  val)

Deletes a condition specifying the element size of mesh.

Parameters
valName or index of the condition

For more information about the types of mesh conditions, see Properties and Flags for the Mesh Settings .

void MeshControl::DeleteConditionByType ( String &  typeName,
Variant &  val 
)

Use DeleteCondition instead.

Deprecated:
Deletes a condition specifying the element size of mesh.
Parameters
typeNameType name
valName or index of the condition
Condition * MeshControl::GetCondition ( Variant &  val)

Returns the Condition object of the specified type.

Parameters
valName or index of the condition
Returns
Condition object
Condition * MeshControl::GetConditionByType ( String &  typeName,
Variant &  val 
)

Use GetCondition instead.

Deprecated:
Returns the mesh condition for the specified type.
Parameters
typeNameCondition type name
valName or index of the condition
Returns
Condition object
Variant MeshControl::GetConditionTypeNames ( )

Returns a list of type names for mesh condition.

Returns
List of the type names for mesh condition

For more information about the types of mesh conditions, see Properties and Flags for the Mesh Settings .

int MeshControl::GetCoordinateSystemIndex ( String &  propName)

Returns the index of the coordinate system in properties.

Parameters
propNameProperty name
Returns
Index of the coordinate system
String MeshControl::GetCoordinateSystemName ( String &  propName)

Returns the name of the coordinate system of properties.

Parameters
propNameProperty name
Returns
Coordinate system name
String MeshControl::GetFlagAsString ( String &  name)

Returns the flag name set in the specified property as a string.

Parameters
nameProperty name
Returns
Flag name
Variant MeshControl::GetKeyNames ( String &  name)

Returns a list of flags that can be set in the specified property.

Parameters
nameProperty name
Returns
Flag list
Point * MeshControl::GetPoint ( String &  propName)

Returns the value of the property whose Type is "Vector" as a Point object.

Parameters
propNameProperty name
Returns
Point object
String MeshControl::GetPropertyHelp ( String &  propName)

Returns the help of properties as a string.

Parameters
propNameProperty name
Returns
Property help
Variant MeshControl::GetPropertyNames ( )

Returns the name list of all properties that can be specified for conditions.

Returns
All properties that can be specified for conditions
String MeshControl::GetPropertyTable ( )

Returns the property name and description using a string.

Returns
Property name and description
String MeshControl::GetPropertyType ( String &  propName)

Returns the type of the property with the specified name.

Parameters
propNameProperty name
Returns
Property type
DataSet * MeshControl::GetTable ( String &  propName)

Returns DataSet.

Parameters
propNameProperty name
Returns
DataSet object
double MeshControl::GetValue ( String &  propName)

Returns the property values as real numbers.

Parameters
nameProperty name
Returns
Property value
double MeshControl::GetValueWithUnit ( String &  propName,
String &  unitName 
)

Returns the property values as real numbers in the specified unit.

Parameters
nameProperty name
unitNameUnit
Returns
Property value
bool MeshControl::IsValid ( )
virtual

Returns True if an object is valid.

Returns
Whether or not the MeshControl objects in the list are valid
int MeshControl::NumConditions ( )

Returns the number of mesh conditions as an integer.

Returns
Number of the mesh conditions
int MeshControl::NumConditionsByType ( String &  typeName)

Use NumConditions instead.

Deprecated:
Returns the number of mesh conditions for the specified type as an integer.
Parameters
typeNameType of mesh condition
Returns
Number of mesh conditions for the specified type
void MeshControl::SetCoordinateSystem ( String &  propName,
Variant &  val 
)

Specifies the coordinate system in properties.

Parameters
propNameProperty name
valName or index of the coordinate system
void MeshControl::SetFlagByName ( String &  propName,
String &  scriptKeyName 
)

Specifies the name to set the value of the flag property.

Parameters
propNameProperty name
scriptKeyNameFlag name
void MeshControl::SetPoint ( String &  propName,
Point value 
)

Specifies "Vector" type properties.

Currently used units are used without accounting for the unit of values.

Parameters
propNameProperty name
valuePoint object
void MeshControl::SetTableProperty ( String &  propName,
DataSet set 
)

Specifies a table for the specified properties.

Parameters
propNameProperty name
setDataSet (table)
void MeshControl::SetValue ( String &  propName,
Variant &  value 
)

Specifies the name to set mesh properties.

Parameters
propNameProperty name
valueProperty value
void MeshControl::SetValueWithUnit ( String &  propName,
double  value,
String &  unitName 
)

Specifies the name to set mesh properties in units.

Parameters
propNameProperty name
valueProperty value
unitNameUnit
void MeshControl::SetXYZPoint ( String &  propName,
Variant &  x,
Variant &  y,
Variant &  z 
)

Specifies point type properties with x, y, and z values.

Parameters
propNameProperty name
xX-coordinate
yY-coordinate
zZ-coordinate