Synapi
Synapi
Main Page Alphabetical List Compound List Compound Members Related Pages
By creating and manipulating automation objects through the API, you can:
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
Object CreateEntityList ()
long CreateFixedConstraints (Object aNodes, long aAnalysisType)
long CreatePinConstraints (Object aNodes, long aAnalysisType)
long CreateSpringConstraints (Object aNodes, long aAnalysisType, Object aTrans,
Object aRot)
long CreateGeneralConstraints (Object aNodes, long aAnalysisType, Object aDisp,
Object aRot)
long CreateNodalLoads (Object aNodes, Object aForce, Object aMoment)
long CreateEdgeLoads (Object aNodes, Object aForce)
long CreateElementalLoads (Object aTris, Object aForce)
long CreatePressureLoads (Object aTris, double aPressure)
long CreateTemperatureLoads (Object aTris, double aTemp, double aGradient)
long CreateVolumeLoads (Object aTris, Object aForce)
long CreateCriticalDimension (Object aNode1, Object aNode2, double aUpper,
double aLower)
Object CreateNDBC (Object aNode, Object aNormal, long aType, Object aProperty)
Object CreateNDBCAtXYZ (Object aCoord, Object aNormal, long aType, Object
aProperty)
Boolean MoveNDBC (Object aNdbc, Object aNode, Object aNormal)
Boolean MoveNDBCToXYZ (Object aNdbc, Object aCoord, Object aNormal)
long SetProhibitedGateNodes (Object aNodes, long aAnalysisType)
Detailed Description
You can use this class to create:
• fixed, pin, spring and general constraints
• nodal, edge, element, pressure and volume loads
• dimensional constraints for shrink analysis
• injection entrances, coolant inlets and other "generic" boundary conditions
See also:
Synergy::BoundaryConditions
Object CreateEntityList ( )
Creates an empty EntList object
Returns:
EntList object
Parameters:
aNodes EntList object containing nodes to be constrained
aAnalysisType number that specifies which analysis the constraint is
applicable to:
• 1: stress
• 2: warp
• 3: both stress and warp
Returns:
number of constraints created
See also:
CreatePinConstraints , CreateSpringConstraints , CreateGeneralConstraints
Example:
This example creates a fixed constraint at node N1 for stress analysis.
Parameters:
aNodes EntList object containing nodes to be constrained
aAnalysisType number that specifies which analysis the constraint is
applicable to:
• 1: stress
• 2: warp
• 3: both stress and warp
Returns:
See also:
CreateFixedConstraints , CreateSpringConstraints ,
CreateGeneralConstraints
Example:
This example creates a pin constraint at node N1 for warp.
Parameters:
aNodes EntList object containing nodes to be constrained
aRelevantAnalysis number that specifies which analysis the constraint is
applicable to:
• 1: stress
• 2: warp
• 3: both stress and warp
aTrans Vector object that specifies translation stiffnesses
aRot Vector object that specifies rotation stiffnesses
Returns:
number of constraints created
See also:
CreatePinConstraints , CreateFixedConstraints , CreateGeneralConstraints
Example:
This example creates a spring constraint at node N1 for stress and warp
analyses.
Parameters:
aNodes EntList object containing nodes to be constrained
aAnalysisType number that specifies which analysis the constraint is
applicable to:
• 1: stress
• 2: warp
• 3: both stress and warp
aTrans Vector object whose components specify displacement
constraints as follows:
• 0: free (unconstrained)
• -1: fixed
• values > 0: specified displacement
aRot Vector object whose components specify rotational
constraints as follows:
• 0: free (unconstrained)
• -1: fixed
• values > 0: specified rotation
Returns:
number of constraints created
See also:
CreatePinConstraints , CreateFixedConstraints , CreateSpringConstraints
Example:
This example creates a general constraint at node N1 for stress. The node is
free in the X direction, fixed in the Y direction and has a unit displacement
in the Z direction; its rotation is fixed along the X axis, free along the Y axis
and set to 25 along the Z axis.
Parameters:
aNodes EntList object containing nodes to be constrained
aForce Vector object that specifies the force vector
aMoment Vector object that specifies the moment vector
Returns:
number of loads created
See also:
CreateEdgeLoads , CreatePressureLoads , CreateElementalLoads ,
CreateTemperatureLoads , CreateVolumeLoads
Example:
This example creates a nodal load at node N1.
Parameters:
aNodes EntList object containing nodes to be constrained
aForce Vector object that specifies edge force per unit length
Returns:
number of loads created
See also:
CreateNodalLoads , CreatePressureLoads , CreateElementalLoads ,
CreateTemperatureLoads , CreateVolumeLoads
Example:
This example creates an edge load on the edge defined by nodes N1-N2.
Parameters:
aTris EntList object containing triangles to be loaded
aForce Vector object that specifies the element load
Returns:
number of loads created
See also:
CreateNodalLoads , CreateEdgeLoads , CreatePressureLoads ,
CreateTemperatureLoads , CreateVolumeLoads
Example:
This example creates an elemental load on triangle T3.
Parameters:
aTris EntList object containing triangles to be loaded
aPressure pressure on element
Returns:
number of loads created
See also:
CreateNodalLoads , CreateEdgeLoads , CreateElementalLoads ,
CreateTemperatureLoads , CreateVolumeLoads
Example:
This example creates a pressure load on triangle T3.
Parameters:
aTris EntList object containing triangles to be loaded
aTop temperature increase on the top of the element
aBot temperature increase at the bottom of the element
Returns:
number of loads created
See also:
CreateNodalLoads , CreateEdgeLoads , CreateElementalLoads ,
CreatePressureLoads , CreateVolumeLoads
Example:
This example creates a temperature load at triangle T3.
Parameters:
aTris EntList object containing triangles to be loaded
aForce Vector object defining the force per unit volume
Returns:
number of loads created
See also:
CreateNodalLoads , CreateEdgeLoads , CreateElementalLoads ,
CreatePressureLoads , CreateTemperatureLoads
Example:
This example creates a volume load on triangle T3.
Parameters:
aNode1 EntList object containing the first node
aNode2 EntList object containing the second node
aUpper upper dimensional tolerance
aLower lower dimensional tolerance
Returns:
number of loads created
Example:
This example creates a critical dimension between nodes N1
and N2
Parameters:
aNodes EntList object containing the node on which the boundary
condition is to be created
aNormal Vector object that specifies the orientation of the boundary
condition
aType specifies the property type of the boundary condition
aProp property that needs to be attached to the boundary condition.
Specify Nothing to automatically create or select one for the
given property type
Returns:
EntList object containing the NDBC that was created
Example:
This example creates an injection entrance on node N1.
Parameters:
aCoord Vector object that specifies the location
aNormal Vector object that specifies the orientation of the boundary
condition
aType specifies the property type of the boundary condition
aProp property that needs to be attached to the boundary condition.
Returns:
EntList object containing the NDBC that was created
Note:
Do not use this function after meshing your model since a node is created at
the specified location in order to create this NDBC.
Example:
This example creates an injection location at (100, 100, 0).
Parameters:
aNdbc EntList object containing the NDBC to be moved
aNode EntList object containing the destination node
aNormal Vector object that specifies the orientation of the boundary
condition
Returns:
Example:
This example moves NBC11 to node N390.
Parameters:
aNdbc EntList object containing the NDBC to be moved
aCoord Vector object that specifies the destination
aNormal Vector object that specifies the orientation of the boundary
condition
Returns:
True if successful; False if not
Example:
This example moves NDBC NBC11 to a new location (10, 100, 10).
Parameters:
aNodes EntList object containing nodes to be constrained
aAnalysisType number that specifies which analysis the constraint is
applicable to. In current MPI6.2, the parameter is ignored
because it is always for gate optimization process
Returns:
Example:
This example set a prohibited gate node constraint at node N1 for
optimization analysis.
Public Methods
BoundaryList Entity (long aIndex)
SelectFromString (String aStr)
String ConvertToString ()
Public Attributes
long Size
Boundary list entities size.
Detailed Description
This class is used to create and manipulate boundary lists. It can be used to specify
mesh size on boundary curve of region See BoundaryList::SelectFromString
Parameters:
aIndex index between 0 and
array.Size-1
Returns:
BoundaryList object containing the
object
Parameters:
aStr String representation of the
entities
String ConvertToString ( )
Converts boundary list to a string
Returns:
string representation of the boundary
list
Example:
This example displays "R1:0:6"
Set EntList = Modeler.CreateEntityList()
Set BoundaryList = Modeler.CreateBoundaryList()
BoundaryList.SelectFromString "R1:0:6 "
Str = Boundary.ConvertToString()
MsgBox Str
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
Boolean Generate ()
Public Attributes
double Diameter
Cooling channel diameter.
double Distance
Clearance for the cooling channels from the model.
double Spacing
Spacing between cooling channels.
double Overhang
Distance to extend beyond the part.
long NumChannels
Number of channels.
Boolean DeleteOld
Specifies whether the old layout will be deleted before generating the new one.
Boolean UseHoses
Specifies whether hoses need to be used to connect channels.
Boolean XAlign
Specify True to align in the X direction; False to alignin the Y direction.
Detailed Description
You can use this class to automatically generate a cooling circuit in the model.
See also:
Synergy::CircuitGenerator
Boolean Generate ( )
Automatically generates a coolant circuit
Returns:
True if the operation succeeded; False otherwise
Example:
This example generates a coolant circuit using the following
parameters.
Public Methods
Boolean Func (String aFunc, Object aLabelIn, Object aDataIn, Object aLabelOut,
Object aDataOut)
Boolean Op (Object aLabel_1, Object aData_1, String aOp, Object aLabel_2, Object
aData_2, Object aLabelOut, Object aDataOut)
Boolean Scalar (Object aLabelIn, Object aDataIn, String aOp, double aVal, Object
aLabelOut, Object aDataOut)
Detailed Description
This class provides an efficient way to manipulate result data. It has three member
functions which can do calculation on input data ( IntegerArray and DoubleArray pair)
to generate output data (IntegerArray and DoubleArray pair ). E.g. it can be used to
calculate the difference between two sets of result data, or very complicated
calculation by calling the member function several time to generate a set of new data,
then create a UserPlot with this new data set.
See also:
Synergy::DataTransform , UserPlot , DoubleArray , IntegerArray
Parameters:
aFunc Function name, could be one of the following
• sin: calculate the sine of the expression
• cos: calculate the cosine of the expression
• tan: calculate the tangent of the expression
Returns:
True if successful
Example:
This example does sine calculation on "Pressure (End of filling)" result
Set Synergy = CreateObject("synergy.Synergy")
Set PlotMgr = Synergy.PlotManager()
Set DataTrans = Synergy.DataTransform()
Set nodeIDs_P1 = Synergy.CreateIntegerArray()
Set P1 = Synergy.CreateDoubleArray()
id = PlotMgr.FindDatasetIDByName("Pressure (end of filling)")
PlotMgr.GetScalarData id, IndpValues, nodeIDs_P1, P1
DataTrans.Func "sin", nodeIDs_P1, P1, nodeIDs_P1, P1
Set UserPlot = PlotMgr.CreateUserPlot()
UserPlot.SetName("Plot of sine function")
UserPlot.SetDataType("NDDT")
UserPlot.SetDeptUnitName("MPa")
UserPlot.Build()
Parameters:
aLabel_1 IntegerArray of first elements list
aData_1 DoubleArray of first data list
aOp math operator, "+", "-", "*", "/"
aLabel_2 IntegerArray of second elements list
aData_2 DoubleArray of second data list
aLabelOut IntegerArray of intersect set of aLabel_1 and aLabel_2
aDataOut DoubleArray of output data
Returns:
True if successful
Example:
This example calculates difference between two plots and stores data in
arrays
Set Synergy = CreateObject("synergy.Synergy")
Set PlotMgr = Synergy.PlotManager()
Set DataTrans = Synergy.DataTransform()
Set nodeIDs_P1 = Synergy.CreateIntegerArray()
Set P1 = Synergy.CreateDoubleArray()
PlotMgr.GetScalarData 1770, IndpValues, nodeIDs_P1, P1
Set nodeIDs_P2 = Synergy.CreateIntegerArray()
Set P2 = Synergy.CreateDoubleArray()
PlotMgr.GetScalarData 1630, IndpValues, nodeIDs_P2, P2
Set node_O = Synergy.CreateIntegerArray()
Set p_O = Synergy.CreateDoubleArray()
DataTrans.Op nodeIDs_P2, P2, "-", nodeIDs_P1, P1, node_O, p_O
UserPlot.SetName("Plot of diff")
UserPlot.SetDataType("NDDT")
UserPlot.SetDeptUnitName("MPa")
UserPlot.Build()
Parameters:
aVal scalar value
aOp operator string, current support "+", "-", "*", "/", "/=" for post
divide, "-=" for post minus
aLabelIn Input elements list
aDataIn Input data list
aLabelOut Output elements list
aDataOut Output elements list
Returns:
True if successful
Example:
This example scales result data by 2 times
Set Synergy = CreateObject("synergy.Synergy")
Set PlotMgr = Synergy.PlotManager()
Set DataTrans = Synergy.DataTransform()
Set nodeIDs_P1 = Synergy.CreateIntegerArray()
Set P1 = Synergy.CreateDoubleArray()
PlotMgr.GetScalarData 1770, IndpValues, nodeIDs_P1, P1
DataTrans.Scalar nodeIDs_P1, P1, "*", 2.0, node_O, p_O
UserPlot.SetName("Plot of scaling")
UserPlot.SetDataType("NDDT")
UserPlot.SetDeptUnitName("MPa")
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
ShowThickness (double aMin, double aMax, Boolean aAssignLayer)
ShowThickness2 (double aMin, double aMax, Boolean aAssignLayer, Boolean
aVisibleOnly)
ShowAspectRatio (double aMin, double aMax, Boolean aStdAR, Boolean
aAssignLayer, Boolean aShowTxt)
ShowAspectRatio2 (double aMin, double aMax, Boolean aStdAR, Boolean
aAssignLayer, Boolean aShowTxt, Boolean aVisibleOnly)
Object CreateEntityList ()
ShowConnect (Object aEnt, Boolean aExBeam, Boolean aAssignLayer, Boolean
aShowTxt)
ShowConnect2 (Object aEnt, Boolean aExBeam, Boolean aAssignLayer,
Boolean aShowTxt, Boolean aVisibleOnly)
ShowEdges (Boolean aNonManifold, Boolean aAssignLayer, Boolean
aShowTxt)
ShowEdges2 (Boolean aNonManifold, Boolean aAssignLayer, Boolean
aShowTxt, Boolean aVisibleOnly)
ShowOverlapping (Boolean aOverall, Boolean aProperIsect, Boolean
aAssignLayer, Boolean aShowTxt)
ShowOverlapping2 (Boolean aOverall, Boolean aProperIsect, Boolean
aAssignLayer, Boolean aShowTxt, Boolean aVisibleOnly)
ShowOverlapping3 (Boolean aOverall, Boolean aProperIsect, Boolean aExTri,
Boolean aExBeam, Boolean aAssignLayer, Boolean aShowTxt, Boolean
aVisibleOnly)
ShowMatchInfo (Boolean aAssignLayer, Boolean aShowTxt)
ShowMatchInfo2 (Boolean aAssignLayer, Boolean aShowTxt, Boolean
aReciprocal)
ShowOccurrence (Boolean aAssignLayer)
ShowOccurrence2 (Boolean aAssignLayer, Boolean aVisibleOnly)
ShowOrient (Boolean aAssignLayer, Boolean aShowTxt)
ShowOrient2 (Boolean aAssignLayer, Boolean aShowTxt, Boolean aVisibleOnly)
ShowSummary ()
long GetThicknessDiagnosis (double aMin, double aMax, Object aEntList, Object
aValueList)
long GetThicknessDiagnosis2 (double aMin, double aMax, Boolean aVisibleOnly,
Object aEntList, Object aValueList)
long GetAspectRatioDiagnosis (double aMin, double aMax, Boolean aStdAR, Object
aEntList, Object aValueList)
long
Public Methods 24
MPI Application Programming Interface
Detailed Description
You can use this class to generate mesh diagnostics such as aspect ratios, thickness,
connectivity, overlaps/intersections, free edges, occurrence numbers and orientation.
Both graphical and textual output are supported.
See also:
Synergy::DiagnosisManager
Parameters:
aMin lower bound for plotted thickness
aMax upper bound for plotted thickness
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
Example:
This example shows element thickness between 1 and 2 and pushed these
elements into a diagnostics layer.
Parameters:
aMin lower bound for plotted thickness
aMax upper bound for plotted thickness
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aVisibleOnly Include only visible elements in the diagnosis
Example:
Detailed Description 25
MPI Application Programming Interface
This example shows element thickness between 1 and 2 and pushed these
elements into a diagnostics layer.
Parameters:
aMin lower bound for aspect ratio
aMax upper bound for aspect ratio
aStdAR specify True for the standard aspect ratio measue; False for a
normalized measure
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aShowTxt specify True to generate text diagnostics; False to show
graphical results
Example:
This example shows aspect ratios between 5 and 20.
Parameters:
aMin lower bound for aspect ratio
aMax upper bound for aspect ratio
aStdAR specify True for the standard aspect ratio measue; False for a
normalized measure
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aShowTxt specify True to generate text diagnostics; False to show
graphical results
aVisibleOnly Include only visible elements in the diagnosis
Object CreateEntityList ( )
Creates an empty EntList object
Returns:
empty EntList object
Parameters:
aEnts EntList object of entities to start searching from
aExBeam specifies whether beams need to be excluded while generating
the diagnostics
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aShowTxt specify True to generate text diagnostics; False to show
graphical results
Example:
This example displays elements that are connected to node N1; beams are
excluded.
Parameters:
aEnts EntList object of entities to start searching from
aExBeam specifies whether beams need to be excluded while generating
the diagnostics
aAssignLayer
Example:
This example displays elements that are connected to node N1; beams are
excluded.
Parameters:
aNonManifold specify True to generate diagnostics for non-manifold edges in
addition to free edges; False otherwise
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aShowTxt specify True to generate text diagnostics; False to show
graphical results
Example:
This example shows free edges in the mesh.
Parameters:
aNonManifold specify True to generate diagnostics for non-manifold edges in
addition to free edges; False otherwise
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aShowTxt specify True to generate text diagnostics; False to show
graphical results
aVisibleOnly Include only visible elements in the diagnosis
Example:
This example shows free edges in the mesh.
Parameters:
aOverlaps specifies whether overlaps need to be displayed
aProperIsect specifies whether intersections need to be displayed
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aShowTxt specify True to generate text diagnostics; False to show
graphical results
Example:
This example displays overlaps and intersections in the mesh graphically.
Parameters:
aOverlaps specifies whether overlaps need to be displayed
aProperIsect specifies whether intersections need to be displayed
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aShowTxt specify True to generate text diagnostics; False to show
graphical results
aVisibleOnly Include only visible elements in the diagnosis
Example:
This example displays overlaps and intersections in the mesh graphically.
Parameters:
aOverlaps specifies whether overlaps need to be displayed
aProperIsect specifies whether intersections need to be displayed
aExTri specifies whether excludes triangles
aExBeam specifies whether excludes beams
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aShowTxt specify True to generate text diagnostics; False to show
graphical results
aVisibleOnly Include only visible elements in the diagnosis
Example:
This example displays overlaps and intersections in the mesh graphically, for
beams only.
Parameters:
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aShowTxt specify True to generate text diagnostics; False to show
graphical results
Example:
This example shows mesh match diagnostics in text mode.
Parameters:
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aShowTxt specify True to generate text diagnostics; False to show
graphical results
aReciprocal TrueReciprocal mesh matching
Example:
This example shows mesh match reciprocal diagnostics.
Parameters:
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
Example
This example shows mesh element occurrence numbers.
Parameters:
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aVisibleOnly Include only visible elements in the diagnosis
Example
This example shows mesh element occurrence numbers.
Parameters:
aAssignLayer
Example:
This example generates text diagnostics for mesh orientation.
Parameters:
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aShowTxt specify True to generate text diagnostics; False to show
graphical results
aVisibleOnly Include only visible elements in the diagnosis
Example:
This example generates text diagnostics for mesh orientation.
ShowSummary ( )
Generates diagnostics summary
Example:
This example displays a diagnostics
summary.
Parameters:
aMin minimum thickness, use 0 to include all thickness
aMax maximum thickness, use 0 to include all thickness
Returns:
Number of elements found
Example:
This example gets elements information into IntArr and DoubleArr of the
thickness between 1 and 3
Parameters:
aMin Minimum limit of the thickness
aMax Maximum limit of the thickness
aVisibleOnly Include only visible elements in the diagnosis
aEntList an IntegerArray of element IDs
aValueList a DoubleArray of thickness of the corresponding element
Returns:
number of elements found
Example:
This example gets visible elements information into IntArr and DoubleArr of
the thickness between 1 and 3
To get a list of entity ID and aspect ratio value between the given limits
Parameters:
aMin lower limit, use 0 to include all
aMax upper limit, use 0 to include all
aStdAR specify True for the standard aspect ratio measue; False for a
normalized measure
aEntList an IntegerArray of element IDs
aValueList a DoubleArray of aspect ratio of the corresponding element
Returns:
Number of elements found
Example:
This example gets elements information into IntArr and DoubleArr of the
aspect ratio between 1 and 10
Parameters:
aMin Lower limit
aMax Upper limit
aStdAR specify True for the standard aspect ratio measue; False
aVisibleOnly Include only visible elements in the diagnosis
aEntList an IntegerArray of element IDs
aValue a DoubleArray of aspect ratio of the corresponding element
Returns:
number of elements found
Example:
This example gets elements information into IntArr and DoubleArr of the
aspect ratio between 1 and 10
Parameters:
aEnts seed element
aExBeam whether to exclude beam elements
aEntList an IntegerArray of element IDs connected with the given element
aValueList a DoubleArray of connectivity value, currently all 1.
Returns:
Number of elements found
Example:
This example gets elements information into IntArr and DoubleArr of the
elements connected with "T1"
Parameters:
aEnts Given element handle
aExBeam Whether to exclude beam elements
aVisibleOnly Include only visible elements in the diagnosis
aEntList an IntegerArray of element IDs connected with the given
element
aValueList a DoubleArray of connectivity value, currently all 1.
Returns:
Number of elements connected with given element
Example:
This example gets elements information into IntArr and DoubleArr of the
elements connected with "T1"
Parameters:
aNonManifold whether to include non-manifold edges
aEntList element number
aValueList value list, each value specifies freeedge / non-manifold
Returns:
Number of elements containing free/non-manifold edge
Example:
This example gets elements information into IntArr and DoubleArr of free
edges
Parameters:
aNonManifold Whether to include non-manifold edges
aVisibleOnly Include only visible elements in the diagnosis
Returns:
Number of free edges
Example:
This example gets visible elements information into IntArr and DoubleArr of
free edges
Parameters:
aOverall whether to include fully overlap elements
aProperIsect whether to include intersect elements
aEntList an IntegerArray of element IDs
aValueList a DoubleArray of intersect/overlap value
0 - Overlap
1 - Intersect
Returns:
Number of overlapping/intersect elements
Example:
This example gets elements information of overlapping and intersect
elements
Parameters:
aOverall whether to include fully overlap elements
aProperIsect whether to include intersect elements
aVisibleOnly Include only visible elements in the diagnosis
aEntList an IntegerArray of element IDs
aValueList a DoubleArray of intersect/overlap value 1 - Intersect,
Returns:
Number of problem elements.
Example:
This example gets elements information of overlapping and intersect
elements
Parameters:
aEntList an IntegerArray of element IDs
aValueList a DoubleArray of occurrence number
Returns:
Number of elements found
Example:
This example gets elements occurrence information
Parameters:
aVisibleOnly Include only visible elements in the diagnosis
aEntList an IntegerArray of element IDs
aValue an DoubleArray of occurrence number
Returns:
Number of elements found
Example:
This example gets visible elements occurrence information
Parameters:
aEntList an IntegerArray of element IDs
aValueList a DoubleArray of the value
Returns:
Number of elements found
Example:
This example gets elements match information
Parameters:
aEntList an IntegerArray of element IDs
Returns:
Number of un-oriented elements Note: It could be the number of oriented
elements.
Example:
This example gets un-oriented elements information
Parameters:
aVisibleOnly Include only visible elements in the diagnosis
aEntList an IntegerArray of element IDs
aValueList a DoubleArray of the value
Returns:
Total unoriented element number Note: It could be the number of oriented
elements.
Example:
This example gets visible un-oriented elements information
Parameters:
aMin edge length used to calculate equivalent area
ZeroArea = Sqrt(3)/4 * aMin * aMin
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aShowTxt specify True to generate text diagnostics; False to show
Example:
This example generates text diagnostics for zero area elements.
Parameters:
aMin edge length used to calculate equivalent area
ZeroArea = Sqrt(3)/4 * aMin * aMin
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aShowTxt specify True to generate text diagnostics; False to show
graphical results
aVisibleOnly Include only visible elements in the diagnosis
Example:
This example generates text diagnostics for zero area elements.
Parameters:
aMin edge length used to calculate equivalent area
ZeroArea = Sqrt(3)/4 * aMin * aMin
aEntList an IntegerArray of element IDs
aValueList a DoubleArray containing all 1 to indicate it is zero area element
Returns:
Number of zero area elements found
Example:
This example gets elements information of elements with area less than a
normal triangle
Parameters:
aMin edge length used to calculate equivalent area
ZeroArea = Sqrt(3)/4 * aMin * aMin
aEntList an IntegerArray of element IDs
aValueList a DoubleArray containing all 1 to indicate it is zero area element
aVisibleOnly Include only visible elements in the diagnosis
Returns:
Number of zero area elements found
Example:
This example gets elements information of elements with area less than a
normal triangle
Parameters:
aElementOnly True - to get element counts summary only, which includes TrianglesC
NodesCount BeamsCount, MeshVolume and RunnerVolume
False - to get all mesh summary
Returns:
MeshSummary object
Example:
This example displays partial mesh summary information on screen.
Set Synergy = CreateObject("synergy.Synergy")
Set DiagnosisManager = Synergy.DiagnosisManager()
Set Summary = DiagnosisManager.GetMeshSummary(false)
StrMsg = "Surface Triangles: " + CStr(summary.TrianglesCount) + vbNewLine
StrMsg = StrMsg + "Node : " + CStr( summary.NodesCount ) + vbNewLine
StrMsg = StrMsg + "Beams : " + CStr( summary.BeamsCount ) + vbNewLine
StrMsg = StrMsg + "Mesh Volume " + CStr( summary.MeshVolume ) + vbNewLine
StrMsg = StrMsg + "RunnerVolume " + cstr( summary.runnerVolume ) + vbNewLine
StrMsg = StrMsg + "Min Aspect Ratio: " + CStr(Summary.MinAspectRatio) + vbNewLine
StrMsg = StrMsg + "Max Aspect Ratio: " + CStr(Summary.MaxAspectRatio) + vbNewLine
StrMsg = StrMsg + "AVE Aspect Ratio: " + CStr(Summary.AveAspectRatio) + vbNewLine + vb
Parameters:
aOutLoop if set will test surface outer loops for errors
aInnerLoop if set will test surface inner loops for errors
aSurfDef if set will test underlying surface definition for errors
aVisibleOnly Include only visible elements in the diagnosis
aEntList an IntegerArray of element IDs
aValue a DoubleArray of diagnostic index value ratio of the
corresponding element
Returns:
number of surfs found
Example:
This example gets a list of entity ID and surfaces with bad trimming curves
Parameters:
aOutLoop if set will test surface outer loops for errors
aInnerLoop if set will test surface inner loops for errors
SurfDef if set will test underlying surface definition for errors
aAssignLayer specify True to push the elements within the diagnosis range into a
diagnostics layer; False otherwise
aShowTxt specify True to generate text diagnostics; False to show graphical resu
aVisibleOnly Include only visible elements in the diagnosis @Par Example: This exam
generates trimming curve diagnosis
Set DiagnosisManager = Synergy.DiagnosisManager()
DiagnosisManager.ShowSurfWithBadTrimCurv True, True, False, True, False,
Parameters:
aFree if set will test surface for a free edge
aInnerLoop if set will test surface a non manifold edge
aVisibleOnly Include only visible elements in the diagnosis
aEntList an IntegerArray of element IDs
aValue a DoubleArray of diagnostic index value ratio of the
corresponding element
Returns:
number of surfs found
Example:
This example gets a list of entity ID and surfaces with free trimming curves
Parameters:
aFree if set will test surface for a free edge
aInnerLoop if set will test surface a non manifold edge
aAssignLayer specify True to push the elements within the diagnosis range into a
diagnostics layer; False otherwise
aShowTxt specify True to generate text diagnostics; False to show graphical
results
aVisibleOnly Include only visible elements in the diagnosis @Par Example: This
example generates trimming curve diagnosis
Set DiagnosisManager = Synergy.DiagnosisManager()
DiagnosisManager.ShowSurfWithFreeTrimCurv True, True, True, False, False
Parameters:
aMin lower bound for L/D ratio
aMax upper bound for L/D ratio
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aVisibleOnly Include only visible elements in the diagnosis
Example:
This example shows beams with L/D between 1 and 20 and put these elements
into a diagnostics layer.
Parameters:
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aVisibleOnly Include only visible elements in the diagnosis
Example:
This example shows centroid closeness diagnostics.
Parameters:
aMin lower bound
aMax upper bound
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aVisibleOnly Include only visible elements in the diagnosis
Parameters:
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aVisibleOnly Include only visible elements in the diagnosis
Example:
This example shows cooling circuit diagnostics.
Parameters:
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aVisibleOnly Include only visible elements in the diagnosis
Example:
This example shows bubbler/baffle diagnostics.
Parameters:
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aVisibleOnly Include only visible elements in the diagnosis
Example:
This example shows trapped beam diagnostics.
Parameters:
aMin lower bound for plotted thickness
aMax upper bound for plotted thickness
Example:
This example changes the display to show element thickness between 1 and
2\4.
Parameters:
aMin lower bound for plotted dimension
aMax upper bound for plotted dimension
aAssignLayer specify True to push the elements within the diagnosis range
into a diagnostics layer; False otherwise
aVisibleOnly Include only visible elements in the diagnosis
Example:
This example shows element dimension between 1 and 2 and pushed these
elements into a diagnostics layer.
Parameters:
aMin lower bound for plotted dimension
aMax upper bound for plotted dimension
Example:
This example changes the display to show element dimension between 1 and
2\4.
Public Methods
double Val (long aIndex)
AddDouble (double aVal)
VARIANT ToVBSArray ()
long FromVBSArray (const VARIANT FAR &aArray)
Public Attributes
long Size
Number of values in the array (read-only).
Detailed Description
This class is used when an array of doubles needs to be passed into or returned by an
API function, e.g., when writing and reading property field values.
See also:
Synergy::CreateDoubleArray
Parameters:
aIndex index between 0 and
array.Size-1
Example:
See UserPlot::AddVectorData
Example:
This example creates an array with two values, 0.1 and
0.2.
VARIANT ToVBSArray ( )
Converts DoubleArray to VB Script array
Returns:
Variant of VB Script array
Example:
This example converts DoubleArray to VBScript array
DiagnosisManager.GetAspectRatioDiagnosis 1, 3, TRUE, IntArr, DoubleArr
VBArr = DoubleArr.ToVBSArray()
Parameters:
aArray
Returns:
number of elements added
Example:
This example converts VBScript array to
DoubleArray
Set DoubleArr = Synergy.CreateDoubleArray()
Dim Arr1(10)
Arr1(0) = 1
Arr1(1) = 10
Arr1(2) = 100
Arr1(3) = 134.23
Arr1(4) = 324.432
DoubleArr.FromVBSArray( Arr1 )
Public Methods
Object Entity (long aIndex)
SelectFromString (String aStr)
SelectFromPredicate (Object aPred)
String ConvertToString ()
SelectFromSavedList (String aListName)
Public Attributes
long Size
Number of entities in the list (read-only).
Detailed Description
You can use this class to create and manipulate entity lists. Entities include essentially
all useful geometric and mesh components of your model including nodes, curves,
regions, surfaces, elements, coordinate systems and boundary conditions. Most API
functions that operate on the model take entity lists as input or provide them as
output. This class can be used very effectively in conjunction with Predicate to select
entities by complex criteria
See also:
StudyDoc::CreateEntityList , Modeler::CreateEntityList ,
MeshEditor::CreateEntityList , BoundaryConditions::CreateEntityList ,
PropertyEditor::CreateEntityList
Parameters:
aIndex index between 0 and list.Size-1
Parameters:
aStr string containing entity names
Note:
This function does not allow ranges to be specified using the syntax "N1:20",
e.g. Please use PredicateManager to create a label predicate that will allow
you to specify ranges. Entity prefixes are as follows:
• Nodes: N
• Beams: B
• Triangles: T
• Tetrahedral elements: TE
• Curves: C
• Surfaces: S
• Regions: R
• STL envelopes: STL
• Nodal boundary conditions: NBC
• Surface/element boundary conditions: SBC
• Local coordinate systems: LCS
Example:
This example sets the entity list to the nodes N18 and N23.
Parameters:
aPredicate Predicate object that defines the criterion for inclusion of an
entity
See also:
PredicateManager
Example:
The following example selects nodes with labels N23 to N100.
String ConvertToString ( )
Convert a list of entities into a string
Example:
The following example returns "N1 N2 N3".
Parameters:
aListName name of a saved entity list
Example:
The following example selects a list of entities from
"MyTest"
Set EntList = StudyDoc.CreateEntityList()
EntList.SelectFromSavedList "MyTest"
MsgBox EntList.ConvertToString()
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Attributes
String MeshType
String Units
Boolean MDLMesh
Specifies whether MDL should generate a mesh when importing the model.
Boolean MDLSurfaces
Specifies whether MDL should translate surfaces when importing the model.
Boolean UseMDL
Specifies whether MDL should be used for model import.
String MDLKernel
Boolean MDLAutoEdgeSelect
Specifies whether default edge length should be used for meshing.
double MDLEdgeLength
Specifies edge length value for meshing.
long MDLTetraLayers
Specifies the minimum number of tetra layer through thickness in 3D meshing.
Boolean MDLChordAngleSelect
Specifies whether chord angle should be used for meshing.
double MDLChordAngle
Specifies chord angle value for meshing(in radian).
Boolean MDLSliverRemoval
Specifies whether sliver removal option should be used for meshing.
String MDLContactMeshType
Detailed Description
See also:
Synergy::ImportFile
See also:
Synergy::ImportOptions
String MeshType
Mesh type. Can be one of:
• Midplane
• Fusion
• 3D
String Units
Units of measurement for the model to be imported. Can be one of:
• mm: Millimeters
• cm: Centimeters
• m: Meters
• in: Inches
String MDLKernel
Specifies which MDL kernel should be used. Can be one of:
• Parametric
• Parasolid
String MDLContactMeshType
Specifies which MDL assembly contact mesh type should be used. Can be one of:
• Precise match
• Fault tolerant
• Ignore contact
Detailed Description 55
MPI Application Programming Interface
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
long Val (long aIndex)
AddInteger (long aInt)
VARIANT ToVBSArray ()
long FromVBSArray (const VARIANT FAR &aArray)
Public Attributes
long Size
Number of values in the array (read-only).
Detailed Description
This class is used when an array of integers needs to be passed into or returned by an
API function, e.g., when get mesh diagnostic object values.
See also:
Synergy::CreateIntegerArray
Parameters:
aIndex index between 0 and array.Size-1
Returns:
value at a given index @Par Example: This example
prints 30
Set IntArr = Synergy.CreateIntegerArray()
IntArr.AddInteger( 30 )
MsgBox IntArr.Val(0)
Parameters:
aInt value to be added
Example:
This example adds 30 to a new
IntegerArray
Set IntArr = Synergy.CreateIntegerArray()
IntArr.AddInteger( 30 )
VARIANT ToVBSArray ( )
Converts IntegerArray to VB Script array
Returns:
Variant of VB Script array
Example:
This example converts IntegerArray to VBScript array
DiagnosisManager.GetAspectRatioDiagnosis 1, 3, TRUE, IntArr, DoubleArr
VBArr = IntArr.ToVBSArray()
Parameters:
aArray
Returns:
number of elements added
Example:
This example converts VBScript array to
IntegerArray
Set IntArr = Synergy.CreateIntegerArray()
Dim Arr1(10)
Arr1(0) = 1
Arr1(1) = 10
Arr1(2) = 100
Arr1(3) = 134
Arr1(4) = 324
IntArr.FromVBSArray( Arr1 )
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
Boolean IsCheckAnalysis ()
Object FindServer ()
Public Attributes
String AnalysisName
Analysis name.
String ClientAddress
Client address.
long ClientPort
Client port.
String CommandLine
Command line.
String FinishTime
Finish time.
long JobID
Job ID.
String JobType
Job type.
String ModelName
Model name.
String Priority
Priority.
String User
User.
String RestartFile
Restart file.
String ScheduleTime
Schedule time.
String Status
Status.
String StartTime
Start time.
String WorkingFolder
Working folder.
Detailed Description
You can use this class to set job priority and retrieve all information about a job
Boolean IsCheckAnalysis ( )
Get analysis type
Returns:
true if the job is for checking only
Example:
This example prints "True" if the Job is doing check, "False"
otherwise.
If Job.IsCheckAnalysis Then
MsgBox "True"
Else
MsgBox "False"
EndIf
Object FindServer ( )
Find the server holding this job
Returns:
Server object
Example:
This example find the server holding
this job
srv = Job.FindServer()
Public Attributes 59
MPI Application Programming Interface
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
Boolean AddServer (String aAddress, String aName, String aPriority, long aRunLimit)
Boolean StartBatchQueue (String aServer)
Boolean HaltBatchQueue (String aServer)
Object GetJob (long aJobIndex)
Object GetServer (long aSvrIndex)
Boolean AbortJob (Object aJob)
Boolean AbortJobByID (long aJobID)
Boolean AbortJobByIndex (long aJobIndex)
Boolean DeleteServer (Object aServer)
Boolean DeleteServerByName (String aName)
Boolean DeleteServerByAddress (String aAddress)
Object FindJobByID (long aJobID)
Boolean AbortMyJobsOnServer (Object aServer)
Boolean AbortMyJobsOnServerByName (String aName)
Boolean AbortMyJobsOnServerByAddress (String aAddress)
Public Attributes
String DefaultServer
Default server address.
long NumberOfJobs
Number of jobs.
long NumberOfServers
Number of servers.
Detailed Description
You can use this class to add, delete server and set default server, also to start batch
queue on a given server and abort an existing job etc.
See also:
Synergy::JobManager
Parameters:
aAddress Server address
aName Server name
aPriority Priority
aRunLimit Run limit
Returns:
TRUE if successful
Example:
This example adds a new server
Set JobManager = Synergy.JobManager()
JobManager.AddServer "localhost", "localhost", "Low", 1
Parameters:
aServer Server
Returns:
TRUE if successful
Example:
This example starts batch queue on local
server
Set JobManager = Synergy.JobManager()
JobManager.StartBatchQueue "127.0.0.1"
Parameters:
aServer
Returns:
TRUE if successful
Example:
Parameters:
aJobIndex Job index
Returns:
a Job object
Example:
Set JobManager = Synergy.JobManager()
Set job = JobManager.GetJob(1)
Parameters:
aSvrIndex Server index
Returns:
Server object
Example:
Set JobManager = Synergy.JobManager()
Set svr = JobManager.GetServer(1)
Parameters:
aJob Job object
Returns:
TRUE if successful
Example:
This example aborts first job.
Set JobManager = Synergy.JobManager()
Set job = JobManager.GetJob(1)
JobManager.AbortJob(job)
Parameters:
aJobID Job ID
Example:
This example aborts job with
ID 1
Set JobManager = Synergy.JobManager()
JobManager.AbortJobByID (1)
Parameters:
aJobIndex Job index
Returns:
TRUE if successful
Example:
This example aborts job with
index 1
Set JobManager = Synergy.JobManager()
JobManager.AbortJobByIndex (1)
Parameters:
aServer Server
Returns:
TRUE if successful
Example:
This example delete server with
index 1
Set JobManager = Synergy.JobManager()
Set svr = JobManager.GetServer(1)
jobMgr.DeleteServer(svr)
Parameters:
aName Server name
Returns:
TRUE if successful
Example:
Parameters:
aAddress Server address
Returns:
TRUE if successful
Example:
This example deletes server with IP address
127.0.0.1
Set jobMgr = Synergy.JobManager()
jobMgr.DeleteServerByAddress "127.0.0.1"
Parameters:
aJobID Job ID
Returns:
TRUE if successful
Example:
This example finds job with ID
100000
Set jobMgr = Synergy.JobManager()
Set Job = jobMgr.FindJobByID(100000)
Parameters:
aServer Server
Returns:
TRUE if successful.
Example:
This example aborts my jobs on the server with
index 1.
Set JobManager = Synergy.JobManager()
Set svr = JobManager.GetServer(1)
jobMgr.AbortMyJobsOnServer(svr)
Parameters:
aName Server name
Returns:
TRUE if successful.
Example:
This example aborts all jobs on the server
"localhost".
Set JobManager = Synergy.JobManager()
JobManager.AbortMyJobsOnServerByName "localhost"
Parameters:
aAddress Server address
Returns:
TRUE if successful.
Example:
This example aborts all jobs on the server with IP address
127.0.0.1.
Set JobManager = Synergy.JobManager()
JobManager.AbortMyJobsOnServerByAddress "127.0.0.1"
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
Boolean CreateLayer ()
Boolean ActivateLayer (Object aEnt)
Object CreateEntityList ()
long AssignToLayer (Object aEnts, Object aLayer)
Boolean DeleteLayer (Object aLayer, Boolean aMove)
Boolean ToggleLayer (Object aLayer)
long ExpandLayer (Object aLayer, long aLevels, Boolean aExpandNewLayer)
Boolean SetLayerName (Object aLayer, String aName)
Boolean ShowAllLayers ()
long SetTypeColor (Object aLayer, String aType, Boolean aDefault, long aRed,
long aGreen, long aBlue)
Boolean SetTypeVisible (Object aLayer, String aType, Boolean aVisible)
Boolean SetTypeDisplayOption (Object aLayer, String aType, String aOption)
Object GetFirst ()
Object GetNext (Object aLayer)
String GetName (Object aLayer)
Boolean ShowLabels (Object aLayer, Boolean aShow)
Boolean SetTypeShowLabels (Object aLayer, String aType, Boolean aShow)
Object CreateLayerByName (String aName)
Object FindLayerByName (String aName)
Boolean HideAllOtherLayers (Object aLayer)
Boolean RemoveEmptyLayers ()
Detailed Description
You can use this class to create new layers, delete layers, activate a layer, expand a
layer, set layer display options, etc.
See also:
Synergy::LayerManager
Boolean CreateLayer ( )
Returns:
True if successful; False
otherwise
Example:
This example creates a new layer.
Parameters:
aEnt EntList object that contains the layer to be
activated
Returns:
True if successful; False otherwise
Example:
This example activates the layer L2.
Object CreateEntityList ( )
Creates an empty EntList object
Returns:
EntList object @Par Example:
See also:
LayerManager::CreateLayerByName
Parameters:
aEnts EntList that contains entities that are to be assigned to a layer
aLayer EntList that contains the layer to which the entities will be
assigned
Returns:
number of entities that have been assigned to the layer
Parameters:
aLayer EntList object containing the layer to be deleted
aMove specify True to move entities in this layer to the active layer; False if
you want to delete these entities along with the layer
Returns:
True if successful; False otherwise
Example:
This example deletes layer L5 and all entities in it.
Parameters:
aLayer EntList object containing the layer whose visibility is to be
toggled
Returns:
True if successful; False otherwise
Example:
This example toggles the visibility of layer L3.
Parameters:
aLayer EntList object containing the layer to be expanded
aLevels number of levels to expand
aExpandNewLayer whether to create a new layer for the expanded
entities
Returns:
number of entities affected
Example:
This example expands layer L3 by 3 levels.
Parameters:
aLayer EntList object containing the layer to be
renamed
aName new name
Returns:
True if successful; False otherwise
Example:
This example renames layer L3 to "New Nodes".
Boolean ShowAllLayers ( )
Shows all layers
Returns:
True if successful; False
otherwise
Example:
This example shows all layers
Set LayerManager = Synergy.LayerManager()
LayerManager.ShowAllLayers
Parameters:
aLayer EntList object containing a layer
aType string that specifies the entity type
• N: Node
• B: Beam ( 1D element )
• T: Triangle
• C: Curve
• S: Surface
• R: Region
• NBC: NDBC
• SBC: SUBC
• LCS: LCS
• TE: TET4
• STL: STL
aDefault specify True to use the default color; False
otherwise
aRed red component of color; can be between 0 and
255
aGreen green component of color; can be between 0 and
255
aBlue blue component of color; can be between 0 and
255
Returns:
integer identifier for the color
See also:
SetTypeDisplayOption , SetTypeVisible
Example:
This example sets nodes on layer L3 to red.
Parameters:
aLayer EntList object containing a layer
aType string that specifies the entity type
• N: Node
• B: Beam ( 1D element )
• T: Triangle
• C: Curve
• S: Surface
• R: Region
• NBC: NDBC
• SBC: SUBC
• LCS: LCS
• TE: TET4
• STL: STL
aVisible specify True to make the layer visible; False
otherwise
Returns:
True if successful; False otherwise
See also:
SetTypeDisplayOption , SetTypeColor
Example:
This example turns off visibility of triangles in the layer L3.
Parameters:
aLayer EntList object containing a layer
aType string that specifies the entity type
• N: Node
• B: Beam ( 1D element )
• T: Triangle
• C: Curve
Returns:
True if successful; False otherwise
See also:
SetTypeVisible , SetTypeColor
Example:
This example specifies that triangles in layer L3 should be displayed as "Solid".
Object GetFirst ( )
Gets the first layer in the model
Returns:
Example:
Set LayerManager = Synergy.LayerManager()
Set L1 = LayerManager.GetFirst()
Parameters:
aLayer EntList object containing a
layer
Returns:
EntList object containing the next
layer
Example:
This example shows all layer name
Set LayerManager = Synergy.LayerManager()
Set L1 = LayerManager.GetFirst()
While Not L1 Is Nothing
MsgBox LayerManager.GetName( L1 )
Set L1 = LayerManager.GetNext(L1)
Wend
Parameters:
aLayer EntList object containing a layer
Returns:
name of the layer
Example:
This example gets the name of the first
layer.
Parameters:
aLayer layer entity
aShow whether to show or hide
Example:
This example show labels of the layer
L2.
Parameters:
aLayer EntList object containing a layer
aType string that specifies the entity type
• N: Node
• B: Beam ( 1D element )
• T: Triangle
• C: Curve
• S: Surface
• R: Region
• NBC: NDBC
• SBC: SUBC
• LCS: LCS
• TE: TET4
• STL: STL
aShow specify True to make the layer visible; False
otherwise
Returns:
True if successful; False otherwise
See also:
SetTypeDisplayOption , SetTypeColor
Example:
This example turns off label of triangles in the layer L3.
Returns:
EntList object containing the new layer
Example:
This example creates a new layer and assign N1 to this new
layer.
Parameters:
aName layer name
Returns:
EntList object containing the layer
Example:
This example assigns T1 to layer "My New Layer 3".
Returns:
True if successful; False otherwise
Example:
This example hides all layers but "L3"
Set LayerManager = Synergy.LayerManager()
Set EntList = LayerManager.CreateEntityList()
EntList.SelectFromString "L3 "
LayerManager.HideAllOtherLayers EntList
Boolean RemoveEmptyLayers ( )
Delete empty layers
Returns:
True if successful; False
otherwise
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
Boolean Select (String aFile, String aFileType, long aIndex, long aMat)
Detailed Description
You can use this class to select molding materials from system or user databases
See also:
Synergy::MaterialSelector
Parameters:
aFile material database file name
aFileType file type, which can be one of the following:
• "System": for databases that reside in the "system" database
directory,
• "User": for databases that reside in the "user" directory, and
• "": for databases that reside in neither of the above locations; the
last option should be used with caution since scripts written with
"absolute" file path names are typically not usable across different
versions of the software
aIndex material index in the database that uniquely identifies this
material; the easiest way to ascertain the material index is to
record a macro that selects the material from the database
aMat specify 0 to select the material as the first molding material and 1
to select it as the second molding material
Returns:
True if successful; False otherwise
Example:
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
long AutoFix ()
long GlobalMerge (double aToler, Boolean aFusion)
long PurgeNodes ()
long MergeNodes (Object aTarget, Object aNodes, Boolean aFusion)
Object CreateEntityList ()
Boolean SwapEdge (Object aTri1, Object aTri2, Boolean aFeatAllow)
Boolean StitchFreeEdges2 (Object aNodes, double aToler)
Object InsertNode (Object aNode1, Object aNode2)
Object InsertNodeInTri (Object aNode1, Object aNode2, Object aNode3)
Object InsertNodeInTetByNodes (Object aNode1, Object aNode2, Object aNode3,
Object aNode4)
Object InsertNodeInTet (Object aTet)
Boolean MoveNodes (Object aNodes, Object aCoord, Boolean aAbs)
Boolean AlignNodes (Object aNode1, Object aNode2, Object aToAlign)
Boolean SmoothNodes (Object aNodes, Boolean aFeat)
Boolean Orient (Boolean aFusion)
Boolean FlipNormals (Object aEnts)
long AlignNormals (Object aSeed, Object aEnts)
Boolean FillHole (Object aNodes)
Object CreateTet (Object aNode1, Object aNode2, Object aNode3, Object aNode4,
Object aPropSet)
Boolean RefineTetras (long aTetRefLayerID, long aNumLayers, Boolean
aRefineSurface, double aSurfaceEdgeLength)
Object CreateWedge (Object aNode1, Object aNode2, Object aNode3, Object
aNode4, Object aNode5, Object aNode6, Object aPropSet)
Boolean ConvertWedgesToTetras (Object aEnts, long aNumLayers)
Object CreateTri (Object aNode1, Object aNode2, Object aNode3, Object aPropSet)
Object CreateBeams (Object aNode1, Object aNode2, long aNum, Object aPropSet)
Object Delete (Object aEnts)
Boolean RemeshArea (Object aEnts, double aSize)
long MatchNodes (Object aNodes, Object aTris, String aLayer)
long MakeRegion (double aTol, Boolean aIsAngular)
long MakeRegion2 (double aTol, Boolean aIsAngular, Boolean aMesh, Object
aPropSet)
Boolean MoveBeamNode (Object aMovingNode, Object aTargetCoord)
Boolean MoveNodeToEdge (Object aNode, Object aEdgeNode1, Object aEdgeNode2,
double aParamLoc)
Boolean RemeshArea2 (Object aEnts, double aSize, double aSmooth)
Detailed Description
You can use this class to repair mesh defects, refine and modify meshes, delete
entities, smooth nodes, etc.
See also:
Synergy::MeshEditor
long AutoFix ( )
Attempts to repair the mesh by automatically removing overlaps and intersections
Returns:
Number of overlaps/intersections that were removed
Example:
This example repairs the current mesh.
Parameters:
aToler merge tolerance
aFusion specify True to disallow merges between nodes that are not on the
same element
Returns:
number of nodes merged
Example:
This example merges nodes with a tolerance of 0.1mm.
Public Methods 80
MPI Application Programming Interface
long PurgeNodes ( )
Deletes nodes in the model that are not connected to any elements
Returns:
number of nodes removed
Example:
This example deletes all disconnected nodes in the model.
Parameters:
aTarget EntList object containing the target node
aNodes EntList object containing the set of nodes to be merged to the target
node
aFusion specify True to disallow merges between nodes that are not on the
same element
Returns:
number of nodes merged
Example:
This example merges node N20 with N10.
Object CreateEntityList ( )
Creates an empty EntList object
Returns:
EntList object
Note:
When using this function, it will first ask for result invalidation. If you want to
select entities without checking result, use StudyDoc.CreateEntityList.
Parameters:
aTri1 EntList object containing the first triangle
aTri2 EntList object containing the second triangle
aFeatAllow specify True to permit modifications of feature
edges
Returns:
True if operation is successful; False otherwise
Example:
This example swaps the edge between triangles T22 and T23.
Parameters:
aNodes EntList object containing the nodes
aTolerance Tolerance
Returns:
True if successful
Example:
This example stitches free edges defined by a set of given nodes .
Returns:
EntList object containing the new node that is created
Example:
This example inserts a node between nodes N1 and N10.
Parameters:
aNode1 EntList object containing the first node of triangle
aNode2 EntList object containing the second node of triangle
aNode3 EntList object containing the third node of triangle
Returns:
EntList object containing the new node that is created
Example:
This example inserts a node in triangle.
Parameters:
aNode1 EntList object containing the first node of tetra
Returns:
EntList object containing the new node that is created
Example:
This example inserts a node in tetra.
Parameters:
aTet EntList object containing the tetra
Returns:
EntList object containing the new node that is
created
Example:
This example inserts a node in tetra.
Parameters:
aNode EntList object containing the nodes to be moved
aCoord Vector object that specifies the destination location or an offset
vector
aAbs specify True to specify a location and False to to specify an offset
vector
Returns:
True if operation is successful; False otherwise
Example:
Parameters:
aNode1 EntList object containing the first node
aNode2 EntList object containing the second node
aToAlign EntList object containing nodes that are to be aligned between
aNode1 and aNode2
Returns:
True if operation is successful; False otherwise
Example:
This example lines up node N10 between nodes N1 and N2.
Parameters:
aNodes EntList object containing nodes to be smoothed
aFeat specify True to preserve feature edges during
smoothing
Returns:
True if operation is successful; False otherwise
Example:
This example smooths nodes N1 to N100.
Parameters:
aFusion specify True if the mesh if for a fusion
model
Returns:
True if operation is successful; False otherwise
Example:
This example orients the current fusion mesh.
Parameters:
aEnts EntList object containing the triangles whose normals are to be
flipped
Returns:
True if operation is successful; False otherwise
Example:
This example flips all triangle normals.
Parameters:
aSeed EntList object containing the "seed" triangle
aEnts EntList object containing the triangles that are to be
oriented
Returns:
number of triangles flipped
Example:
This example aligns normals of triangles T2 T3 and T4 with T1.
Parameters:
aNodes EntList object containing an ordered sequence of nodes defining the
outer boundary of the hole
Returns:
True if operation is successful; False otherwise
Example:
This example fills a hole defined by the nodes N2515, N2522, N1662 and N2510.
Parameters:
aNode1 First node
aNode2 Second node
aNode3 Third node
aNode4 Fourth node
aPropSet Property set
Returns:
Tetra created
Example:
This example creates a tetra with given nodes
EntList.SelectFromString "N112 "
EntList_1.SelectFromString "N397 "
EntList_2.SelectFromString "N68 "
Parameters:
aTetRefLayerID Layer ID of tetras
aNumLayers Number of layers
aRefineSurface whether to refine
surface mesh
aSurfaceEdgeLength Surface mesh edge
length
Returns:
True if operation is successful; False
otherwise
Example:
This example refines tetras layer
Set MeshEditor = Synergy.MeshEditor()
Set EntList = MeshEditor.CreateEntityList()
MeshEditor.RefineTetras 5, 6, True, 0.002195
Parameters:
aNode1...aNode6 Six given nodes
aPropSet Property set
Returns:
Wedge created
Example:
This example creates a wedge with given nodes
EntList.SelectFromString "N112 "
EntList_1.SelectFromString "N397 "
EntList_2.SelectFromString "N68 "
EntList_3.SelectFromString "N439 "
EntList_4.SelectFromString "N432 "
Parameters:
List of wedges
aNumLayers Number of layers
Returns:
True if operation is successful; False
otherwise
Example:
This example refines tetras layer
Set MeshEditor = Synergy.MeshEditor()
Set EntList = MeshEditor.CreateEntityList()
MeshEditor.ConvertWedgesToTetras 5, 6
Parameters:
aNode1 EntList object containing the first node
aNode2 EntList object containing the second node
aNode3 EntList object containing the third node
aPropSet Property object that will be assigned to the triangle
Returns:
EntList object containing the triangle that is created
Note:
If aPropSet is Nothing, it uses the property set assigned to its
neighbors
Example:
This example creates a triangle using node N10, N9 and N7.
Parameters:
aNode1 EntList object containing the first node
aNode2 EntList object containing the second node
aNum number of beams to be created
aPropSet Property object that will be assigned to the
beams
Returns:
EntList object containing the list of beams that were
created
Example:
This example create one beam between nodes N1 and N2.
Parameters:
aEnts EntList object containing entities to be deleted
Returns:
EntList object containing entities that were not deleted
Note:
If you attempt to delete nodes that are referenced by elements or boundary
conditions, these will not be deleted. You would need to delete the dependent
entities first
Example:
This example deletes the beam B4.
Parameters:
aEnts EntList object containing triangles to be remeshed
aSize target mesh size
Returns:
True if operation is successful; False otherwise
Example:
This example remeshes triangles T13, T14 and T15 with target size
1.52.
Parameters:
aNode EntList object containing nodes to be matched
aTris EntList object containing triangles defining the other side
aLayer name of the layer to which newly created nodes will be addigned.
Specify an empty string ("") to create nodes in the currently active
layer.
Returns:
number of nodes affected
Example:
This example matches nodes to the given triangles
Set MeshEditor = Synergy.MeshEditor()
Set EntList = MeshEditor.CreateEntityList()
Set EntList_1 = MeshEditor.CreateEntityList()
EntList.SelectFromString "N1006 N1468 N1545 "
EntList_1.SelectFromString "T1867 T1926 T2021 T2023 T2797 T2817 T2818 T2950 T2974 T3046
MeshEditor.MatchNodes EntList, EntList_1, ""
Parameters:
aTol specifies planar or angular tolerance
aIsAngular specify True to check angular tolerance when merging triangles
and False to specify a planar tolerance
Returns:
number of regions created
Example:
This example creates a regions from triangles using an angular tolerance 0.1.
Parameters:
aTol specifies planar or angular tolerance
aIsAngular specify True to check angular tolerance when merging triangles
and False to specify a planar tolerance
aMesh specify True to convert mesh to regions and False to convert STL
aPropSet property to set the region (for STL only)
Returns:
number of regions created
Example:
This example creates a regions from STL using an angular tolerance 0.1.
Parameters:
aMovingNode EntList object containing the beam node to be
moved
aTargetCoord Vector object containing the destination point
Returns:
True if operation is successful; False otherwise
Example:
This example moves the beam node N152 to the following
position.
Parameters:
aNode EntList object containing the node to be moved
aEdgeNode1 EntList object containing the first node on the edge
aEdgeNode2 EntList object containing the second node on the edge
aParamLoc parametric location on the edge between 0.0 and 1.0, where
0.0 is the location of the first edge node and 1.0 is the location
of the second edge node
Returns:
True if operation is successful; False otherwise
Example:
This example moves the node N1 to mid-point of the edge N10-N11.
Parameters:
aEnts EntList object containing triangles to be remeshed
aSize target mesh size
aSmooth whether to smooth
Example:
This example remeshes triangles T13, T14 and T15 smoothly with target size
1.52.
Parameters:
aPt1 Vector object containing the first point
aPt2 Vector object containing the second point
aNum number of beams to be created
aPropSet Property object that will be assigned to the beams
Returns:
EntList object containing the list of beams that were created
Example:
This example create one beam between two points P1 and P2.
Parameters:
aTris Triangles to be projected
Returns:
True if operation is successful; False otherwise
Example:
This example projects triangle T1 T2 T3to
geometry.
Parameters:
aStartNodes Node to start
aPropSet Property set for the new beams
aJunction Whether have junction
aNumBranch Number of branches
Returns:
True if operation is successful; False otherwise
Example:
This example converts elements to beams starting with
N9.
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
Boolean Generate ()
Boolean SaveOptions ()
Public Attributes
double EdgeLength
Edge length target for the mesh.
double MergeTolerance
Merge tolerance; nodes within this tolerance will be merged after meshing.
Boolean Match
Enables/disables matched meshing for fusion models.
Boolean Smoothing
Specifies whether node positions will be smoothed.
Boolean ElementReduction
Enables/disables automatic element size determination for fusion meshes from faceted
geometry.
Boolean TetraRefine
Enables/disables tetrahedral refinement for 3D meshes.
long TetraLayers
Number of layers through thickness for tetrahedral meshes.
double TetraMaxAR
Limit on aspect ratio for tetrahedral meshes.
long MaximumMatchDistanceOption
Specifies the option to determine the limit on max match dist.
double MaximumMatchDistance
Limit on match distance for wedges.
Boolean UseTetrasOnEdge
Boolean RemeshAll
Specifies whether previously meshed portions of the model will be re-meshed.
Boolean UseActiveLayer
Specifies whether the newly generated mesh will be pushed into the active layer.
Boolean PostMeshActions
Specifies whether post-meshing actions such as smoothing are enabled.
double ChordHeight
Chord height value.
Boolean ChordHeightControl
Specifies whether using chord height.
long NurbsMesher
Specifies nurbs mesher algorithm using default(0) or Advancing Front(1).
Boolean AutomaticTetraOptimization
Specifies whether optimizing tetras automatically.
String SourceGeomType
Specifies Source Geometry Type.
Boolean ChordHtProximity
Specifies whether using chord height proximity.
Boolean MergeCavityRunner
Specifies whether merging cavity runner.
Detailed Description
You can use this class to create a midplane, fusion or 3D mesh in the model.
See also:
Synergy::MeshGenerator
Boolean Generate ( )
Generates a mesh in the model
Returns:
Public Attributes 97
MPI Application Programming Interface
True if the mesh was generated successfully; False
otherwise
Example
This example generates a mesh using default parameters:
Boolean SaveOptions ( )
Save mesh options
Returns:
True if operation is successful; False
otherwise
Example
This example saves mesh options:
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Attributes
double MinAspectRatio
Minimum aspect ratio.
double MaxAspectRatio
Maximum aspect ratio.
double AveAspectRatio
Average aspect ratio.
long FreeEdgeCount
Free edge count.
long ManifoldEdgeCount
Manifold edge count.
long NonManifoldEdgeCount
Non-manifold edge count.
long TrianglesCount
Number of triangles.
long TetrasCount
Number of Tetras.
long NodesCount
Number of nodes.
long BeamsCount
Number of beams.
long ConnectivityRegions
Number of connectivity regions.
long Unoriented
Unoriented elements count.
long IntersectionElements
long OverlapElements
Overlap elements count.
long DuplicatedBeams
Duplicated beams count.
double MatchRatio
Mesh match ratio.
double MeshVolume
Mesh volume.
double RunnerVolume
Runner volume.
long ZeroTriangles
Number of zero area triangles.
long ZeroBeams
Number of zero length beams.
double FusionArea
Fusion area.
Detailed Description
You can use this class to mesh summary value such as min, max or average of aspect
ratios, number of entities, connected region, free edges count, match ratio etc.
See also:
DiagnosisManager::GetMeshSummary
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
Boolean Generate ()
Public Attributes
long NumCavities
Number of cavities desired.
Boolean ByColumns
Specify True to arrange by columns; False to arrange byrows.
long NumCols
Number of columns; relevant only if ByColumns is set to True.
long NumRows
Number of rows; relevant only if ByColumns is set to False.
double XSpacing
Spacing in the X direction.
double YSpacing
Spacing in the Y direction.
Boolean AlignGates
Specify True to position cavities so that their gates are aligned.
Detailed Description
You can use this class to duplicate model cavities
See also:
Synergy::ModelDuplicator
Boolean Generate ( )
Duplicates cavities
Returns:
True if the operation succeeded; False otherwise
Example
This example generates cavities using the following
parameters.
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
Object CreateNodeByXYZ (Object aCoord)
Object CreateNodesBetween (Object aStart, Object aEnd, long aNum)
Object CreateNodesByOffset (Object aCoord, Object aOffset, long aNum)
Object CreateNodesByDivide (Object aCurve, long aNum, Boolean aEnds)
Object CreateEntityList ()
Object CreateNodeByIntersect (Object aCurv1, Object aCurv2, Object aPt)
Object CreateLine (Object aCoord, Object aVec, Boolean aRelative, Object aPropSet,
Boolean aEndPts)
Object CreateArcByAngle (Object aCenter, double aRadius, double aStart, double
aEnd, Object aPropSet, Boolean aEndPts)
Object CreateArcByPoints (Object aPt1, Object aPt2, Object aPt3, Boolean aCircle,
Object aPropSet, Boolean aEndPts)
Object FindProperty (long aType, long aID)
Object CreateCurveByConnect (Object aCurv1, double aEnd1, Object aCurv2, double
aEnd2, double aFactor, Object aPropSet)
Object CreateSpline (Object aCoords, Object aPropSet, Boolean aEndPts)
Boolean BreakCurves (Object aCurv1, Object aCurv2)
Object CreateRegionByBoundary (Object aCurves, Object aPropSet)
Object CreateRegionByNodes (Object aNodes, Object aPropSet)
Object CreateRegionByRuling (Object aCurves1, Object aCurves2, Object aPropSet)
Object CreateRegionByExtrusion (Object aCurve, Object aDir, Object aPropSet)
Boolean CreateHoleByBoundary (Object aRegion, Object aCurves)
Boolean CreateHoleByNodes (Object aRegion, Object aNodes)
Boolean Reflect (Object aEnts, Object aRefPt, Object aPlane, Boolean aCopy, Boolean
aMerge)
Boolean Scale (Object aEnts, Object aRefPt, Object aScale, Boolean aCopy, Boolean
aMerge)
Boolean Translate (Object aEnts, Object aVec, Boolean aCopy, long aNumCopies,
Boolean aMerge)
Boolean Rotate (Object aEnts, Object aCenter, Object aAxis, double aAngle, Boolean
aCopy, long aNumCopies, Boolean aMerge)
Boolean Rotate3Pts (Object aEnts, Object aPt1, Object aPt2, Object aPt3, Boolean
aCopy, Boolean aMerge)
Object CreateLCSByPoints (Object aCoord1, Object aCoord2, Object aCoord3)
Boolean ActivateLCS (Object aLCS, Boolean aActivate, String aType)
Object CreateBoundaryList ()
Boolean SetMeshSize (Object aEnts, Object aBoundaries, double aSize)
Boolean ScaleMeshDensity (Object aEnts, Object aBoundaries, double aScale)
Detailed Description
You can use this class to create nodes, lines, curves, regions and local coordinate
systems. You can also move or copy all entities by translation, rotation, reflection and
scaling operations.
See also:
Synergy::Modeler
Parameters:
aCoord Vector object that specifies the coordinates at which the node will be
created
Returns:
EntList object containing the node that is created
See also:
CreateNodesBetween , CreateNodesByOffset , CreateNodeByIntersect ,
CreateNodesByDivide
Example:
This example creates a node at (10 ,100 ,0).
Parameters:
aStart Vector object that specifies the coordinates of the first point
aEnd Vector object that specifies the coordinates of the second point
aNum number of nodes to be created
Returns:
EntList object containing the nodes that were created
Example:
This example creates a node at the mid-point of (10 ,100 ,0) and (100 ,10
,0).
Parameters:
aCoord Vector object that specifies the reference point
aOffset Vector object that specifies the offset vector
aNum number of nodes to be created
Returns:
EntityList object containing the nodes that were created
See also:
CreateNodeByXYZ , CreateNodesBetween , CreateNodeByIntersect ,
CreateNodesByDivide
Example:
This example creates node at (110, 100, 0), which is (100, 0, 0) offset
from (10, 100, 0).
Parameters:
aCurv EntList object that specifies the curve to be divided
Returns:
EntityList object containing the nodes that were created
See also:
CreateNodeByXYZ , CreateNodesByOffset , CreateNodeByIntersect ,
CreateNodesBetween
Example:
This example creates 3 nodes by dividing curve C2.
Object CreateEntityList ( )
Creates an empty EntList object
Returns:
EntList object
Note:
When using this function, it will first ask for result invalidation. If you want to
select entities without checking result, use StudyDoc.CreateEntityList.
Example:
See also:
Modeler::CreateCurveByConnect
Parameters:
aCurv1 EntList object that specifies the first curve
aCurv2 EntList object that specifies the second curve
aPt Vector object that specifies a point close to the intersection point.
This parameter is used to make a unique choice if there are multiple
intersections
Returns:
EntList object containing the nodes that were created
See also:
Example:
This example creates a node at intersection point of curves C1 and C2.
Parameters:
aCoord Vector object that specifies the coordinates of the first point
aVec Vector object that specifies the coordinates of the second point or
an offset vector
aRelative specify False if aVec specifies the coordinates of the second point
and True if aVec specifies an offset that will be added to the first
point to obtain the second
aPropSet Property object that will be assigned to the line
aEndPts specifies whether nodes need to be created at the ends of the line
Returns:
EntList object containing the line that is created
See also:
FindProperty
Example:
This example creates a line from (110, 100, 0) to (45, 55, 0).
Parameters:
aCenter Vector object that specifies the coordinates of the center of the arc
aRadius radius of the arc
aStart start angle
aEnd end angle
aPropSet Property object that will be assigned to the arc
aEndPts specifies whether nodes need to be created at the ends of the arc
Returns:
EntList object containing the arc that is created
See also:
CreateArcByPoints , FindProperty
Example:
This example creates an arc centered at (45, 55, 0) with a radius of 50; the
start angle is 0 degrees and the end angle is 60 degrees.
Parameters:
aPt1 Vector object that specifies the coordinates of the first point
aPt2 Vector object that specifies the coordinates of the second point
aPt3 Vector object that specifies the coordinates of the third point
aCircle specify True to create a circle and False to create an arc between the
first and third points, respectively
aPropSet Property object that will be assigned to the arc
aEndPts specifies whether nodes need to be created at the ends of the arc
See also:
CreateArcByAngle , FindProperty
Example:
This example create a circle passing through the following three points.
Parameters:
aType property type
aID property id
Returns:
Property object of the given type and id
Example:
This example finds the property of type 40420 (cold runner) and
id 1.
Parameters:
aCurv1 EntList object containing the first curve
aEnd1 specify 0 to choose the beginning of the first curve or 1 to choose
its end
aCurv2 EntList object containing the second curve
Returns:
EntList object containing the curve that is created
See also:
FindProperty
Example:
This example creates a curve that connects curves C17 and C25.
Parameters:
aCoords VectorArray object containing the points that define the spline
aPropSet Property object that will be assigned to the spline
aEndPts specifies whether nodes need to be created at the ends of the
spline
Returns:
EntList object containing the spline that is created
See also:
FindProperty
Example:
This example creates a spline.
Parameters:
aCurv1 EntList object containing the first
curve
aCurv2 EntList object containing the second
curve
Returns:
True if operation is successful; False
otherwise
Example:
This example breaks curve C1 and C8.
Parameters:
aCurves EntList object containing the boundary curves
aPropSet Property object that will be assigned to the region
Returns:
EntList object containing the region that is created
See also:
CreateRegionByNodes , CreateRegionByRuling , CreateRegionByExtrusion ,
FindProperty
Example:
This example creates a region using the curves C8, C1 and C7.
Parameters:
aNodes EntList object containing the boundary nodes
aPropSet Property object that will be assigned to the region that is created
Returns:
EntList object containing the region that is created
See also:
CreateRegionByBoundary , CreateRegionByRuling , CreateRegionByExtrusion
, FindProperty
Example:
This example creates a region using the nodes N14, N9, N4, N8 and N6.
Parameters:
aCurves1 EntList object containing the first set of curves
aCurves2 EntList object containing the second set of curves
aPropSet Property object that will be assigned to the region
Returns:
EntList object containing the region that is created
See also:
CreateRegionByNodes , CreateRegionByBoundary , CreateRegionByExtrusion
, FindProperty
Example:
This example creates a region by a ruling operation between curve C5 and C4.
Parameters:
aCurve EntList object containing a set of curves
aDir Vector object defining the extrusion vector
aPropSet Property object that will be assigned to the region
Returns:
EntList object containing the region that is created
See also:
CreateRegionByNodes , CreateRegionByBoundary , CreateRegionByRuling ,
FindProperty
Example:
This example creates a region by extruding C7 along the vector <ttt>(15, 0,
0).
Parameters:
aRegion EntList object containing the region
aCurves EntList object containing the boundary curves for the hole
Returns:
True if the hole was created; False if the operation failed.
See also:
CreateHoleByNodes
Example:
This example creates a hole on region R3 using C8, C10, C1 and C7.
Parameters:
aRegion EntList object containing the region
aNodes EntList object containing the boundary nodes for the hole
Returns:
True if the hole was created; False if the operation failed.
See also:
CreateHoleByBoundary
Example:
This example creates a hole on region R4 using N13, N10, N3.
Parameters:
aEnts EntList object containing the entities to be reflected
aRefPt Vector object that specifies the reference point
aPlane Vector object that specifies the normal to the plane about which the
entities are to be reflected
aCopy specify True to copy entities; False to move them
aMerge specify True to merge nodes after the reflect operation
Returns:
True if operation is successful; False otherwise
Example:
This example copies C6 by reflecting it about the YZ plane.
Parameters:
aEnts EntList object containing the entities to be scaled
aRefPt Vector object that specifies the reference point
aScale Vector object that specifies the scale factors in the three coordinate
directions
aCopy specify True to copy entities; False to move them
aMerge specify True to merge nodes after the reflect operation
Returns:
True if operation is successful; False otherwise
Example:
This example scales the curve C6 by a factor of 1.5 in all directions.
Parameters:
aEnts EntList object containing the entities to be
translated
aVec Vector object that specifies the translation
aCopy specify True to copy entities; False to move them
aNumCopies for a copy operation, the number of copies to be
made
aMerge
Returns:
True if operation is successful; False otherwise
Example:
This example translates node N13, curves C4, C5 and regions R4,
R3.
Parameters:
aEnts EntList object containing the entities to be
rotated
aCenter Vector object that specifies the center of
rotation
aAxis Vector object that specifies that axis of rotation
aAngle rotation angle
aCopy specify True to copy entities; False to move
them
aNumCopies the number of copies to translate
aMerge specify True to merge nodes after the reflect
operation
Returns:
True if operation is successful; False otherwise
Example:
This example rotates region R5 about the X axis.
Parameters:
aEnts EntList object containing the entities to be rotated
aPt1 First point
aPt2 Second point
aPt3 Third point
aCopy specify True to copy entities; False to move them
aNumCopies the number of copies to translate
aMerge specify True to merge nodes after the reflect
operation
Returns:
True if operation is successful; False otherwise
Example:
This example rotates a triangle based on three points.
Parameters:
aCoord1 Vector object that specifies the first point
aCoord2 Vector object that specifies the second point; specify Nothing if you
want to use only one point
aCoord3 Vector object that specifies the third point; specify Nothing if you
want to use only two points
Example:
This example creates a local coordinate systems using the three points below.
Parameters:
aLCS EntList object that specifies the local coordinate system that will be
(de-)activated
aActive specify True to activate and False to de-activate the LCS
aType specify "LCS" to activate as a coordinate system and "Plane" tp
activate as a modeling plane. This parameter is ignored if an LCS is
being de-activated
Returns:
True if operation is successful; False otherwise
Example:
This example activates LCS1 as a modeling plane.
Object CreateBoundaryList ( )
Creates a BoundaryList object
Returns:
BoundaryList object
Example:
See also:
Modeler::SetMeshSize
)
Set the mesh size on a set of entities
Parameters:
aEnts EntList object containing the entities to be set mesh size
aBoundaries BoundaryList object containing boundary list to be set mesh
size
aSize mesh size
Returns:
True if operation is successful; False otherwise
Example:
This example sets region R54 remesh size to 1.5
Set Modeler = Synergy.Modeler()
Set EntList = Modeler.CreateEntityList()
Set BoundaryList = Modeler.CreateBoundaryList()
EntList.SelectFromString "R54 "
BoundaryList.SelectFromString ""
Modeler.SetMeshSize EntList, BoundaryList, 1.5
Parameters:
aEnts EntList object of given entities
aBoundaries BoundaryList object
aScale scale value
Returns:
True if operation is successful; False otherwise
Example:
This example reduces mesh density by half.
Public Methods
Boolean Generate ()
Public Attributes
Boolean Centered
Specifies whether the mold surface should be centered around your model.
Object Origin
If you set the above to False, specify a center for the mold surfaceusing this parameter.
Object Dimensions
Vector object that specifies the mold dimensions in the X, Y, and Z directions.
Detailed Description
You can use this class to automatically generate a mold surface boundary in your
model
See also:
Synergy::MoldSurfaceGenerator
Boolean Generate ( )
Generates mold surfaces
Returns:
True if the operation succeeded; False otherwise
Example:
This example generates mold surfaces using the following
parameters.
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
Regenerate ()
long GetNumberOfFrames ()
SetNumberOfFrames (long aNbFrames)
String GetName ()
SetName (String aName)
long GetNumberOfContours ()
SetNumberOfContours (long aNbCountours)
long GetComponent ()
SetComponent (long aComponent)
double GetMeshFill ()
SetMeshFill (double aFill)
Boolean GetNodalAveraging ()
SetNodalAveraging (Boolean aNodeAvg)
Boolean GetSmoothShading ()
SetSmoothShading (Boolean aSmooth)
Boolean GetColorScale ()
SetColorScale (Boolean aColorScale)
Boolean GetCapping ()
SetCapping (Boolean aCapping)
long GetScaleOption ()
SetScaleOption (long aScaleOption)
long GetPlotMethod ()
SetPlotMethod (long aPlotMethod)
long GetAnimationType ()
SetAnimationType (long aType)
long GetNumberOfIndpVars ()
long GetActiveIndpVar ()
SetActiveIndpVar (long aIndpVar)
SetFixedIndpVarValue (long aIndex, double aValue)
Boolean GetExtendedColor ()
SetExtendedColor (Boolean aExtendedColor)
SetColorBands (long aNbColors)
long GetColorBands ()
Boolean GetXYPlotShowLegend ()
SetXYPlotShowLegend (Boolean aShowL)
Boolean GetXYPlotShowPoints ()
SetXYPlotShowPoints (Boolean aShowP)
SetXYPlotOverlayWithMesh (Boolean aOverlay)
Detailed Description
You can use this class to manipulate plots in your study. Plots are created or obtained
using the PlotMgr class
See also:
PlotMgr::GetFirstPlot , PlotMgr::GetNextPlot , PlotMgr::CreatePlotByDsID ,
PlotMgr::CreatePlotByName , PlotMgr::CreateXYPlotByName ,
Viewer::ShowPlot , Viewer::HidePlot , Viewer::OverlayPlot , Viewer::GetPlot
Regenerate ( )
Rebuilds the plot
Example
This example regenerates
plot.
Plot.SetScaleOption 1
long GetNumberOfFrames ( )
Gets total number of frames in the plot
Returns:
total number of frames
See also:
SetNumberOfFrames
Example:
This example gets the number of
frames
nFrames = Plot.GetNumberOfFrames()
Parameters:
aNewValue number of animation frames
See also:
GetNumberOfFrames This example set the number of animation frames to be
4 (for min/max animation only)
Example:
This example sets number of frames to be 4
Plot.SetNumberOfFrames 4
String GetName ( )
Gets name of the plot
Returns:
name of the plot
See also:
SetName
Example:
This example returns plot
name
strName = Plot.GetName()
Parameters:
aName name of the plot
Example:
This example set plot name to "My Fill Time
Result"
Plot.SetName "My Fill Time Result"
long GetNumberOfContours ( )
Gets number of plot contours
Returns:
number of plot contours
See also:
SetNumberOfContours
Example:
This example gets number of
contours.
nContours = Plot.GetNumberOfContours()
Parameters:
aNbCountours number of plot contours
See also:
GetNumberOfContours
Example:
This examples set number of contour to
be 5.
Plot.SetNumberOfContours 5
long GetComponent ( )
Gets displayed data component
Returns:
data component
• 0: X component of vectors or 11 component of
tensors
• 1: Y component of vectors or 22 component of
tensors
• 2: Z component of vectors or 33 component of
tensors
• 3: magnitude of vectors or 12 component of
tensors
• 4: 23 component of tensors
See also:
SetComponent
Example:
This example returns data component.
nNumber = Plot.GetComponent()
Parameters:
aComponent data component
See also:
GetComponent
Example:
This example set to use component 1 to colot the
plot
Plot.SetComponent 1
double GetMeshFill ( )
Gets mesh fill option
Returns:
mesh fill value The value changes from 0 to 1, stands for plot
opacity
See also:
SetMeshFill
Example:
This example returns mesh fill value.
dMesh = Plot.GetMeshFill()
Parameters:
aMeshFill mesh fill option
See also:
GetMeshFill
Example:
Boolean GetNodalAveraging ( )
Gets nodal averaging option
Returns:
nodal averaging option
See also:
SetNodalAveraging
Example:
This example gets nodal averaging
option.
isAve = Plot.GetNodalAveraging
Parameters:
aNodalAvg nodal averaging option
See also:
GetNodalAveraging
Example:
This example set the plot not to use nodal
averaging
Plot.SetNodalAveraging False
Boolean GetSmoothShading ( )
Gets smooth (Gouraud) shading option
Returns:
True if smooth shading is on
See also:
SetSmoothShading
Example:
This example gets smooth sharding
options.
isAve = Plot.GetSmoothShading
Parameters:
See also:
GetSmoothShading
Example:
This example sets smooth shading option to
false.
Plot.SetSmoothShading False
Boolean GetColorScale ( )
Gets color scale
Returns:
True if color scale is from blue-to-red; False if
vice-versa
See also:
SetColorScale
Example:
This example gets color scale option.
isScale = Plot.GetColorScale
Parameters:
aColorScale color scale
See also:
GetColorScale
Example:
This example sets color scale option to
False.
Plot.SetColorScale False
Boolean GetCapping ( )
Gets "capping" option in 3D clipping-plane plots
Returns:
True if the part of model behide active cutting planes is shown in addition to
the clipping plane
See also:
SetCapping
Example:
This example gets plot capping options.
isScale = Plot.GetCapping
Parameters:
aCapping Capping plane option
See also:
GetCapping
Example:
This example set plot Capping option.
Plot.SetColorScale True
long GetScaleOption ( )
Gets scale option
Returns:
scale option
• 0: automatic scaling over all frames
• 1: automatic scaling with colors scaled per animation
frame
• 2: specified (manual) scaling
See also:
SetScaleOption
Example:
This example gets scale option.
scale = Plot.GetScaleOption
Parameters:
aScale scale option
See also:
GetScaleOption
Example:
This example sets scale option
to 1.
Plot.SetScaleOption 1
long GetPlotMethod ( )
Gets plot method
Returns:
plot method
• 1: Deflection plot
See also:
SetPlotMethod
Parameters:
aPlotMethod plot method
See also:
GetPlotMethod
Example:
This example set to use contour
method
Plot.SetPlotMethod 4
long GetAnimationType ( )
Gets animation type
Returns:
animation type
• 0: frame animation(e.g. Average
Velocity)
• 1: min-max animation(e.g. Fill
Time)
See also:
SetAnimationType
Example:
This example gets animation type.
aType = Plot.GetAnimationType
Parameters:
aType animation type
See also:
GetAnimationType
Example:
This example sets animation type to 1.
Plot.SetAnimationType 1
long GetNumberOfIndpVars ( )
Gets number of independent variables in the data
Returns:
number of independent variables
Example:
This example returns number of independent
variables.
nVar = Plot.GetNumberOfIndpVars()
long GetActiveIndpVar ( )
Gets active independent variable (the one over which animation
is performed)
Returns:
active independent variable
See also:
SetActiveIndpVar
Example:
This example gets active independent variable.
nVar = Plot.GetActiveIndpVar()
Parameters:
aIndpVar active independent variable
See also:
SetActiveIndpVar
Example:
This example set active indenpedent variable
to 1.
Plot.SetActiveIndpVar 1
Parameters:
aIndex specifies which independent variable is being
specified
aValue independent variable value
Example:
This example sets fixed indenpedent variable.
Plot.SetFixedIndpVar 0
Boolean GetExtendedColor ( )
Gets extended color option
Returns:
True if extended coloring is on
See also:
SetExtendedColor
Example:
This example gets extended color
option.
exOn = Plot.GetExtended
Parameters:
aExtendedColor extended coloring option
See also:
GetExtendedColor
Example:
This example sets extended color option to be
True.
Plot.SetExtendedColor True
Parameters:
aNbColors number of colors
See also:
GetColorBands
long GetColorBands ( )
Gets number of color bands or smooth coloring
Returns:
number of color bands
• values between 2 through 64: banded coloring with this number of
colors
• 256: smooth coloring
See also:
SetColorBands
Example
This example gets color bands.
colBands = Plot.GetColorBands
Boolean GetXYPlotShowLegend ( )
Gets XY plot legend display option
Returns:
returns True if the legend is shown
See also:
SetXYPlotShowLegend
Example:
This example gets option whether to show XY plot
legend.
show = Plot.GetXYPlotShowLegend
Parameters:
aShowL legend display option
See also:
GetXYPlotShowLegend
Example:
This example sets option to not show XY plot
legend.
Plot.SetXYPlotShowLegend False
Boolean GetXYPlotShowPoints ( )
Gets option to display points in XY plots
See also:
SetXYPlotShowPoints
Example:
This example get option whether to display points in XY
plots.
show = Plot.GetXYPlotShowPoints
Parameters:
aShowP display option
See also:
GetXYPlotShowPoints
Example:
This example set option to display points in XY
plot.
Plot.SetXYPlotShowPoints True
Parameters:
aOverlay overlay option
See also:
GetXYPlotOverlayWithMesh
Example:
This example sets XY plot overlay option to be
True.
Plot.SetXYPlotOverlayWithMesh True
Boolean GetXYPlotOverlayWithMesh ( )
Gets XY plot overlay option @Return True if plot is overlaid with the model
See also:
SetXYPlotOverlayWithMesh
Example:
This example get XY plot overlay options.
withMesh = Plot.GetXYPlotOverlayWithMesh
long GetXYPlotMaxNumberOfCurves ( )
Returns:
maximum number of curves
See also:
SetXYPlotMaxNumberOfCurves
Example:
This example gets XY plot maximum number of
curves.
maxCur = Plot.GetXYPlotMaxNumberOfCurves
Parameters:
aNbCurves maximum number of curves
See also:
GetXYPlotMaxNumberOfCurves
Example:
This example set maximum number of curves of XY plot to
be 5.
Plot.SetXYPlotMaxNumberOfCurves 5
Parameters:
aAutoRX range
See also:
GetXYPlotAutoRangeX
Example:
This example sets automatic X range
option.
Plot.SetXYPlotAutoRangeX True
Boolean GetXYPlotAutoRangeY ( )
Sets automatic Y range option in XY plots
Parameters:
aAutoRY range
See also:
SetXYPlotAutoRangeY
Boolean GetXYPlotAutoRangeX ( )
Gets automatic X range option in XY plots
Returns:
True if the X range is determined
automatically
See also:
SetXYPlotAutoRangeX
Example
This example gets automatic X range
option.
autoX = Plot.GetXYPlotAutoRangeX
Returns:
True if the Y range is determined automatically
See also:
GetXYPlotAutoRangeY
Example
This example sets automatic Y range option to be
True.
Plot.SetXYPlotAutoRangeY True
String GetXYPlotTitleX ( )
Gets X axis title
Returns:
X axis title
See also:
GetXYPlotTitleY
Example:
This example gets X axis
title.
xTitle = Plot.GetXYPlotTitleX
String GetXYPlotTitleY ( )
Gets Y axis title
See also:
GetXYPlotTitleX
Example
This example gets Y axis
title.
yTitle = Plot.GetXYPlotTitleY
Parameters:
aTitle plot title
Example:
This example sets XY Plot title to be
"Thickness".
Plot.SetXYPlotTitle "Thickness"
Parameters:
aXTitle X axis title
See also:
SetXYPlotTitleY , GetXYPlotTitleX
Example:
This example sets X axis title to be "Normalized
Thickness".
Plot.SetXYPlotTitleX "Normalized Thickness"
Parameters:
aYTitle Y axis title
See also:
GetXYPlotTitleY , SetXYPlotTitleX
Example:
This example sets Y axis title to be "Pressure
Trace".
Plot.SetXYPlotTitleY "Pressure Trace"
double GetMinValue ( )
Gets minimum value of plotted range
Returns:
minimum value
See also:
SetMinValue
Example:
This example gets minimum value of plotted
range.
minV = Plot.GetMinValue
Parameters:
aMinValue minimum value
See also:
GetMinValue
Example:
This example set minimum value of plotted range to be
0.5.
Plot.SetMinValue 0.5
double GetMaxValue ( )
Gets maximum value of plotted range
Returns:
Maximum value
See also:
GetMinValue , SetMaxValue
Example:
This example gets maximum value of plotted
range.
maxV = Plot.GetMaxValue
Parameters:
aMaxValue maximum value value
See also:
SetMinValue , GetMaxValue
double GetXYPlotMinX ( )
Gets minimum X for XY plots
Returns:
minimum X value
Example:
This example gets minimum X
value.
minX = Plot.GetXYPlotMinX()
double GetXYPlotMaxX ( )
Gets maximum X for XY plots
Returns:
maximum X value
Example:
This example gets maximum X
value.
maxX = Plot.GetXYPlotMaxX()
double GetXYPlotMinY ( )
Gets minimum Y for XY plots
Returns:
minimum value
Example:
This example gets minimum Y
value.
minY = Plot.GetXYPlotMinY()
double GetXYPlotMaxY ( )
Gets maximum Y for XY plots
Returns:
maximum value
Example:
This example gets maximum Y
value.
maxY = Plot.GetXYPlotMaxY()
Parameters:
aMinX minimum value
Example:
This example set minimum X value to
be 15.
Plot.SetXYPlotMinX 15
Parameters:
aMaxX maximum value
Example:
This example sets maximum X value to be
150.
Plot.SetXYPlotMaxX 150
Parameters:
aMinY minimum value
Example:
This example sets minimum Y value to
be 15.
Plot.SetXYPlotMinY 15
Parameters:
aMaxY maximum value
Example:
This example sets maximum Y to be
150.
Plot.SetXYPlotMaxY 150
double GetXYPlotLegendRectLeft ( )
Gets the XY plot legend left position
Returns:
left position
Example:
double GetXYPlotLegendRectBottom ( )
Gets the XY plot legend bottom position
Returns:
bottom position
Example:
This example gets XY plot legend bottom
position.
recBot = Plot.GetXYPlotLegendBottom
double GetXYPlotLegendRectWidth ( )
Gets the XY plot legend width
Returns:
width
Example:
This example gets XY plot legend
width.
recWidth = Plot.GetXYPlotLegendWidth
double GetXYPlotLegendRectHeight ( )
Gets the XY plot legend height
Returns:
height
Example:
This example gets XY plot legend
height.
recHeight = Plot.GetXYPlotLegendHeight
Parameters:
aLeft left position
Example:
This example sets XY plot legend left position to be
0.1.
Plot.SetXYPlotLegendLeft 0.1
Example:
This example sets XY plot legend bottom position to be
0.1.
Plot.SetXYPlotLegendBottom 0.1
Parameters:
aWidth width
Example:
This example sets XY plot legend width to be
0.5.
Plot.SetXYPlotLegendWidth 0.5
Parameters:
aHeight height
Example:
This example sets XY plot legend height to be
0.5.
Plot.SetXYPlotLegendHeight 0.5
String GetPlotType ( )
Gets plot type
Returns:
plot type, which is one
of:
• Highlight Plot
• XY Plot
• Vector Plot
• Tensor Plot
• XYZ Plot
• Shrink Check Plot
• Sink Mark Plot
• Contour Plot
Example:
This example gets plot
type.
type = Plot.GetPlotType
String GetNotes ( )
Gets plot notes
Returns:
plot notes
Example:
This examples gets plot
notes.
note = Plot.GetNotes
Parameters:
aNotes plot notes
Example:
This example sets plot notes to be "This is the fill-time plot for the model with
3 gates".
Plot.SetNote "This is the fill-time plot for the model with 3 gates"
Parameters:
aFilename XML file name
Example:
This example saves results in "c:\mpi
project\result.xml".
Plot.SaveResultInXML "c:\mpi project\result.xml"
Parameters:
aBaseFileName basename for the Patran results fileset; extensions will be
automatically added as required
Example:
This example saves results in "C:\mpi310-files
long GetXYPlotNumberOfCurves ( )
Gets number of curves of XY plot
Returns:
number of curves
Parameters:
aEntities curve objects to be
added
Parameters:
aEntities curve objects to be
deleted
Parameters:
aEdgeDisplay edge display option
• 0 - Off
• 1 - Feature edge
• 2 - Mesh edge
See also:
GetEdgeDisplay
Example:
This example sets edge display to
be 1.
Plot.SetEdgeDisplay( 1 )
long GetEdgeDisplay ( )
Gets edge display option
Returns:
• 0 - Off
• 1 - Feature edge
• 2 - Mesh edge
See also:
SetEdgeDisplay
Example:
This example gets edge display
option.
bEdge = Plot.GetEdgeDisplay()
long GetDataNbComponents ( )
Returns:
number of components, which could be 1, 3, or 6
Example:
This example gets number of components( =3 ) of "Average velocity"
plot
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.FindPlotByName("Average velocity")
Plot.GetDataNbComponents()
long GetDataID ( )
Gets data set ID
Returns:
data set ID
Example:
This example gets plot ID of "Pressure"
plot
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.FindPlotByName("Pressure")
Pid = Plot.GetDataID()
String GetDataType ( )
Gets data type string
Returns:
Data type string, which could be one of the
following
• LBDT
• LYDT
• NDDT
• ELDT
• NMDT
• TXDT
• HLDT
Example:
This example prints "NDDT" on screen
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.FindPlotByName("Pressure")
DType = Plot.GetDataType()
MsgBox DType
Boolean RestoreOriginalPosition ( )
Restores plot original position
Returns:
True if successful
Parameters:
aNodes EntityList object of nodes
Returns:
True if successful
Example:
This example applies best on a deflection plot
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.FindPlotByName("Deflection, all effects:Deflection")
Plot.ApplyBestFit Nothing
double GetDeflectionScaleFactor ( )
Get deflection scale factor
Returns:
deflection scale factor
Example:
This example gets deflection scale factor for a given plot
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.FindPlotByName("Deflection, all effects:Deflection")
val = Plot.GetDeflectionScaleFactor()
Parameters:
aFactor deflection scale factor
Example:
This example sets deflection scale factor for a given plot
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.FindPlotByName("Deflection, all effects:Deflection")
Plot.SetDeflectionScaleFactor 1.5
long GetDeflectionScaleDirection ( )
Get deflection scale direction
Returns:
deflection scale factor
0 -X
Example:
This example gets deflection scale direction for a given plot
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.FindPlotByName("Deflection, all effects:Deflection")
val = Plot.GetDeflectionScaleDirection()
Parameters:
aDir scale direction
0 -X
1 -Y
2 -Z
3 - All directions
Example:
This example sets deflection scale direction for a given plot
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.FindPlotByName("Deflection, all effects:Deflection")
Plot.SetDeflectionScaleDirection 3
Boolean GetDeflectionOverlayWithMesh ( )
Gets deflection overlay with mesh
Returns:
True if successful
Example:
This example gets the flag of deflection overlay with mesh
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.FindPlotByName("Deflection, all effects:Deflection")
flag = Plot.GetDeflectionOverlayWithMesh()
Parameters:
aOverlay True or False
Example:
This example sets the flag of deflection overlay with mesh to be
True
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.FindPlotByName("Deflection, all effects:Deflection")
Plot.SetDeflectionOverlayWithMesh True
Boolean GetDeflectionShowAnchorPlane ( )
Returns:
True if successful
Example:
This example gets the flag of deflection show anchor plane
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.FindPlotByName("Deflection, all effects:Deflection")
flag = Plot.GetDeflectionShowAnchorPlane()
Parameters:
aShow True or False
Example:
This example sets the flag of deflection show anchor plane to be
false
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.FindPlotByName("Deflection, all effects:Deflection")
Plot.SetDeflectionShowAnchorPlane False
Boolean WarpQueryBegin ( )
Start a warp query on a deflection plot
Returns:
TRUE if successful
Example:
This example queries on node 96 and node
358
Set Synergy = CreateObject("synergy.Synergy")
Set Viewer = Synergy.Viewer()
Set Plot = Viewer.ActivePlot()
Plot.WarpQueryBegin
Set DVec = Synergy.CreateDoubleArray()
Plot.WarpQueryNode 96, DVec
Plot.WarpQueryNode 358, DVec
Plot.WarpQueryEnd
WarpQueryEnd ( )
Ends a warp query on a deflection plot
Example:
This example queries on node 96 and node
358
Set Synergy = CreateObject("synergy.Synergy")
Set Viewer = Synergy.Viewer()
Set Plot = Viewer.ActivePlot()
Plot.WarpQueryBegin
Set DVec = Synergy.CreateDoubleArray()
Plot.WarpQueryNode 96, DVec
Parameters:
aNodeID node ID
aRetValues returned query values (node coordinates before and after
deflection, and displacements)
Returns:
TRUE if successful
Example:
This example queries on node 96 and node 358
Set Synergy = CreateObject("synergy.Synergy")
Set Viewer = Synergy.Viewer()
Set Plot = Viewer.ActivePlot()
Plot.WarpQueryBegin
Set DVec = Synergy.CreateDoubleArray()
Plot.WarpQueryNode 96, DVec
Plot.WarpQueryNode 358, DVec
Plot.WarpQueryEnd
long GetProbePlotNumberOfProbeLines ( )
Return number of probe lines in the probe plot
Returns:
Number of probe lines
Example:
This example retrieves number of probe lines of a given
plot
Set Synergy = CreateObject("synergy.Synergy")
Set Viewer = Synergy.Viewer()
Set probePlot = Viewer.ActivePlot()
nProbeLines = GetProbePlotNumberOfProbeLines
Parameters:
aIndex probe line index
aStartPt probe line start point
aEndPt probe line end point
Example:
This example gets the first proble line in the
plot
Set Synergy = CreateObject("synergy.Synergy")
Set PlotManager = Synergy.PlotManager()
Set Viewer = Synergy.Viewer()
Set probePlot = Viewer.ActivePlot()
Set VectorA = Synergy.CreateVector()
Set VectorB = Synergy.CreateVector()
Plot.GetProbePlotProbeLine 0, VectorA, VectorB
Parameters:
aStartPt probe line start point
aEndPt probe line end point
Returns:
TRUE if successful
Example:
This example adds a probe line to the
plot
Set Synergy = CreateObject("synergy.Synergy")
Set PlotManager = Synergy.PlotManager()
Set Viewer = Synergy.Viewer()
Set probePlot = Viewer.ActivePlot()
Set VectorA = Synergy.CreateVector()
Set VectorB = Synergy.CreateVector()
VectorA.SetXYZ -14.5647, 10.5087, 25
VectorB.SetXYZ -14.5647, 10.5087, -25
Plot.AddProbePlotProbeLine VectorA, VectorB
Plot.Regenerate
Parameters:
aIndex probe line index
aStartPt probe line start point
aEndPt probe line end point
Returns:
TRUE if successful
Parameters:
aBaseFileName basename for the Patran results fileset; extensions will be
automatically added as required
aUnitSysName Unit system name as "English" or "Metric"
Returns:
True if successful
Example:
This example saves results in "C:\mpi_project\test.ele" in English unit
Set Plot = Viewer.ActivePlot()
Plot.SaveResultInPatran2 "C:\mpi_project\test.ele", "English"
Parameters:
aFilename XML file name
aUnitSysName Unit system name as "English" or "Metric"
Example:
This example saves results in "c:\mpi_project\result.xml" in
Metric.
Set Plot = Viewer.ActivePlot()
Plot.SaveResultInXML2 "C:\mpi_project\result.xml", "metric"
long GetNumberOfAnimationFrames ( )
Gets number of animation frames in a frame animation plot
Returns:
number of animation frames
long GetFirstAnimationFrameIndex ( )
Gets the index of the first animation frame in a frame animation plot
Returns:
frame index
Example:
This example gets the index of the first animation frame
iFrame = Plot.GetFirstAnimationFrameIndex()
Returns:
TRUE if successful
Example:
This example sets the index of the first animation frame
Plot.SetFirstAnimationFrameIndex iFrame
long GetLastAnimationFrameIndex ( )
Gets the index of the last animation frame in a frame animation plot
Returns:
frame index
Example:
This example gets the index of the last animation frame
iFrame = Plot.GetLastAnimationFrameIndex()
Returns:
TRUE if successful
Example:
This example sets the index of the last animation frame
Plot.SetLastAnimationFrameIndex iFrame
Parameters:
aNbFrames number of animation frames This example set the number of
animation frames to be 4
Parameters:
aFilename text file name
Example:
This example saves results in "c:\mpi
project\xycurves.txt".
Plot.SaveXYPlotCurveData "c:\mpi project\xycurves.txt"
Parameters:
aFilename text file name
aScaleFactor scale factor. If aScaleFactor < 0, the deflection will be applied
in the opposite direction.
aBinary TRUE for binary format and FALSE for ASCII format
Example:
This example saves warped mesh in "c:\mpi project\wm.stl" with scale factor
1.0 in ASCII format and in the opposite direction.
Plot.SaveWarpedShapeInSTL "c:\mpi project\wm.stl", -1.0, False
Parameters:
aFilename text file name
aScaleFactor scale factor
Example:
This example saves warped mesh in "c:\mpi
project\wm.udm".
Plot.SaveWarpedShapeInUDM "c:\mpi project\wm.udm"
)
Saves warped mesh in STL format
Parameters:
aFilename text file name
aScaleFactor scale factor. If aScaleFactor < 0, the deflection will be
applied in the opposite direction.
aBinary TRUE for binary format and FALSE for ASCII format
aUnitSysName Unit system name as "English" or "Metric", the default is "SI"
Example:
This example saves warped mesh in "c:\mpi project\wm.stl" with scale factor
1.0 in ASCII format, in the opposite direction and In English unit.
Plot.SaveWarpedShapeInSTL2 "c:\mpi project\wm.stl", -1.0, False, "English"
Parameters:
aSingleColor use single color option This example set to use single
color.
Example:
Plot.SetUseSingleColor True
Boolean GetUseSingleColor ( )
Gets using single color option
Returns:
using single color option
See also:
SetUseSingleColor
Example:
This example gets using single color
option.
usingSingleColor = Plot.GetUseSingleColor
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
Object GetFirstPlot ()
Object GetNextPlot (Object aPlot)
Object CreatePlotByDsID (long aDsID, Boolean aIsXYPlot)
Object CreatePlotByName (String aPlotName, Boolean aIsXYPlot)
Object CreateXYPlotByName (String aPlotName)
DeletePlotByName (String aPlotName)
DeletePlotByDsID (long aDsID)
DeletePlot (Object aPlot)
Boolean DataHasXYPlotByDsID (long aDsID)
Boolean DataHasXYPlotByName (String aName)
Boolean GetScalarData (long aDsId, Object aIndpValues, Object aEntIDs, Object
aScalarData)
Boolean GetVectorData (long aDsId, Object aIndpValues, Object aEntIDs, Object aVa,
Object aVb, Object aVc)
Boolean GetTensorData (long aDsId, Object aIndpValues, Object aEntIDs, Object
aT11, Object aT22, Object aT33, Object aT12, Object aT13, Object aT23)
Boolean GetNonmeshData (long aDsId, Object aIndpValues, Object aNmData)
Object CreateUserPlot ()
long FindDatasetIdByName (String aName)
Object FindPlotByName (String aName)
long GetIndpVarCount (long aDsID)
Boolean GetIndpValues (long aDsID, Object aValues)
long GetDataNbComponents (long aDataID)
String GetDataType (long aDataID)
long FindDatasetIdsByName (String aName, Object aDsIDs)
long CreateAnchorPlane (long aNodeID1, long aNodeID2, long aNodeID3, String
aName)
Boolean ApplyAnchorPlane (long aAnchorIndex, Object aPlot)
Boolean SetAnchorPlaneNodes (long aAnchorIndex, long aNodeID1, long aNodeID2,
long aNodeID3)
long GetAnchorPlaneNode (long aAnchorIndex, long aNodeIndex)
Boolean SetAnchorPlaneName (long aAnchorIndex, String aName)
long GetNumberOfAnchorPlanes ()
Boolean DeleteAnchorPlaneByIndex (long aAnchorIndex)
Boolean SaveResultDataInXML (long aDataID, String aFileName)
Boolean DeleteAnchorPlaneByName (String aAnchorName)
String GetDataDisplayFormat (long aDsID)
Boolean SetDataDisplayFormat (long aDsID, String aFormatStr)
Detailed Description
You can use this class to create plots, delete plots, fetch plots in the study and query
plot "type" information
See also:
Synergy::PlotManager
Object GetFirstPlot ( )
Gets the first plot in the study
Returns:
Plot object that corresponds to the first
plot
Example:
This example displays the first plot
Set Viewer = Synergy.Viewer()
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.GetFirstPlot()
Viewer.ShowPlot Plot
Parameters:
aPlot Plot object
Returns:
Plot object that corresponds to the next plot in the
Example:
This example displays the second plot
Set Viewer = Synergy.Viewer()
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.GetFirstPlot()
Set Plot1= PlotMgr.GetNextPlot( Plot )
Viewer.ShowPlot Plot1
Parameters:
aDsID dataset ID
aIsXYPlot whether an XY plot needs to be created (only if this dataset
supports XY plots)
Returns:
Plot object that corresponds to the created plot
Example:
This example creates a Fill Time (1610) plot
Set Synergy = CreateObject("synergy.Synergy")
Set PlotMgr = Synergy.PlotManager()
Set Viewer = Synergy.Viewer()
Set Plot = PlotMgr.CreatePlotByDsID(1610, 0)
Viewer.ShowPlot Plot
Parameters:
aPlotName plot name
aIsXYPlot whether an XY plot needs to be created (only if this dataset
supports XY plots)
Example:
This example creates a pressure plot
Set Synergy = CreateObject("synergy.Synergy")
Set PlotMgr = Synergy.PlotManager()
Set Viewer = Synergy.Viewer()
Set Plot = PlotMgr.CreatePlotByName("Pressure", 0)
Viewer.ShowPlot Plot
Returns:
Plot object that corresponds to the created
plot
Example:
This example creates a pressure XY plot
Set Synergy = CreateObject("synergy.Synergy")
Set PlotMgr = Synergy.PlotManager()
Set Viewer = Synergy.Viewer()
Set Plot = PlotMgr.CreateXYPlotByName("Pressure")
Viewer.ShowPlot Plot
Parameters:
aPlotName name of the plot to be
deleted
See also:
DeletePlotByDsID
Example:
This example deletes first plot.
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.GetFirstPlot()
PlotName = Plot.GetName()
PlotMgr.DeletePlotByName PlotName
Parameters:
aDSID dataset ID of the plot to be
deleted
See also:
DeletePlotByName
Example:
This example deletes first plot.
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.GetFirstPlot()
PlotMgr.DeletePlotByDsID PlotName
Parameters:
Note:
You cannot use the plot object after it has been deleted, e.g., as a parameter
in the GetNextPlot function
See also:
DeletePlotByDsID , DeletePlotByName
Example:
This example deletes first plot.
Set PlotMgr = Synergy.PlotManager()
Set Plot = PlotMgr.GetFirstPlot()
PlotMgr.DeletePlot Plot
Parameters:
aDsID dataset ID
See also:
DataHasXYPlotByName
Parameters:
aName dataset name
Returns:
True if XY plot is available for the data
See also:
DataHasXYPlotByName
Parameters:
aDsId DataSet ID
aIndpValue Independ value
aEntIDs IntegerArray of elements ID
aScalarData DoubleArray of data
Returns:
True if successful
Example:
This example gets result data 1190 (Pressure (end of
filling))
Set IndpValues = Synergy.CreateDoubleArray()
Set node_1 = Synergy.CreateIntegerArray()
Set p_1 = Synergy.CreateDoubleArray()
PlotMgr.GetScalarData 1190, IndpValues, node_1, p_1
Parameters:
aDsId DataSet ID
aIndpValue Independ value
aEntIDs IntegerArray of elements ID
aVa DoubleArray of first data
aVb DoubleArray of second data
aVc DoubleArray of third data
Returns:
True if successful
Example:
This example gets average velocity result
data
Set IndpValues = Synergy.CreateDoubleArray()
PlotMgr.GetIndpValues 1420, IndpValues
Set Ind = Synergy.CreateDoubleArray()
Ind.AddDouble IndpValues.Val( IndpValues.Size - 1 )
Set node_1 = Synergy.CreateIntegerArray()
Set P1 = Synergy.CreateDoubleArray()
Set P2 = Synergy.CreateDoubleArray()
Set P3 = Synergy.CreateDoubleArray()
PlotMgr.GetVectorData 1420, Ind, node_1, P1, P2, P3
)
Retrieves tensor data from given data set
Parameters:
aDsId DataSet ID
aIndpValue Independ value
aEntIDs IntegerArray of elements ID
aT11 11 component values
aT22 22 component values
aT33 33 component values
aT33 12 component values
aT33 13 component values
aT33 23 component values
Returns:
True if successful
Example:
This example gets tensor result data 4000 (Average fiber
orientation)
Set IndpValues = Synergy.CreateDoubleArray()
PlotMgr.GetIndpValues 4000, IndpValues
Set Ind = Synergy.CreateDoubleArray()
Ind.AddDouble IndpValues.Val( IndpValues.Size - 1 )
Set node_1 = Synergy.CreateIntegerArray()
Set P11 = Synergy.CreateDoubleArray()
Set P22 = Synergy.CreateDoubleArray()
Set P33 = Synergy.CreateDoubleArray()
Set P12 = Synergy.CreateDoubleArray()
Set P13 = Synergy.CreateDoubleArray()
Set P23 = Synergy.CreateDoubleArray()
PlotMgr.GetTensorData 4000, Ind, node_1, P11, P22, P33, P12, P13, P23
Parameters:
aDsId DataSet ID
aIndpValue Independ value
aNmData Non-mesh data
Returns:
True if successful
Example:
This example gets non-mesh data from 1150
Set Synergy = CreateObject("synergy.Synergy")
Set PlotMgr = Synergy.PlotManager()
Set IndpValues = Synergy.CreateDoubleArray()
Object CreateUserPlot ( )
Creates user plot
Returns:
Plot object
Example:
See
UserPlot::SetScalarData
Parameters:
aName Dataset
name
Returns:
Dataset ID
Example:
See
DataTransform::Func
Parameters:
aName Plot name
Returns:
Plot object
Example:
This example changes plot value range and recreate,
Set Plot = PlotMgr.FindPlotByName( "Pressure (end of filling)")
Plot.SetScaleOption 2
Plot.SetMinValue 400
Plot.SetMaxValue 2e+007
Plot.Regenerate
Parameters:
aDsID Dataset ID
Example:
See UserPlot::AddVectorData
Parameters:
aDsID Dataset ID
aValues DoubleArray to hold independent variable values
Returns:
True if successful
Example:
This example gets independent variable values from dataset
1420.
Set IndpValues = Synergy.CreateDoubleArray()
PlotMgr.GetIndpValues 1420, IndpValues
Parameters:
aDataID Data set ID
Returns:
number of components, which could be 1, 3
or 6
Example:
This example displays 3
Num = PlotMgr.GetDataNbComponents( 1420 )
MsgBox Num
Parameters:
aDataID Data set ID
Returns:
Data type string, which can be one of the
following
• LBDT
• LYDT
Example:
See UserPlot::AddVectorData
Parameters:
aName Plot name
Returns:
Number of data set IDs found
Example:
This example finds the number of data set ID with name "Bulk temperature
(end of filling)"
Set lIds = Synergy.CreateIntegerArray()
lCount = PlotMgr.FindDataSetIDsByName("Bulk temperature (end of filling)", lIds)
If lCount > 1 then
MsgBox "There are " & lCount & "data set ID with this name"
End If
Parameters:
aNodeID1 First node ID
aNodeID2 Second node ID
aNodeID3 Third node ID
aName Anchor plane name
Returns:
Total number of anchor plane, -1 if failed
Example:
This example creates anchor plane at node 12, 14, 15 named "First Anchor
Plane"
PlotMgr.CreateAnchorPlane 12, 14, 15, "First Anchor Plane"
Parameters:
aAnchorIndex anchor plane index
aPlot Plot object
Returns:
True if successful
Example:
This example applies anchor plane 1 to plot "Deflection, all
effects"
PlotMgr.ApplyAnchorPlane 1, Plot
Parameters:
aAnchorIndex anchor plane index
aNodeID1 first node
aNodeID2 second node
aNodeID3 third node
Returns:
True if successful
Example:
This example sets anchor plane 1 to use node 145,
13, 45
PlotMgr.SetAnchorPlaneNode 1, 145, 13, 45
Parameters:
aAnchorIndex anchor plane index
aNodeIndex node index
Returns:
Node ID
Parameters:
aAnchorIndex anchor plane index
aName anchor plane name
Returns:
True if successful
Example:
This example names anchor plane 1 as "Test
Plane"
PlotMgr.SetAnchorPlaneName 1, "Test Plane"
long GetNumberOfAnchorPlanes ( )
Gets number of anchor plane
Returns:
number of anchor plane
Example:
This example gets number of anchor
plane
count = PlotMgr.GetNumberOfAnchorPlanes()
MsgBox count
Parameters:
aAnchorIndex index of anchor
plane
Returns:
True if successful
Example:
This example deletes anchor
plane 1
PlotMgr.DeleteAnchorPlaneByIndex 1
Parameters:
aDataID result data ID
aFileName XML file name
Returns:
True if successful
Example:
This example saves result 1465 into
"C:\temp\Test.xml"
Set PlotMgr=Synergy.PlotManager()
PlotMgr.SaveResultDataInXML 1465, "C:\temp\Test.xml"
Parameters:
aAnchorName name of anchor plane
Returns:
True if successful
Example:
This example deletes anchor plane "My anchor
plane"
PlotMgr.DeleteAnchorPlaneByName "My anchor plane"
Parameters:
aDsID dataset ID
Returns:
String the format string (C-Style format string)
Example:
This example gets display format for the dataset in the active
plot
Set Synergy = CreateObject("synergy.Synergy")
Set Viewer = Synergy.Viewer()
Set Plot = Viewer.ActivePlot
Set PlotMgr = Synergy.PlotManager()
sFormat = PlotMgr.GetDataDisplayFormat(Plot.GetDataID())
MsgBox sFormat
Parameters:
aDsID dataset ID
aFormatStr the format string(C-style format string)
Returns:
True if successful
Example:
This example sets display format for the dataset in the active
plot
Set Synergy = CreateObject("synergy.Synergy")
Set Viewer = Synergy.Viewer()
Set Plot = Viewer.ActivePlot
Set PlotMgr = Synergy.PlotManager()
PlotMgr.SetDataDisplayFormat Plot.GetDataID(), "%.10G"
WarpQueryEnd ( )
Ends query on a warp dataset
Example:
This example queries displacement values in the first anchor plane on node
100
Set Synergy = CreateObject("synergy.Synergy")
Set PlotMgr = Synergy.PlotManager()
Set queryValues = Synergy.CreateDoubleArray()
PlotMgr.WarpQueryBegin 6250, Nothing
PlotMgr.WarpQueryNode 100, 1, queryValues
PlotMgr.WarpQueryEnd
Parameters:
aNodeID data set id
aAnchorIndex anchor plane index. If the index is invalid, only the
displacement components in global coordinate system are
returned
aRetValues returned query values (node coordinates and displacements in
global and local coordinate systems)
Note: If anchor plane is specified, the return array contains 18 values which are the
following values:
Index 0, 1, 2: X, Y, Z coordinates in global coordinate system before deflection
Returns:
True if successful
Example:
This example queries displacement values in the first anchor plane on node
100
Set Synergy = CreateObject("synergy.Synergy")
Set PlotMgr = Synergy.PlotManager()
Set queryValues = Synergy.CreateDoubleArray()
PlotMgr.WarpQueryBegin 6250, Nothing
PlotMgr.WarpQueryNode 100, 1, queryValues
PlotMgr.WarpQueryEnd
Parameters:
aDsID data set id
aIndpValues independent variable values
Returns:
TRUE is successful
Example:
This example queries displacement values in the first anchor plane on node
100
Set Synergy = CreateObject("synergy.Synergy")
Set PlotMgr = Synergy.PlotManager()
Set queryValues = Synergy.CreateDoubleArray()
PlotMgr.WarpQueryBegin 6250, Nothing
PlotMgr.WarpQueryNode 100, 1, queryValues
PlotMgr.WarpQueryEnd
Parameters:
Returns:
True if successful
Example:
This example saves result 1465 into "C:\temp\Test.xml"
Set PlotMgr=Synergy.PlotManager()
PlotMgr.SaveResultDataInXML 1465, "C:\temp\Test.xml", "English"
Parameters:
aName anchor plane name
Returns:
anchor index if successful, otherwise return -1
Example:
This example gets the index of anchor plane "My
Anchor"
index = PlotMgr.GetAnchorPlaneIndex("My Anchor")
Parameters:
aRltName result name
aExport True for marking and False for
unmarking
Returns:
True for successful setting
Example:
This example marks Fill time result for export
PlotManager.MarkResultForExport "Fill time", True
Parameters:
aExport True for marking and False for unmarking
Returns:
Example:
This example unmarks all results for export
PlotManager.MarkAllResultsForExport True
Boolean AddDefaultPlots ( )
Add all default plots in the study
Example:
This example add all of the default
plots
PlotMgr.AddDefaultPlots()
Parameters:
aDataID result data ID
aFileName Patran file name
aUnitSysName Unit name, Metric or English
Returns:
True if successful
Example:
This example save result 1180 into "d:\temp\pressure"
Set PlotMgr=Synergy.PlotManager()
PlotMgr.SaveResultDataInPatran 1180, "d:\temp\pressure", "Metric"
long GetNumberOfResultsFiles ( )
Gets number of results files
Returns:
number of results files
Example:
This example gets number of results
files
count = PlotMgr.GetNumberOfRdbFiles()
MsgBox count
Parameters:
aResultsFileIndex results file index
Example:
This example gets the file name at the given index
rdbFileName = PlotMgr.GetResultsFileName(aResultsFileIndex)
Parameters:
aPlotName Displayed Plot name
aDataName Data source name
Returns:
Plot object
Example:
This example displays a plot which is externally named "Time to reach ejection
temperature" and is generated from the internal data "Time to freeze"
Set Plot = PlotMgr.FindPlotByName2("Time to reach ejection temperature", "Time to freez
Viewer.ShowPlot Plot
Main Page Alphabetical List Compound List Compound Members Related Pages
Detailed Description
You can use objects of this class as inclusion criteria to populate EntList objects.
Predicates can be created using the PredicateManager class
Public Methods
Object CreateLabelPredicate (String aStr)
Object CreatePropertyPredicate (long aTsetID, long aSubID)
Object CreatePropTypePredicate (long aTsetID)
Object CreateThicknessPredicate (double aMin, double aMax)
Object CreateBoolAndPredicate (Object aLeft, Object aRight)
Object CreateBoolOrPredicate (Object aLeft, Object aRight)
Object CreateBoolNotPredicate (Object aPred)
Object CreateBoolXorPredicate (Object aLeft, Object aRight)
Object CreateXSectionPredicate (String aType, Object aMin, Object aMax)
Detailed Description
You can use this class and its member function to create predicates for selecting
entities by label ranges, thickness ranges, cross sections, etc., and combine them with
boolean operations to create advanced predicates
See also:
Synergy::PredicateManager
Parameters:
aStr label range of the form prefix[lower limit]:[upper limit]; entity prefixes
are:
• Nodes: N
• Beams: B
• Triangles: T
• Tetrahedral elements: TE
• Curves: C
• Surfaces: S
• Regions: R
Returns:
Predicate object
See also:
EntList::SelectFromPredicate
Example:
This example selects nodes N23 to N100 and assigns them to layer L5.
Parameters:
aType property type
aID property ID
Returns:
Predicate object
See also:
CreatePropTypePredicate , EntList::SelectFromPredicate
Example:
This example selects entities that have been assigned the property of the type
40800 (part surface - midplane) and ID 1.
Returns:
Predicate object
See also:
CreatePropertyPredicate , EntList::SelectFromPredicate
Example:
This example selects entities that have be assigned a property type of 40800
(part surface - midplane).
Parameters:
aMin minimum thickness
aMax maximum thickness
Returns:
Predicate object
See also:
EntList::SelectFromPredicate
Example:
This examples selects entities with thickness between 1
and 5.
Parameters:
aLeft Predicate object
aRight Predicate object
See also:
EntList::SelectFromPredicate
Example:
This example selects triangles with labels ranging from T1 to T35 and
thicknesses ranging from 1 and 5.
Parameters:
aLeft Predicate object
aRight Predicate object
Returns:
Predicate object that corresponds to the OR predicate
See also:
EntList::SelectFromPredicate
Example:
This example select entities that either have thicknesses from 1 to 5 or labels
ranging from T1 to T35.
Parameters:
aPred Predicate object
Returns:
Predicate object
See also:
EntList::SelectFromPredicate
Parameters:
aLeft Predicate object
aRight Predicate object
Returns:
Predicate object that corresponds to the XOR predicate
See also:
EntList::SelectFromPredicate
Example:
This example selects entities with thickness between 1 and 5 or labels ranging
from T1 to T35, excluding those entities that satisfy both conditions or do not
satisfy either condition
Set Predicate1 = PredicateManager.CreateThicknessPredicate(1, 5)
Set Predicate2 = PredicateManager.CreateLabelPredicate("T1:35")
Set Predicate = PredicateManager.CreateBoolXorPredicate( Predicate1, Predicate2 )
Parameters:
aType cross-section type
aMin DoubleVector that specifies minimum values for parameters defining the
cross section
aMax DoubleVector that specifies maximum values for parameters defining the
cross section
Please refer to the following table for required parameters:
Cross Section Type Parameters Required
Circular Diameter
Rectangular Width, Height
Annular Outer diameter, Inner diameter
Half-Circular Diameter, Height
Returns:
Predicate object
Example
This example select entities with a trapezoidal cross-section with top width
between 0.01 and 0.1, bottom width between 0.01 and 0.1 and height between
0.01 and 0.02.
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
Boolean Close ()
Boolean SaveAll ()
Boolean NewStudy (String aName)
Boolean NewFolder (String aName)
Boolean Compact ()
Boolean Export (String aFile, Boolean aSelected, Boolean aResults)
Boolean Export2 (String aFile, Boolean aSelected, Boolean aResults, String
aCriteriaFile, Boolean aRestrict)
Boolean ExportModel (String aFile)
Boolean DuplicateStudyByName (String aName)
Boolean DeleteItemByName (String aName, String aType)
Boolean RenameItemByName (String aName, String aType, String aNewName)
Boolean OpenItemByName (String aName, String aType)
Boolean OpenItemByIndex (long aIndex)
Boolean OpenItemCompareMode (PROJITEM aItem)
Boolean RenameItemByIndex (long aIndex, String aNewName)
Boolean DeleteItemByIndex (long aIndex)
Boolean DuplicateStudyByIndex (long aIndex)
String GetFirstStudyName ()
String GetNextStudyName (String aName)
String GetFirstReportName ()
String GetNextReportName (String aName)
Boolean DuplicateStudyByName2 (String aName, Boolean aSave)
Boolean DuplicateStudyByIndex2 (long aIndex, Boolean aSave)
Boolean ScheduleCheckOnStudy (String aServer, String aStudy, long aJobType,
Boolean aRunNow, Boolean aPrompts)
Boolean ScheduleAnalysisOnStudy (String aServer, String aStudy, long aJobType,
Boolean aRunNow, Boolean aPrompts)
Boolean ExportModel2 (String aFile, long aUnitID)
Boolean ScheduleMeshOnStudy (String aServer, String aStudy, long aJobType,
Boolean aRunNow, Boolean aPrompts)
Public Attributes
String Path
Path of the current project.
Detailed Description
You can use this class to open and close studies, export studies or the project, delete
and rename project items, etc.
See also:
Synergy::Project
Boolean Close ( )
Closes current project
Returns:
True if successful; False otherwise
Example:
This example closes the current
project.
Boolean SaveAll ( )
Saves all open documents
Returns:
True if successful; False otherwise
Example:
This example saves all the open documents in the
project.
Parameters:
aName study name
Returns:
True if successful; False otherwise
Example
Parameters:
aName folder name
Returns:
True if successful; False otherwise
Example
This example creates a new folder called "My Folder" in the current
project.
Boolean Compact ( )
Compacts current project by removing redundant restart files
Returns:
True if successful; False otherwise
Example:
This example compacts the current project.
Parameters:
aFile name of file
aSelected specify True to export selected items only; False to export all
items
aResult specify True to export results too
Returns:
True if successful; False otherwise
Example
Parameters:
aFile name of file
aSelected specify True to export selected items only; False to export all items
aResult specify True to export results too
aCriteriaFile name of criteria file to include
aRestrict specify True to restrict the exported file based on criteria contents (onl
export)
Returns:
True if successful; False otherwise
Example
This example exports the entire project along with results.
Parameters:
aFile name of file
Returns:
True if successful; False otherwise
Note:
The format of the exported file is automatically determined from the file
extension
Example:
This example exports the current model into an mfl file.
Parameters:
aName name of the study to duplicate
Returns:
True if successful; False otherwise
Note:
MPI tries to prevent you from duplicating study names in the project; however
if you have duplicated study or report names in your project, this function will
duplicate the first item that matches the name
Example
This example duplicates the study named "My Study".
Parameters:
aName name of the item to be deleted
aType specify:
• Study to open a study, and
• Report to open a report
Returns:
True if successful; False otherwise
Note:
MPI tries to prevent you from duplicating study names in the project; however
if you have duplicated study or report names in your project, this function will
delete the first item that matches the name
Example:
This example deletes project the study named "My Study".
Parameters:
Returns:
True if successful; False otherwise
Note:
MPI tries to prevent you from duplicating study names in the project; however
if you have duplicated study or report names in your project, this function will
rename the first item that matches the name
Example:
This example renames the study "My Study" to be "My New Study".
Parameters:
aName the name of the study or the report
aType specify:
• Study to open a study, and
• Report to open a report
Returns:
True if successful; False otherwise
Note:
MPI tries to prevent you from duplicating study names in the project; however
if you have duplicated study or report names in your project, this function will
open the first item that matches the name
Example
This example opens a study named "My Study".
Parameters:
aIndex index of the item to open
Note:
This function is mainly used during macro recording only when you have
duplicate item names in the project. The index associated with an item can
change when a project is re-opened after an item is deleted, etc. It is
recommended that you use OpenItemByName instead
Example
This example opens the item in the project at index 4.
Parameters:
aItem the item to open
Note:
Only available in Enterprise mode.
Returns:
True if successful; False otherwise
Parameters:
aIndex index of the item to be renamed
aNewName The new name of the item
Returns:
True if successful; False otherwise
Note:
This function is mainly used during macro recording only when you have
duplicate item names in the project. The index associated with an item can
change when a project is re-opened after an item is deleted, etc. It is
recommended that you use RenameItemByName instead
Example:
This example renames the item at index 4 to "New Study".
Parameters:
aIndex index of the item to be deleted
Returns:
True if successful; False otherwise
Note:
This function is mainly used during macro recording only when you have
duplicate item names in the project. The index associated with an item can
change when a project is re-opened after an item is deleted, etc. It is
recommended that you use DeleteItemByName instead
Example:
This example deletes the item in project at index 4.
Parameters:
aIndex index of the study to duplicate
Returns:
True if successful; False otherwise
Note:
This function is mainly used during macro recording when you have duplicate
item names in the project. The index associated with an item can change
when a project is re-opened after an item is deleted, etc. It is recommended
that you use DuplicateStudyByName instead
Example
This example duplicates the study at index 1.
String GetFirstStudyName ( )
Gets the name of the first study
Returns:
name of the first study
Example:
This example displays first study
Returns:
study name
Example:
This example displays the name of each
study.
String GetFirstReportName ( )
Gets the name of the first report
Returns:
name of the first report
Example:
This example gets the name of the first
report.
Set Project = Synergy.Project()
Str = Project.GetFirstReportName()
Returns:
next report name
Example:
This example displays the name of each
report.
Parameters:
aName name of the study to duplicate
aSave whether to save study before duplicate
Returns:
True if successful; False otherwise
Note:
MPI tries to prevent you from duplicating study names in the project; however
if you have duplicated study or report names in your project, this function will
duplicate the first item that matches the name
Example
This example duplicates the unsaved study named "My Study".
Parameters:
aIndex index of the study to duplicate
aSave whether to save study before duplicate
Returns:
True if successful; False otherwise
Note:
This function is mainly used during macro recording when you have duplicate
item names in the project. The index associated with an item can change
when a project is re-opened after an item is deleted, etc. It is recommended
that you use DuplicateStudyByName instead
Example
This example duplicates the saved study at index 1.
Parameters:
aServer Server address
aStudy Study name
aJobType Job type
aRunNow True if run now
aPrompts True if show prompts
Returns:
true if successful
Example:
This example schedules an analysis check on study "Cup_Study" on server
"127.0.0.1".
Set Project = Synergy.Project()
Project.ScheduleCheckOnStudy "127.0.0.1", "Cup_Study", 0, False, True
Parameters:
aServer Server address
aStudy Study name
aJobType Job type
aRunNow True if run now
aPrompts True if show prompte
Returns:
True if successful
Example:
This example schedules an analysis on study "Cup_Study" on server
"127.0.0.1".
Set Project = Synergy.Project()
Project.ScheduleAnalysisOnStudy "127.0.0.1", "Cup_Study", 0, False, True
Parameters:
aFile name of file
aUnit unit index
0 - Millimeter
1 - Centimeter
2 - Meter
3 - Inch
Returns:
True if successful; False otherwise
Note:
The format of the exported file is automatically determined from the file
extension
Example:
This example exports the current model into an mfl file.
Parameters:
aServer Server address
aStudy Study name
aJobType Job type
aRunNow True if run now
aPrompts True if show prompte
Returns:
True if successful
Example:
This example schedules an mesh on study "Cup_Study" on server
"127.0.0.1".
Set Project = Synergy.Project()
Project.ScheduleMeshOnStudy "127.0.0.1", "Cup_Study", 0, False, True
Public Methods
Boolean DeleteField (long aID)
long GetFirstField ()
long GetNextField (long aField)
Public Attributes
long Type
Property type (read-only).
long ID
Property ID (read-only).
String Name
Name of the property.
String FieldDescription
Object FieldValues
Detailed Description
You can use this class to query property information and modify properties.
Note:
Properties can be edited only when they are created or fetched from
PropertyEditor objects. Properties obtained from other class objects can only be
used for queries
See also:
PropertyEditor::CreateProperty , PropertyEditor::FindProperty , PropertyEditor
Returns:
True if the field was deleted successfully;
False otherwise
long GetFirstField ( )
Gets the first field in the property
Returns:
field ID
Parameters:
aField field ID
Returns:
next field ID
String FieldDescription
Field description
Parameters:
aID field
ID
Object FieldValues
Field values as a DoubleArray object
Parameters:
aID field ID
Public Methods
Boolean DeleteProperty (long aType, long aID)
Object CreateProperty (long aType, long aID, Boolean aDefaults)
Object FindProperty (long aType, long aID)
Boolean CommitChanges (String aAction)
Boolean SetProperty (Object aList, Object aProp)
Object CreateEntityList ()
long RemoveUnusedProperties ()
Object FetchProperty (long aType, long aID, String aFile, String aFileType, long
aFileID)
Object GetFirstProperty (long aType)
Object GetNextProperty (Object aProp)
Object GetNextPropertyOfType (Object aProp)
Object GetEntityProperty (Object aEnt)
Detailed Description
You can use this class to create properties, find properties given their type and ID,
assign properties to entities and enumerate properties in a study
Note:
The property editor creates a copy of the properties in the model when you
create it. All changes made to properties will not be committed to the study
unless you call the function CommitChanges
See also:
Synergy::PropertyEditor
Returns:
True if successful; False
otherwise
Parameters:
aType property type
aID property ID
aDefaults specify True to use default values for property fields; False to
create an empty property
Returns:
Property that is created
Parameters:
aType property type
aID property ID
Returns:
Property that is found
Example:
This example finds property Tset 40800 with
subID 5.
Set Prop = PropEd.FindProperty(40800, 5)
Parameters:
aAction can be one of:
• Assign: to record property assignments
• Edit: to record property edits
• Process Conditions: to record process condition changes
• Remove Unused: to record removal of unused properties
Returns:
True if successful; False otherwise
Example:
This example commits changes.
PropEd.CommitChanges "Edit"
Parameters:
aList EntList object containing entities to which the property is to be
assigned
aProp Property object
Returns:
True if successful; False otherwise
Example:
This example sets property to element "T1".
Set Prop = PropEd.FindProperty(40800, 5)
EntList.SelectFromString "T1"
PropEd.SetProperty EntList, Prop
PropEd.CommitChanges "Edit"
Object CreateEntityList ( )
Creates an empty EntList object
Returns:
EntList object
long RemoveUnusedProperties ( )
Removes unused properties in the study. Unused properties are those that have not
been assigned to any entities
Returns:
number of properties removed
Parameters:
aType property type
aID ID that is to be assigned to the fetched property; specify 0 to let MPI
use the next available ID @aFile database file name @aFileType
specify:
• System: if the database is a system database,
• User: if the database is a user database, and
• empty string: if the file is not located in any of the standard database
locations; in this case, aFile must be a full path specification
aIndex index of the property in the database; the most convenient way to
determine this index is to record a macro that selects this property
from the database
Returns:
Property that is fetched
Parameters:
aType property type; specify 0 to get the first property in the
study
Returns:
Property object; Nothing if there are no properties in the study
Parameters:
aProp Property object
Returns:
Property object that corresponds to the next property; Nothing if this is the
last property
Parameters:
aProp Property object
Returns:
Property object that corresponds to the next property of the same type;
Nothing if there are no more properties of this type
Parameters:
aEnt EntList object containing the entity whose property needs to be
obtained
Returns:
Property object
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
Boolean Generate ()
Generates a runner system. More...
Public Attributes
double SprueX
X coordinate of the sprue.
double SprueY
Y coordinate of the sprue.
double SprueLength
Length of the sprue.
double PartingZ
Parting plane Z location.
double TopRunnerZ
Top runner plane Z location of hot runner systems.
double SprueDiameter
Sprue diameter.
double SprueTaperAngle
Included angle of the sprue.
double RunnerDiameter
Runner diameter.
Boolean Trapezoidal
Specify True to generate runners with trapezoidal cross sections; False for circular.
double TrapezoidAngle
Included angle for trapezoidal runners.
double DropDiameter
Drop diameter.
double DropTaperAngle
Included angle of drops.
Boolean GatesByLength
Specify True to specify length of side gates; False to specify angles.
double GateDiameter
Orifice diameter of side gates.
double GateTaperAngle
Included angle of side gates.
double GateLength
Length of side gates.
double GateAngle
Angle of side gates.
double TopGateStartDiameter
Start diameter of top gates.
double TopGateEndDiameter
End diameter of top gates.
double TopGateLength
Length of top gates.
Boolean DeleteOld
Specify True to delete the existing runner system; False to retain it.
Boolean HotRunners
Specifies whether hot runners will be used in your runner system.
double PartCenterX
Query X value of the part center.
double PartCenterY
Query Y value of the part center.
double GatesCenterX
Query X value of the gates center.
double GatesCenterY
Query Y value of gates center.
double Top
Query top of part surface.
double Bottom
double GatePlaneZ
Query gate plane Z value.
Detailed Description
You can use this class to generate a runner system for your model
See also:
Synergy::RunnerGenerator
Boolean Generate ( )
Returns:
True if the operation succeeded; False otherwise
Example:
This example generates a runner system using default
parameters.
Main Page Alphabetical List Compound List Compound Members Related Pages
Public
Attributes
String Address
Address.
String Name
Name.
String Status
Status.
Detailed Description
You can use this class to define a Server and query server information(name, status
and address).
See also:
SAJobMgr, SAJob
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
String AnalysisStatus (long aIndex)
String MeshStatus ()
String AnalysisName (long aIndex)
Object CreateEntityList ()
Boolean Save ()
Boolean SaveAs (String aName)
Boolean Close ()
Boolean Undo (long aNum)
Boolean Redo (long aNum)
Boolean AddFile (String aName, Object aOpts, Boolean aShowLog)
Boolean AnalyzeNow (Boolean aCheck, Boolean aSolve)
Object GetFirstNode ()
Object GetNextNode (Object aNode)
Object GetNodeCoord (Object aNode)
Object GetFirstTri ()
Object GetNextTri (Object aTri)
Object GetFirstBeam ()
Object GetNextBeam (Object aBeam)
Object GetFirstTet ()
Object GetNextTet (Object aTet)
Object GetElemNodes (Object aElem)
Object GetEntityLayer (Object aEnt)
long GetEntityID (Object aEnt)
Boolean AnalyzeNow2 (Boolean aCheck, Boolean aSolve, Boolean aPrompts)
Boolean DeleteResults (long aStartIndex)
Boolean MeshNow (Boolean aPrompts)
String GetResultPrefix (String aName)
Boolean ImportProcessVariation (String aUdmFile, Boolean aDOE, Boolean aPrompt)
Boolean ImportProcessCondition (String aUdmFile, Boolean aPrompt)
Boolean ImportMachineData (String aUdmFile, Boolean aPrompt)
Boolean ExportAnalysisLog (String aFileName)
Boolean ExportMeshLog (String aFileName)
Public Attributes
String MoldingProcess
Molding process.
String MeshType
Mesh type.
Object Selection
Selection as a EntList object.
long NumberOfAnalyses
Number of analysis.
StudyName
Study Name.
Detailed Description
You can use the StudyDoc class to query and set the molding process, analysis
sequence and mesh type. In addition, you can also save and close studies, invoke one
or more undo/redo actions, add files, launch analyses and enumerate entities in your
study
See also:
Synergy::StudyDoc
Parameters:
aIndex index of analysis
Returns:
Status of the i-th analysis, which can be one of the
following.
• New
• Pending
• Running
• Completed
• Failed
String MeshStatus ( )
Get the status of mesh
Returns:
Example:
This example displays mesh
status.
Set StudyDoc = Synergy.StudyDoc()
MsgBox StudyDoc.MeshStatus
See also:
AnalysisStatus
Parameters:
aIndex index of analysis
Returns:
Analysis name
Object CreateEntityList ( )
Creates an empty entity list
Returns:
EntList object
Boolean Save ( )
Saves the study
Returns:
True if successful; False
otherwise
Example:
This example saves study.
Set StudyDoc = Synergy.StudyDoc()
StudyDoc.Save
Parameters:
aName new name
Returns:
True if successful; False otherwise
Example:
Boolean Close ( )
Closes the study
Returns:
True if successful; False
otherwise
Example:
This example closes the
studyDoc.
Set StudyDoc = Synergy.StudyDoc()
StudyDoc.Close
Parameters:
aNum number of edits to undo
Returns:
True if successful; False otherwise
Example:
This example undoes the latest model
edit.
Parameters:
aNum number of edits to redo
Returns:
True if successful; False otherwise
Example:
This example redoes the latest model edit that was
undone.
Parameters:
aName name of the file to be added
aOpts ImportOptions object that specifies
import options
aShowLog specify True to display the import log
Returns:
True if successful; False otherwise
Example:
This example adds an STL model to the current
study.
Parameters:
aCheck whether model checking is to be performed
aSolve whether the model solution needs to generated by the
analysis
Returns:
True if successful; False otherwise
Example:
This example runs analysis on the studyDoc.
Set StudyDoc = Synergy.StudyDoc()
StudyDoc.AnalyzeNow False, True
Object GetFirstNode ( )
Gets the first node in the study
Returns:
EntList object containing the first
node
Example:
Parameters:
EntList object containing a node
Returns:
EntList object containing the next node
Example:
This example displays ID of each node in the
study.
Set StudyDoc = Synergy.StudyDoc()
Set Node = StudyDoc.GetFirstNode()
While Not Node Is Nothing
MsgBox Node.ConvertToString()
Set Node = StudyDoc.GetNextNode(Node)
WEnd
Parameters:
EntList object containing the node
Returns:
Vector object containing the node coordinates
Example:
This example gets the coordinates of the first node in the
study.
Object GetFirstTri ( )
Gets the first triangle in the study
Returns:
EntList object containing the first
triangle
Example:
Set StudyDoc = Synergy.StudyDoc()
Set Tri = StudyDoc.GetFirstTri()
Parameters:
aTri EntList object containing a triangle
Returns:
EntList object containing the next triangle
Example:
This example displays all triangle ID in the
study
Set StudyDoc = Synergy.StudyDoc()
Set Tri = StudyDoc.GetFirstTri()
While Not Tri Is Nothing
Str = Str + Tri.ConvertToString() + " "
Set Tri = StudyDoc.GetNextTri( Tri )
WEnd
MsgBox Str
Object GetFirstBeam ( )
Gets the first beam in the study
Returns:
EntList object containing the first
beam
Example:
This example display ID of first
beam.
Set StudyDoc = Synergy.StudyDoc()
Set B1 = StudyDoc.GetFirstBeam()
MsgBox B1.ConvertToString()
Parameters:
EntList object containing a beam
Returns:
EntList object containing the next
beam
Example:
This example displays all beam ID.
Set StudyDoc = Synergy.StudyDoc()
Set Beam = StudyDoc.GetFirstBeam()
While Not Beam Is Nothing
Str = Str + Beam.ConvertToString() + " "
Set Beam = StudyDoc.GetNextBeam(Beam)
WEnd
MsgBox Str
Object GetFirstTet ( )
Gets the first tetrahedral element in the study
Returns:
EntList object containing the first tetrahedral
element
Example:
This examples gets first tetrahedral ID.
Set StudyDoc = Synergy.StudyDoc()
Set T1 = StudyDoc.GetFirstTet()
MsgBox T1.ConvertToString()
Parameters:
aTet EntList object containing a
tetrahedron
Returns:
EntList object containing the next
tetrahedron
Example:
This example displays all tetrahedral ID.
Set StudyDoc = Synergy.StudyDoc()
Set Tets = StudyDoc.GetFirstTet()
While Not Tets Is Nothing
Str = Str + Tets.ConvertToString() + " "
Set Tets = StudyDoc.GetNextTet(Tets)
WEnd
MsgBox Str
Parameters:
aTet EntList object containing an element
Returns:
EntList object containing the nodes
Example:
This example displays triangle "T1" node coordinates.
Set StudyDoc = Synergy.StudyDoc()
Set Tri = StudyDoc.GetFirstTri()
Set Nodes = StudyDoc.GetElemNodes( Tri )
For i = 0 to 2
Set Vec = StudyDoc.GetNodeCoord( Nodes.Entity( i ) )
MsgBox CStr(Vec.x) + " " + CStr(Vec.y) + " " + CStr(Vec.z)
Next
Parameters:
aEnt EntList object containing the
entity
Returns:
EntList object containing the layer
Example:
This example display layer of first
node
Set StudyDoc = Synergy.StudyDoc()
Set Node = StudyDoc.GetFirstNode()
Set Layer = StudyDoc.GetEntityLayer(Node)
MsgBox Layer.ConvertToString()
Parameters:
aEnt EntList containing the entity
Returns:
entity ID
Example
This example displays layer ID of first
node
Set StudyDoc = Synergy.StudyDoc()
Set Node = StudyDoc.GetFirstNode()
Set Layer = StudyDoc.GetEntityLayer(Node)
MsgBox StudyDoc.GetEntityID( Layer )
Parameters:
aCheck whether model checking is to be performed
aSolve whether the model solution needs to generated by the
analysis
aPrompts set False will prevent showing prompt on GUI
Returns:
True if successful; False otherwise
Example:
Parameters:
aStartIndex Start index of results to be
deleted
Returns:
True if successful
Example:
This example deletes all results
Set SD = Syn.StudyDoc
SD.DeleteResults(0)
Parameters:
aPrompts set False will prevent showing prompt on
GUI
Returns:
True if successful; False otherwise
Example:
This example runs mesh job without showing user
prompt.
Set StudyDoc = Synergy.StudyDoc()
StudyDoc.MeshNow False
Parameters:
aName process name such as "Flow", "Warp"
Note: In synergy project view, select a study and click Right-Mouse-Button to open
properties dialog, the available process name are listed there.
Returns:
Result prefix name
Example:
This example displays result prefix of "Fill" process.
Set StudyDoc = Synergy.StudyDoc
MsgBox StudyDoc.GetResultPrefix("Fill")
Parameters:
aUdmFile File from MPX/Shotscope output in udm format
aDOE Whether to set up as DOE analysis
aPrompt Whether to show UI prompt
Returns:
True if successful
Example:
This example imports process variation from MPX/Shotscope and setup as
DOE analysis
Set SD = Syn.StudyDoc
SD.ImportProcessVariation "C:\My MPI 6.0 Projects\abc.udm", True, True
Parameters:
aUdmFile File from MPX output in udm format
aPrompt Whether to show UI prompt
Returns:
True if successful
Example:
This example imports process condition from MPX
Set SD = Syn.StudyDoc
SD.ImportProcessCondition "C:\My MPI 6.0 Projects\abc.udm", True
Parameters:
aUdmFile File from MPX output in udm format
aPrompt Whether to show UI prompt
Returns:
True if successful
Example:
Parameters:
aFileName file name of the output file
Returns:
True if successful
Example:
This example exports analysis log into "c:\my
project\analysis.log"
Set StudyDoc = Synergy.StudyDoc
StudyDoc.ExportAnalysisLog "C:\\my project\\analysis.log"
Parameters:
aFileName file name of the output file
Returns:
True if successful
Example:
This example exports mesh log into "c:\my
project\mesh.log"
Set StudyDoc = Synergy.StudyDoc
StudyDoc.ExportMeshLog "C:\\my project\\mesh.log"
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
Boolean NewProject (String aName, String aDir)
Boolean OpenProject (String aPath)
Boolean OpenRecentProject (long aIndex)
Boolean ImportFile (String aFile, Object aOpts, Boolean aShowLog)
Object CreateVector ()
Object CreateVectorArray ()
Object CreateDoubleArray ()
Object CreateIntegerArray ()
SetUnits (String aUnit)
String GetUnits ()
Boolean SetApplicationWindowPos (long aX, long aY, long aSizeX, long aSizeY)
Public Attributes
Object Project
Project.
Object ImportOptions
Import options.
Object StudyDoc
Study.
Object Modeler
Modeler.
Object MeshEditor
Mesh editor.
Object MeshGenerator
Mesh generator.
Object PredicateManager
Predicate manager.
Object BoundaryConditions
Boundary conditions editor.
Object ModelDuplicator
Model duplicator.
Object MoldSurfaceGenerator
Mold surface generator.
Object CircuitGenerator
Coolant circuit generator.
Object RunnerGenerator
Runner system generator.
Object MaterialSelector
Molding material selector.
Object LayerManager
Layer manager.
Object PlotManager
Plot manager.
Object Viewer
Viewer.
Object DiagnosisManager
Diagnostics generator.
Object PropertyEditor
Property editor.
Object Version
Product version string.
Object Build
Product build ID string.
Object DataTransform
Data Transform.
Object JobManager
Job manager.
Detailed Description
This class serves as the starting point of the API. You can use this class to retrieve the
current Project, StudyDoc, Modeler, MeshEditor, PropertyEditor, the wizard objects,
Viewer, and other objects. This is the only OLE-creatable object in MPI. All other
objects are either created using the Synergy object or those objects that are derived
Parameters:
aName project name
aDir project location
Returns:
True if successful; False otherwise
Example:
This example creates a new project called
"P1"
Set Synergy = CreateObject("synergy.Synergy")
Synergy.NewProject "P1", "C:\My MPI 4.0 Projects\P1"
Parameters:
aPath full path name of the project to open
Returns:
True if successful; False otherwise
Example:
This example opens project "C:\My MPI 4.0
Projects\MyTest.mpi".
Synergy.OpenProject "C:\My MPI 4.0 Projects\MyTest.mpi"
Parameters:
aIndex index from 0 to 3, where 0 corresponds to the most recent project that
was opened and 3 corresponds to the oldest project that was opened
Returns:
True if successful; False otherwise
Example:
This example opens most recent project.
Synergy.OpenRecentProject 0
Parameters:
aFile name of the file to open
aOpts ImportOptions object that specifies
import options
aShowLog specify True to display an import log
Returns:
True if successful; False otherwise
Example:
This example imports "D:\STL\test.stl" into MPI
project.
Set ImpOpts = Synergy.ImportOptions()
ImpOpts.MeshType "Fusion"
...
Synergy.ImportFile "D:\STL\test.stl", ImpOpts, False
Object CreateVector ( )
Creates a Vector object
Returns:
Vector object
Object CreateVectorArray ( )
Creates a VectorArray object
Returns:
VectorArray object
Object CreateDoubleArray ( )
Creates a DoubleArray object
Returns:
DoubleArray object
Object CreateIntegerArray ( )
Creates a IntegerArray object
Returns:
IntegerArray object
Parameters:
aUnit Units name, "English" or
"Metric"
Example:
This example sets system units to
"Metric"
Set Synergy = CreateObject("synergy.Synergy")
Synergy.SetUnits "Metric"
String GetUnits ( )
Get system units
Example:
This example displays current system
unit.
Set Synergy = CreateObject("synergy.Synergy")
MsgBox Synergy.GetUnits
Parameters:
aX X position
aY Y position
aSizeX X size in pixel
aSizeY Y size in pixel
Example
This example moves the window to (100, 100) and change the size to
400x300
Synergy.SetApplicationWindowPos 100, 100, 400, 300
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
Boolean SetDeptName (String aName)
Boolean SetIndpName (String aName)
Boolean SetDataType (String aType)
Boolean SetDeptUnitName (String aName)
Boolean SetIndpUnitName (String aName)
Boolean AddScalarData (double aIndpValue, Object aEntIDs, Object aDataValues)
Object Build ()
Boolean SetName (String aName)
Boolean AddTensorData (double aIndpValue, Object aEntIDs, Object aT11, Object
aT22, Object aT33, Object aT12, Object aT13, Object aT23)
SetVectorAsDisplacement (Boolean aVasD)
Boolean SetScalarData (Object aEntIDs, Object aDataValues)
Boolean SetVectorData (Object aEntIDs, Object aVxValues, Object aVyValues, Object
aVzValues)
Boolean AddXYPlotData (double aIndpValue, Object aXValues, Object aYValues)
Boolean SetXYPlotData (Object aXValues, Object aYValues)
Boolean SetXYPlotXUnitName (String aName)
Boolean SetXYPlotYUnitName (String aName)
Boolean SetXYPlotXTitle (String aTitle)
Boolean SetHighlightData (Object aDataValues)
Object BuildWeldlinePlot (String aPlotName, double aMaxAngle, Boolean
aForOverMolding)
Object BuildClampForcePlot (String aPlotName, long aDirection, long aLCS, Boolean
aForOverMolding)
Object BuildBirefringencePlot (String aPlotName, long aRltType, double
aLightWaveLength, double aLightDirX, double aLightDirY, double
aLightDirZ)
Object BuildModulusPlot (String aPlotName, long aDirection, long aLCS)
Object BuildDeflectionPlot (String aPlotName, String aType, String aParameters)
Detailed Description
This class can be used to create user-defined plot by providing plot data
Parameters:
aName dependent variable name
Returns:
True if successful
Example:
This example sets dependent
name.
Parameters:
aName independent variable
name
Returns:
True if successful
Example:
Set UserPlot1 = PlotMgr.CreateUserPlot()
UserPlot1.SetIndpName("ABC")
Parameters:
aType data type (ELDT for element data, NDDT node data and NMDT
non-mesh data)
Returns:
True if successful
Example:
See UserPlot::AddScalarData
Parameters:
Returns:
True if successful
Example:
See UserPlot::AddVectorData
Parameters:
aName independent variable unit name
Returns:
True if successful
Example:
This example sets user plot independent variable unit name as
meter
Set UserPlot1 = PlotMgr.CreateUserPlot()
UserPlot1.SetIndpUnitName("m")
Parameters:
aIndpValue independent variable value
aEntID element IDs (for element data) or node IDs (node data)
aDataValues dependent variable values
Returns:
True if successful
Example:
This example creates plot with two frames, first frame is Pressure(end of
filling) second frame is Pressure At V/P Switchover
Set Synergy = CreateObject("synergy.Synergy")
Set PlotMgr = Synergy.PlotManager()
Set IndpValues = Synergy.CreateDoubleArray()
Set node_1 = Synergy.CreateIntegerArray()
Set p_1 = Synergy.CreateDoubleArray()
PlotMgr.GetScalarData 1190, IndpValues, node_1, p_1
Set node_2 = Synergy.CreateIntegerArray()
Set p_2 = Synergy.CreateDoubleArray()
PlotMgr.GetScalarData 1760, IndpValues, node_2, p_2
Set UserPlot = PlotMgr.CreateUserPlot()
Object Build ( )
Builds plot and show it in the view. All required data must be set before this function
can be called
Returns:
plot if successful, otherwise return NULL
Example:
See UserPlot::SetScalarData
Parameters:
aName plot name
Returns:
True if successful
Example:
See
UserPlot::SetVectorData
Parameters:
aIndpValue independent variable value
aEntID element IDs (for element data) or node IDs (node data)
aT11 11 component values
aT22 22 component values
aT33 33 component values
aT33 12 component values
aT33 13 component values
Returns:
True if successful
Example:
This example does some manipulation on Average Fiber Orientation result to
create a new user plot with multiple frames.
Set IndpValues = Synergy.CreateDoubleArray()
PlotMgr.GetIndpValues 4000, IndpValues
Set Ind = Synergy.CreateDoubleArray()
Ind.AddDouble IndpValues.Val( IndpValues.Size - 1 )
Set node_1 = Synergy.CreateIntegerArray()
Set P11 = Synergy.CreateDoubleArray()
Set P22 = Synergy.CreateDoubleArray()
Set P33 = Synergy.CreateDoubleArray()
Set P12 = Synergy.CreateDoubleArray()
Set P13 = Synergy.CreateDoubleArray()
Set P23 = Synergy.CreateDoubleArray()
PlotMgr.GetTensorData 4000, Ind, node_1, P11, P22, P33, P12, P13, P23
Set DataTrans = Synergy.DataTransform()
DataTrans.Func "cos", node_1, P33, node_1, P33
Set UserPlot = PlotMgr.CreateUserPlot()
UserPlot.SetName("A new tensor plot")
UserPlot.SetDataType("ELDT")
UserPlot.SetDeptUnitName("s")
UserPlot.SetTensorData node_1, P11, P22, P33, P12, P13, P23
UserPlot.AddTensorData 1.0, node_1, P11, P22, P33, P12, P13, P23
DataTrans.Scalar node_1, P11, "*", 3.0, node_1, P11
UserPlot.AddTensorData 2.0, node_1, P11, P22, P33, P12, P13, P23
UserPlot.Build()
Parameters:
aVasD If true vector will be considered as displacement. It is
false by default
Parameters:
aEntID element IDs (for element data) or node IDs (node data)
aDataValues dependent variable values
Returns:
True if successful
Example:
This example create a plot to show mesh thickness distribution
Set Synergy = CreateObject("synergy.Synergy")
Set PlotMgr = Synergy.PlotManager()
Parameters:
aIndpValue independent variable value
aEntID element IDs (for element data) or node IDs (node data)
aVxValues x component values
aVxValues y component values
aVxValues z component values
Returns:
True if successful
Example:
Set Synergy = CreateObject("synergy.Synergy")
Set PlotMgr = Synergy.PlotManager()
Set IndpValues = Synergy.CreateDoubleArray()
PlotMgr.GetIndpValues 1420, IndpValues
Set Ind = Synergy.CreateDoubleArray()
Ind.AddDouble IndpValues.Val( IndpValues.Size - 1 )
Set node_1 = Synergy.CreateIntegerArray()
Set P1 = Synergy.CreateDoubleArray()
Set P2 = Synergy.CreateDoubleArray()
Set P3 = Synergy.CreateDoubleArray()
PlotMgr.GetVectorData 1420, Ind, node_1, P1, P2, P3
Adds a frame of xy plot data to the plot (used to create a frame animation plot, each
set of data is corresponding to one animation frame)
Parameters:
aIndpValue independent variable value
aXValues x values
aYValues y values
Returns:
True if successful
Example:
This example creates a XY plot with two curves
Set UserPlot_XY = PlotMgr.CreateUserPlot()
UserPlot_XY.SetDataType("NMDT")
UserPlot_XY.SetName("Parabolic curve")
UserPlot_XY.Build()
Parameters:
aXValues x values
aYValues y values
Returns:
True if successful
Example
Set Synergy = CreateObject("synergy.Synergy")
Set PlotMgr = Synergy.PlotManager()
'X axis
Set IndpValues = Synergy.CreateDoubleArray()
IndpValues.AddDouble(1.0)
IndpValues.AddDouble(2.0)
IndpValues.AddDouble(3.0)
'Y axis
Set deptValues = Synergy.CreateDoubleArray()
deptValues.AddDouble(1.0)
deptValues.AddDouble(4.0)
deptValues.AddDouble(9.0)
'xyplot
Set UserPlot_XY = PlotMgr.CreateUserPlot()
UserPlot_XY.SetDataType("NMDT")
UserPlot_XY.SetName("Parabolic curve")
UserPlot_XY.Build()
Parameters:
aName Unit name
Returns:
True if successful
Example:
This example sets X axis unit
name.
Parameters:
aName Unit name
Returns:
True if successful This example sets Y axis unit
name.
Example:
Set UserPlot1 = PlotMgr.CreateUserPlot()
UserPlot1.SetXYPlotYUnitName( "m")
Parameters:
aName Title name
Returns:
True if successful
Example:
This example sets XY plot X axis
title.
Parameters:
aDataValues Data values (array of node coordinates)
Returns:
True if successful
Example:
This example creates a highligh plot and set its highlight data with two pairs
of node coordinates
Set Synergy = CreateObject("synergy.Synergy")
Set PlotManager = Synergy.PlotManager()
Set userPlot = PlotManager.CreateUserPlot()
userPlot.SetName "Weld Lines(Meeting angle = 135.0[deg])"
userPlot.SetDataType "HLDT"
userPlot.SetDeptUnitName "mm"
Set DVec = Synergy.CreateDoubleArray()
DVec.AddDouble 12.5143
DVec.AddDouble 11.2268
DVec.AddDouble 36.3982
DVec.AddDouble 10.9537
DVec.AddDouble -1.5875
DVec.AddDouble 36.3982
Plot.SetHighlightData DVec
Set Plot = userPlot.Build()
Parameters:
aPlotName plot name
aMaxAngle maximum meeting angle
aForOverMolding TRUE for overmolding
Returns:
plot if successful, otherwise return NULL
Example:
This example creates a weldline plot with 135 degree as the maximum
meeting angle
Set Synergy = CreateObject("synergy.Synergy")
Set PlotManager = Synergy.PlotManager()
Set UserPlot = PlotManager.CreateUserPlot()
Set Plot = UserPlot.BuildWeldLinePlot("Weld Lines", 2.235, False)
Set Viewer = Synergy.Viewer()
Viewer.ShowPlot Plot
Parameters:
aPlotName plot name
aDirection direction. 0: X, 1: Y, 2: Z
aLCS LCS id. 0: global coordinate system, > 0: LCS id
aForOverMolding TRUE for overmolding
Returns:
plot if successful, otherwise return NULL
Example:
This example creates a clamp force plot in the x direction of the global
coordinate system
Set Synergy = CreateObject("synergy.Synergy")
Set PlotManager = Synergy.PlotManager()
Set UserPlot = PlotManager.CreateUserPlot()
Set Plot = UserPlot.BuildClampForcePlot("Clamp force", 0, 0, False)
Set Viewer = Synergy.Viewer()
Viewer.ShowPlot Plot
Parameters:
aPlotName plot name
aRltType result type, 0: Phase shift, 1: Retardation,
2:Retardance tensor
aLightWaveLengths,
wave length
light
aLightDirX x component of the direction vector
aLightDirY y component of the direction vector
aLightDirZ z component of the direction vector
Returns:
plot if successful, otherwise return NULL
Example:
This example creates a phase shift plot with 546nm as the light wave length
and (1, 0, 0) as the light direction
Set Synergy = CreateObject("synergy.Synergy")
Set PlotManager = Synergy.PlotManager()
Set UserPlot = PlotManager.CreateUserPlot()
Set Plot = UserPlot.BuildBirefringencePlot("Phase shift_+X", 0, 546, 1, 0, 0)
Set Viewer = Synergy.Viewer()
Viewer.ShowPlot Plot
Parameters:
aPlotName plot name
aDirection direction. 0: E11, 1: E22, 2: E33
aLCS LCS id. 0: global coordinate system, > 0: LCS id
Returns:
plot if successful, otherwise return NULL
Example:
This example creates a modulus plot in the x direction of the global
coordinate system
Set Synergy = CreateObject("synergy.Synergy")
Set PlotManager = Synergy.PlotManager()
Set UserPlot = PlotManager.CreateUserPlot()
Set Plot = UserPlot.BuildModulusPlot("Modulus (E11)", 0, 0)
Set Viewer = Synergy.Viewer()
Viewer.ShowPlot Plot
Parameters:
aPlotName plot name
aType deflection plot type: "DEFL", "DEFL C", "DEFL W", "DEFL W2"
aParams parameters, different aType has different parameters. "DEFL": "",
"DEFL C": scale factor, node1 ID, node2 ID..., "DEFL W": scale factor,
node1 ID, node2 ID, "DEFL W2": scale factor, shrinkage
Returns:
plot if successful, otherwise return NULL
Example:
This example creates a DEFL W deflection plot with 10 as the scale factor
Set Synergy = CreateObject("synergy.Synergy")
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
SetXYZ (double aX, double aY, double aZ)
Public Attributes
double X
X component.
double Y
Y component.
double Z
Z component.
Detailed Description
See also:
Synergy::CreateVector
Parameters:
aX X component
aY Y component
aZ Z component
Example:
Public Methods
Clear ()
AddXYZ (double aX, double aY, double aZ)
Public Attributes
long Size
Number of vectors in the array (read-only).
double X
double Y
double Z
Detailed Description
See also:
Synergy::CreateVectorArray
Clear ( )
Resets a vector array - the size of the array is 0 subsequent to this call
Example:
This example clears a VectorArray.
Parameters:
aX X component
aY Y component
aZ Z component
Example:
This example shows how to create a VectorArray and set its
values.
double X
Returns X component at a given index
Parameters:
i index between 0 and
VectorArray.Size-1
Returns:
X component at the offset i
double Y
Returns Y component at a given index
Parameters:
i index between 0 and
VectorArray.Size-1
Returns:
Y component at the offset i
double Z
Returns Z component at a given index
Parameters:
i index between 0 and
VectorArray.Size-1
Returns:
Z component at the offset i
Main Page Alphabetical List Compound List Compound Members Related Pages
Public Methods
Reset ()
ResetView (Object aViewNormal, Object aViewUp)
Rotate (double aAngleX, double aAngleY, double aAngleZ)
RotateBy (double aAngleX, double aAngleY, double aAngleZ)
RotateXBy (double aAngle)
RotateYBy (double aAngle)
RotateZBy (double aAngle)
SetViewMode (long aPerspective)
Fit ()
Pan (double aXInctFactor, double aYInctFactor)
Zoom (double aFactor)
GoToStandardView (String aName)
CreateBookmark (String aName)
DeleteBookmark (String aName)
GoToBookmark (String aName)
Print ()
SaveImage (String aFileName)
SaveAnimation (String aFileName)
EnableClippingPlaneByID (long aPlaneID, Boolean aEnable)
DeleteClippingPlaneByID (long aPlaneID)
AddBookmark (String aName, Object aViewPlaneNormal, Object aViewUp,
Object aFocalPoint, Object eyePosition, double clippingRangeMin, double
clippingRangeMax, double viewAngle, double aParallelScale)
Object GetActivePlot ()
ShowPlot (Object aPlot)
HidePlot (Object aPlot)
OverlayPlot (Object aPlot)
Object GetPlot (long aId)
Center (double aCenterX, double aCenterY)
Object WorldToDisplay (Object aWorldXyz)
Object CreateClippingPlane (Object aNormal, double aD)
Object CreateDefaultClippingPlane ()
DeleteClippingPlane (Object aPlane)
Object GetFirstClippingPlane ()
Object GetNextClippingPlane (Object aPlane)
EnableClippingPlane (Object aPlane, Boolean aEnable)
Object GetActiveClippingPlane ()
SetActiveClippingPlane (Object aPlane)
Detailed Description
You can use this class to rotate, translate, pan the model and perform other view
manipulation functions. Additionally, you can create, edit, and delete clipping planes,
create and delete bookmarks, show or hide plots, etc.
Reset ( )
Resets the view
Example
This example resets
view.
Viewer.Reset
Parameters:
aViewNormal Vector object that specifies the normal direction
aViewUp Vector object that specifies the "up" direction
Example
This example resets view with normal (0 0 1) and up direction(1
0 0)
Vector1 = Synergy.CreateVector()
Vector2 = Synergy.CreateVector()
Vector1.SetXYZ 0, 0, 1
Vector2.SetXYZ 1, 0, 0
Viewer.ResetView Vector1, Vector2
Example
This example rotates view to angle (25
25 30)
Viewer.Rotate 25, 25, 30
Parameters:
aAngleX rotation angle about the X axis
aAngleY rotation angle about the Y axis
aAngleX rotation angle about the Z axis
Example
This example rotates the view by (90 180 45) about (X Y Z)
axis.
Viewer.RotateBy 90, 180, 45
Parameters:
aAngle rotation angle about the X axis
Example
This example rotates the view about the X axis by 45
degree.
Viewer.RotateXBy 45
Parameters:
aAngle rotation angle about the Y axis
Example
This example rotates the view about Y axis by 45
degree.
Viewer.RotateYBy 45
Example
This example rotates the view about the Z axis by 45
degree.
Viewer.RotateZBy 45
Parameters:
aPerspective ; specify:
• 0 for parallel projection and
• 1 for perspective projection
Example
Thix example set view mode to be parallel
project.
Viewer.SetViewMode 0
Fit ( )
Fits the model display to the window
Example
This example fits the model display to the
window.
Viewer.Fit
Parameters:
aXFactor pan factor along the X axis; specify values < 0 to move to the left
and values > 0 to move to the right; factors are normalized to the
screen width, i.e., a factor of 1 moves the model by one
screen-width to the right
aYFactor pan factor along the Y axis; specify values < 0 to move to the
bottom and values > 0 to move to the top; factors are normalized to
the screen height, i.e., a factor of 1 moves the model by one
screen-height to the top
Example
This example pans view by (0.2 0.3).
Viewer.Pan 0.2, 0.3
Example
This example zooms the view by 2.5
times.
Viewer.Zoom 2.5
Parameters:
aName standard view name; can be one of
• Front
• Back
• Right
• Left
• Top
• Bottom
• FrontLeft
• FrontRight
• BackLeft
• BackRight
• Isometric
Example
This example shows standard view "BackRight".
Viewer.GoToStandardView "BackRight"
Parameters:
aName bookmark name
Example
This example creates bookmark
Viewer.CreateBookmark "SouthEast"
Parameters:
aName bookmark name
Example
This example deletes view bookmark
"SouthEast"
Viewer.DeleteBookmark "SouthEast"
Parameters:
aName bookmark name
Example
This example displays the model with bookmarked view
"SouthEast".
Viewer.GoToBookmark "SouthEast"
Print ( )
Prints the view to the standard printer
Example
This example prints current view to standard
printer.
Viewer.Print
Parameters:
aFileName file name
Note:
The file format will be automatically determined from the file
extension
Example
This example saves view image to "c:\temp\myImage.jpg"
Viewer.SaveImage "c:\temp\myImage.jpg"
Parameters:
aFileName file name
Note:
The file format will be automatically determined from the file
extension
Example
This example saves the animation to "c:\temp\myAnimation.avi"
Viewer.SaveAnimation "c:\temp\myAnimation.avi"
Parameters:
aPlaneID clipping plane ID
aEnable True to enable; False to disable
See also:
EnableClippingPlane
Example
This example enables clipping plane with
ID 4.
Viewer.EnableClippingPlaneByID 4, True
Parameters:
aPlaneID clipping plane ID
See also:
DeleteClippingPlane
Example
This example deletes clipping plane with
ID 5.
Viewer.DeleteClippingPlaneByID 5
Parameters:
aName bookmark name
aViewPlaneNormal view plane normal
aViewUp view up vector
aFocalPoint focal point coordinates
aEyePosition eye position cooridinates
aClippingRangeMin minimum of the clipping range
aClippingRangeMax maximum of the clipping range
aViewAngle view angle
Example
This example adds a book mark.
Set Syn = CreateObject("synergy.Synergy")
Set Viewer = Syn.Viewer()
Set ViewNormal = Syn.CreateVector()
ViewNOrmal.SetXYZ 0.0, 0.0, 1.0
Set ViewUp = Syn.CreateVector()
ViewUp.SetXYZ 0.0, 1.0, 0.0
Set FocalPoint = Syn.CreateVector()
FocalPoint.SetXYZ 40, 50, 8
Set EyePosition = Syn.CreateVector()
EyePosition.SetXYZ 40, 50, 6500
Viewer.AddBookmark "MyBookmark", ViewNormal, ViewUp, FocalPoint, EyePosition, 60
Object GetActivePlot ( )
Gets the active plot, if any
Returns:
Plot object
Parameters:
aPlot Plot object
Example:
This example shows plot with
ID 14.
Set Plot = Viewer.GetPlot(14)
Viewer.ShowPlot Plot
Parameters:
aPlot Plot object
Example:
This example hides plot 14.
Set Plot = Viewer.GetPlot(14)
Viewer.HidePlot Plot
Parameters:
aPlot Plot object that is to be overlaid
Example
Parameters:
aId plot ID
Returns:
Plot object
Example:
This example gets plot with ID 3.
Set Plot = Viewer.GetPlot( 3 )
Parameters:
aCenterX specify values between 0 (left) to 1 (right)
aCenterY specify values between 0 (bottom) to 1 (top)
Example:
This example centers the view at (0.1 0.4)
Viewer.Center 0.1, 0.4
Parameters:
aWorldXyz Vector object that specifies a world coordinate
Returns:
Vector object that corresponds to the screen coordinate; screen coordinates
are normalized between 0 and 1 as described in Center
Example:
This example converts world coordinate (10 10 10) to screen coordinates.
Vec = Synergy.CreateVector()
Vec.AddXYZ 10, 10, 10
Vec1 = Viewer.WorldToDisplay Vec
Parameters:
aNormal Vector object that specifies the clipping plane normal
aD distance from the origin to the clipping plane
Returns:
EntList object containing the clipping plane that was created
Example
This example creates a new clipping plane with given vector and
ID 5.
Vec = Synergy.CreateVector()
Vec.AddXYZ 10, 20, 14
Viewer.CreateClippingPlane Vec, 5
Object CreateDefaultClippingPlane ( )
Creates a "default" clipping plane
Returns:
EntList object containing the clipping plane that was
created
Example
This example creates a "default" clipping plane.
Viewer.CreateDefaultClippingPlane
Parameters:
aPlane EntList object containing the clipping plane to be
deleted
See also:
DeleteClippingPlaneByID
Example:
This example deletes first clipping plane.
ClipPlane = Viewer.GetFirstClippingPlane
Viewer.DeleteClippingPlane ClipPlane
Object GetFirstClippingPlane ( )
Gets the first clipping plane in the view
Returns:
EntList object containing the first clipping
plane
Example:
This example enables first clipping plane.
Parameters:
aPlane EntList object containing a clipping
plane
Returns:
EntList object containing the next clipping
plane
Example:
This example enables second clipping plane.
ClipPlane = Viewer.GetFirstClippingPlane
ClipPlane2 = Viewer.GetNextClippingPlane( ClipPlane )
Viewer.EnableClippingPlane ClipPlane2 False
Parameters:
aPlane EntList object containing a clipping
plane
aEnable True to enable; False to disable
See also:
EnableClippingPlaneByID
Example:
This example disable first clipping plane.
ClipPlane = Viewer.GetFirstClippingPlane
Viewer.EnableClippingPlane ClipPlane False
Object GetActiveClippingPlane ( )
Gets the active clipping plane
Returns:
EntList object containing the active clipping
plane
Example:
This example gets active clipping plane.
Plane = Viewer.GetActiveClippingPlane
Example:
This example sets first clipping plane active.
Plane = Viewer.GetFirstClippingPlane()
Viewer.SetActiveClippingPlane Plane
Parameters:
aPlot plot
aFrame index of the frame to be shown
Example:
This example shows animation frame 7 of first
plot.
Plot = Viewer.GetFirstPlot
Viewer.ShowPlotFrame Plot 7
Parameters:
aFileName file name
Note:
The file format will be automatically determined from the file extension
Parameters:
aX X size
aY Y size
Example
This example saves view image to "c:\temp\myImage.jpg" wize X size 400 and
Y size 300
Viewer.SaveImage2 "c:\temp\myImage.jpg", 400, 300
Example
This example changes the view size to 400x300
pixels
Viewer.SetViewSize 400, 300
double GetRotationX ( )
Shows the current rotation angle in X axis
Example:
This example shows X rotation angle.
MsgBox "Rotation X: " & Viewer.GetRotationX
double GetRotationY ( )
Shows the current rotation angle in Y axis
Example:
This example shows Y rotation angle.
MsgBox "Rotation Y: " & Viewer.GetRotationY
double GetRotationZ ( )
Shows the current rotation angle in Z axis
Example:
This example shows Z rotation angle.
MsgBox "Rotation Z: " & Viewer.GetRotationZ
Main Page Alphabetical List Compound List Compound Members Related Pages
Here is a list of all documented class members with links to the classes they belong to:
-a-
• AbortJob() : JobMgr
• AbortJobByID() : JobMgr
• AbortJobByIndex() : JobMgr
• AbortMyJobsOnServer() : JobMgr
• AbortMyJobsOnServerByAddress() : JobMgr
• AbortMyJobsOnServerByName() : JobMgr
• ActivateLayer() : LayerManager
• ActivateLCS() : Modeler
• AddBookmark() : Viewer
• AddDefaultPlots() : PlotMgr
• AddDouble() : DoubleArray
• AddFile() : StudyDoc
• AddInteger() : IntegerArray
• AddProbePlotProbeLine() : Plot
• Address : Server
• AddScalarData() : UserPlot
• AddServer() : JobMgr
• AddTensorData() : UserPlot
• AddXYPlotCurve() : Plot
• AddXYPlotData() : UserPlot
• AddXYZ() : VectorArray
• AlignGates : ModelDuplicator
• AlignNodes() : MeshEditor
• AlignNormals() : MeshEditor
• AnalysisName : StudyDoc, Job
• AnalysisSequence : StudyDoc
• AnalysisStatus() : StudyDoc
• AnalyzeNow() : StudyDoc
• AnalyzeNow2() : StudyDoc
• ApplyAnchorPlane() : PlotMgr
• ApplyBestFit() : Plot
• AssignToLayer() : LayerManager
• AutoFix() : MeshEditor
• AutomaticTetraOptimization : MeshGenerator
• AveAspectRatio : MeshSummary
-b-
• BeamsCount : MeshSummary
• Bottom : RunnerGenerator
• BoundaryConditions : Synergy
• BreakCurves() : Modeler
• Build : UserPlot, Synergy
• BuildBirefringencePlot() : UserPlot
• BuildClampForcePlot() : UserPlot
• BuildDeflectionPlot() : UserPlot
• BuildModulusPlot() : UserPlot
• BuildWeldlinePlot() : UserPlot
• ByColumns : ModelDuplicator
-c-
• Center() : Viewer
• Centered : MoldSurfaceGenerator
• ChordHeight : MeshGenerator
• ChordHeightControl : MeshGenerator
• ChordHtProximity : MeshGenerator
• CircuitGenerator : Synergy
• Clear() : VectorArray
• ClientAddress : Job
• ClientPort : Job
• Close() : StudyDoc, Project
• CommandLine : Job
• CommitChanges() : PropertyEditor
• Compact() : Project
• ConnectivityRegions : MeshSummary
• ConvertToBeams() : MeshEditor
• ConvertToString() : EntList, BoundaryList
• ConvertWedgesToTetras() : MeshEditor
• CreateAnchorPlane() : PlotMgr
• CreateArcByAngle() : Modeler
• CreateArcByPoints() : Modeler
• CreateBeams() : MeshEditor
• CreateBeamsByPoints() : MeshEditor
• CreateBookmark() : Viewer
• CreateBoolAndPredicate() : PredicateManager
• CreateBoolNotPredicate() : PredicateManager
• CreateBoolOrPredicate() : PredicateManager
• CreateBoolXorPredicate() : PredicateManager
• CreateBoundaryList() : Modeler
• CreateClippingPlane() : Viewer
• CreateCriticalDimension() : BoundaryConditions
• CreateCurveByConnect() : Modeler
• CreateDefaultClippingPlane() : Viewer
• CreateDoubleArray() : Synergy
-b- 252
MPI Application Programming Interface
• CreateEdgeLoads() : BoundaryConditions
• CreateElementalLoads() : BoundaryConditions
• CreateEntityList() : StudyDoc, PropertyEditor, Modeler, MeshEditor,
LayerManager, DiagnosisManager, BoundaryConditions
• CreateFixedConstraints() : BoundaryConditions
• CreateGeneralConstraints() : BoundaryConditions
• CreateHoleByBoundary() : Modeler
• CreateHoleByNodes() : Modeler
• CreateIntegerArray() : Synergy
• CreateLabelPredicate() : PredicateManager
• CreateLayer() : LayerManager
• CreateLayerByName() : LayerManager
• CreateLCSByPoints() : Modeler
• CreateLine() : Modeler
• CreateNDBC() : BoundaryConditions
• CreateNDBCAtXYZ() : BoundaryConditions
• CreateNodalLoads() : BoundaryConditions
• CreateNodeByIntersect() : Modeler
• CreateNodeByXYZ() : Modeler
• CreateNodesBetween() : Modeler
• CreateNodesByDivide() : Modeler
• CreateNodesByOffset() : Modeler
• CreatePinConstraints() : BoundaryConditions
• CreatePlotByDsID() : PlotMgr
• CreatePlotByName() : PlotMgr
• CreatePressureLoads() : BoundaryConditions
• CreateProperty() : PropertyEditor
• CreatePropertyPredicate() : PredicateManager
• CreatePropTypePredicate() : PredicateManager
• CreateRegionByBoundary() : Modeler
• CreateRegionByExtrusion() : Modeler
• CreateRegionByNodes() : Modeler
• CreateRegionByRuling() : Modeler
• CreateSpline() : Modeler
• CreateSpringConstraints() : BoundaryConditions
• CreateTemperatureLoads() : BoundaryConditions
• CreateTet() : MeshEditor
• CreateThicknessPredicate() : PredicateManager
• CreateTri() : MeshEditor
• CreateUserPlot() : PlotMgr
• CreateVector() : Synergy
• CreateVectorArray() : Synergy
• CreateVolumeLoads() : BoundaryConditions
• CreateWedge() : MeshEditor
• CreateXSectionPredicate() : PredicateManager
• CreateXYPlotByName() : PlotMgr
-c- 253
MPI Application Programming Interface
-d-
• DataHasXYPlotByDsID() : PlotMgr
• DataHasXYPlotByName() : PlotMgr
• DataTransform : Synergy
• DefaultServer : JobMgr
• Delete() : MeshEditor
• DeleteAnchorPlaneByIndex() : PlotMgr
• DeleteAnchorPlaneByName() : PlotMgr
• DeleteBookmark() : Viewer
• DeleteClippingPlane() : Viewer
• DeleteClippingPlaneByID() : Viewer
• DeleteField() : Property
• DeleteItemByIndex() : Project
• DeleteItemByName() : Project
• DeleteLayer() : LayerManager
• DeleteOld : RunnerGenerator, CircuitGenerator
• DeletePlot() : PlotMgr
• DeletePlotByDsID() : PlotMgr
• DeletePlotByName() : PlotMgr
• DeleteProperty() : PropertyEditor
• DeleteResults() : StudyDoc
• DeleteServer() : JobMgr
• DeleteServerByAddress() : JobMgr
• DeleteServerByName() : JobMgr
• DeleteXYPlotCurve() : Plot
• DiagnosisManager : Synergy
• Diameter : CircuitGenerator
• Dimensions : MoldSurfaceGenerator
• Distance : CircuitGenerator
• DropDiameter : RunnerGenerator
• DropTaperAngle : RunnerGenerator
• DuplicatedBeams : MeshSummary
• DuplicateStudyByIndex() : Project
• DuplicateStudyByIndex2() : Project
• DuplicateStudyByName() : Project
• DuplicateStudyByName2() : Project
-e-
• EdgeLength : MeshGenerator
• ElementReduction : MeshGenerator
• EnableClippingPlane() : Viewer
• EnableClippingPlaneByID() : Viewer
• Entity() : EntList, BoundaryList
• ExpandLayer() : LayerManager
• Export() : Project
• Export2() : Project
• ExportAnalysisLog() : StudyDoc
-d- 254
MPI Application Programming Interface
• ExportMeshLog() : StudyDoc
• ExportModel() : Project
• ExportModel2() : Project
-f-
• FetchProperty() : PropertyEditor
• FieldDescription : Property
• FieldValues : Property
• FillHole() : MeshEditor
• FindDatasetIdByName() : PlotMgr
• FindDatasetIdsByName() : PlotMgr
• FindJobByID() : JobMgr
• FindLayerByName() : LayerManager
• FindPlotByName() : PlotMgr
• FindPlotByName2() : PlotMgr
• FindProperty() : PropertyEditor, Modeler
• FindServer() : Job
• FinishTime : Job
• Fit() : Viewer
• FlipNormals() : MeshEditor
• FreeEdgeCount : MeshSummary
• FromVBSArray() : IntegerArray, DoubleArray
• Func() : DataTransform
• FusionArea : MeshSummary
-g-
• GateAngle : RunnerGenerator
• GateDiameter : RunnerGenerator
• GateLength : RunnerGenerator
• GatePlaneZ : RunnerGenerator
• GatesByLength : RunnerGenerator
• GatesCenterX : RunnerGenerator
• GatesCenterY : RunnerGenerator
• GateTaperAngle : RunnerGenerator
• Generate() : RunnerGenerator, MoldSurfaceGenerator, ModelDuplicator,
CircuitGenerator, MeshGenerator
• GetActiveClippingPlane() : Viewer
• GetActiveIndpVar() : Plot
• GetActivePlot() : Viewer
• GetAnchorPlaneIndex() : PlotMgr
• GetAnchorPlaneNode() : PlotMgr
• GetAnimationType() : Plot
• GetAspectRatioDiagnosis() : DiagnosisManager
• GetAspectRatioDiagnosis2() : DiagnosisManager
• GetCapping() : Plot
• GetColorBands() : Plot
-e- 255
MPI Application Programming Interface
• GetColorScale() : Plot
• GetComponent() : Plot
• GetConnectivityDiagnosis() : DiagnosisManager
• GetConnectivityDiagnosis2() : DiagnosisManager
• GetDataDisplayFormat() : PlotMgr
• GetDataID() : Plot
• GetDataNbComponents() : PlotMgr, Plot
• GetDataType() : PlotMgr, Plot
• GetDeflectionOverlayWithMesh() : Plot
• GetDeflectionScaleDirection() : Plot
• GetDeflectionScaleFactor() : Plot
• GetDeflectionShowAnchorPlane() : Plot
• GetEdgeDisplay() : Plot
• GetEdgesDiagnosis() : DiagnosisManager
• GetEdgesDiagnosis2() : DiagnosisManager
• GetElemNodes() : StudyDoc
• GetEntityID() : StudyDoc
• GetEntityLayer() : StudyDoc
• GetEntityProperty() : PropertyEditor
• GetExtendedColor() : Plot
• GetFirst() : LayerManager
• GetFirstAnimationFrameIndex() : Plot
• GetFirstBeam() : StudyDoc
• GetFirstClippingPlane() : Viewer
• GetFirstField() : Property
• GetFirstNode() : StudyDoc
• GetFirstPlot() : PlotMgr
• GetFirstProperty() : PropertyEditor
• GetFirstReportName() : Project
• GetFirstStudyName() : Project
• GetFirstTet() : StudyDoc
• GetFirstTri() : StudyDoc
• GetIndpValues() : PlotMgr
• GetIndpVarCount() : PlotMgr
• GetJob() : JobMgr
• GetLastAnimationFrameIndex() : Plot
• GetMatchInfoDiagnosis() : DiagnosisManager
• GetMaxValue() : Plot
• GetMeshFill() : Plot
• GetMeshSummary() : DiagnosisManager
• GetMinValue() : Plot
• GetName() : Plot, LayerManager
• GetNext() : LayerManager
• GetNextBeam() : StudyDoc
• GetNextClippingPlane() : Viewer
• GetNextField() : Property
• GetNextNode() : StudyDoc
• GetNextPlot() : PlotMgr
• GetNextProperty() : PropertyEditor
• GetNextPropertyOfType() : PropertyEditor
• GetNextReportName() : Project
-g- 256
MPI Application Programming Interface
• GetNextStudyName() : Project
• GetNextTet() : StudyDoc
• GetNextTri() : StudyDoc
• GetNodalAveraging() : Plot
• GetNodeCoord() : StudyDoc
• GetNonmeshData() : PlotMgr
• GetNotes() : Plot
• GetNumberOfAnchorPlanes() : PlotMgr
• GetNumberOfAnimationFrames() : Plot
• GetNumberOfContours() : Plot
• GetNumberOfFrames() : Plot
• GetNumberOfIndpVars() : Plot
• GetNumberOfResultsFiles() : PlotMgr
• GetOccurrenceDiagnosis() : DiagnosisManager
• GetOccurrenceDiagnosis2() : DiagnosisManager
• GetOrientationDiagnosis() : DiagnosisManager
• GetOrientationDiagnosis2() : DiagnosisManager
• GetOverlapDiagnosis() : DiagnosisManager
• GetOverlapDiagnosis2() : DiagnosisManager
• GetPlot() : Viewer
• GetPlotMethod() : Plot
• GetPlotType() : Plot
• GetProbePlotNumberOfProbeLines() : Plot
• GetProbePlotProbeLine() : Plot
• GetResultPrefix() : StudyDoc
• GetResultsFileName() : PlotMgr
• GetRotationX() : Viewer
• GetRotationY() : Viewer
• GetRotationZ() : Viewer
• GetScalarData() : PlotMgr
• GetScaleOption() : Plot
• GetServer() : JobMgr
• GetSmoothShading() : Plot
• GetSurfWithBadTrimCurv() : DiagnosisManager
• GetSurfWithFreeTrimCurv() : DiagnosisManager
• GetTensorData() : PlotMgr
• GetThicknessDiagnosis() : DiagnosisManager
• GetThicknessDiagnosis2() : DiagnosisManager
• GetUnits() : Synergy
• GetUseSingleColor() : Plot
• GetVectorData() : PlotMgr
• GetXYPlotAutoRangeX() : Plot
• GetXYPlotAutoRangeY() : Plot
• GetXYPlotLegendRectBottom() : Plot
• GetXYPlotLegendRectHeight() : Plot
• GetXYPlotLegendRectLeft() : Plot
• GetXYPlotLegendRectWidth() : Plot
• GetXYPlotMaxNumberOfCurves() : Plot
• GetXYPlotMaxX() : Plot
• GetXYPlotMaxY() : Plot
• GetXYPlotMinX() : Plot
-g- 257
MPI Application Programming Interface
• GetXYPlotMinY() : Plot
• GetXYPlotNumberOfCurves() : Plot
• GetXYPlotOverlayWithMesh() : Plot
• GetXYPlotShowLegend() : Plot
• GetXYPlotShowPoints() : Plot
• GetXYPlotTitleX() : Plot
• GetXYPlotTitleY() : Plot
• GetZeroAreaElementsDiagnosis() : DiagnosisManager
• GetZeroAreaElementsDiagnosis2() : DiagnosisManager
• GlobalMerge() : MeshEditor
• GoToBookmark() : Viewer
• GoToStandardView() : Viewer
-h-
• HaltBatchQueue() : JobMgr
• HideAllOtherLayers() : LayerManager
• HidePlot() : Viewer
• HotRunners : RunnerGenerator
-i-
• ID : Property
• ImportFile() : Synergy
• ImportMachineData() : StudyDoc
• ImportOptions : Synergy
• ImportProcessCondition() : StudyDoc
• ImportProcessVariation() : StudyDoc
• InsertNode() : MeshEditor
• InsertNodeInTet() : MeshEditor
• InsertNodeInTetByNodes() : MeshEditor
• InsertNodeInTri() : MeshEditor
• IntersectionElements : MeshSummary
• IsCheckAnalysis() : Job
-j-
• JobID : Job
• JobManager : Synergy
• JobType : Job
-l-
• LayerManager : Synergy
-h- 258
MPI Application Programming Interface
-m-
• MakeRegion() : MeshEditor
• MakeRegion2() : MeshEditor
• ManifoldEdgeCount : MeshSummary
• MarkAllResultsForExport() : PlotMgr
• MarkResultForExport() : PlotMgr
• Match : MeshGenerator
• MatchNodes() : MeshEditor
• MatchRatio : MeshSummary
• MaterialSelector : Synergy
• MaxAspectRatio : MeshSummary
• MaximumMatchDistance : MeshGenerator
• MaximumMatchDistanceOption : MeshGenerator
• MDLAutoEdgeSelect : ImportOptions
• MDLChordAngle : ImportOptions
• MDLChordAngleSelect : ImportOptions
• MDLContactMeshType : ImportOptions
• MDLEdgeLength : ImportOptions
• MDLKernel : ImportOptions
• MDLMesh : ImportOptions
• MDLSliverRemoval : ImportOptions
• MDLSurfaces : ImportOptions
• MDLTetraLayers : ImportOptions
• MergeCavityRunner : MeshGenerator
• MergeNodes() : MeshEditor
• MergeTolerance : MeshGenerator
• MeshEditor : Synergy
• MeshGenerator : Synergy
• MeshNow() : StudyDoc
• MeshStatus() : StudyDoc
• MeshType : StudyDoc, ImportOptions
• MeshVolume : MeshSummary
• MinAspectRatio : MeshSummary
• ModelDuplicator : Synergy
• Modeler : Synergy
• ModelName : Job
• MoldingProcess : StudyDoc
• MoldSurfaceGenerator : Synergy
• MoveBeamNode() : MeshEditor
• MoveNDBC() : BoundaryConditions
• MoveNDBCToXYZ() : BoundaryConditions
• MoveNodes() : MeshEditor
• MoveNodeToEdge() : MeshEditor
-n-
• Name : Server, Property
• NewFolder() : Project
-m- 259
MPI Application Programming Interface
• NewProject() : Synergy
• NewStudy() : Project
• NodesCount : MeshSummary
• NonManifoldEdgeCount : MeshSummary
• NumberOfAnalyses : StudyDoc
• NumberOfJobs : JobMgr
• NumberOfServers : JobMgr
• NumCavities : ModelDuplicator
• NumChannels : CircuitGenerator
• NumCols : ModelDuplicator
• NumRows : ModelDuplicator
• NurbsMesher : MeshGenerator
-o-
• Op() : DataTransform
• OpenItemByIndex() : Project
• OpenItemByName() : Project
• OpenItemCompareMode() : Project
• OpenProject() : Synergy
• OpenRecentProject() : Synergy
• Orient() : MeshEditor
• Origin : MoldSurfaceGenerator
• Overhang : CircuitGenerator
• OverlapElements : MeshSummary
• OverlayPlot() : Viewer
-p-
• Pan() : Viewer
• PartCenterX : RunnerGenerator
• PartCenterY : RunnerGenerator
• PartingZ : RunnerGenerator
• Path : Project
• PlotManager : Synergy
• PostMeshActions : MeshGenerator
• PredicateManager : Synergy
• Print() : Viewer
• Priority : Job
• Project : Synergy
• ProjectMesh() : MeshEditor
• PropertyEditor : Synergy
• PurgeNodes() : MeshEditor
-n- 260
MPI Application Programming Interface
-r-
• Redo() : StudyDoc
• RefineTetras() : MeshEditor
• Reflect() : Modeler
• Regenerate() : Plot
• RemeshAll : MeshGenerator
• RemeshArea() : MeshEditor
• RemeshArea2() : MeshEditor
• RemoveEmptyLayers() : LayerManager
• RemoveUnusedProperties() : PropertyEditor
• RenameItemByIndex() : Project
• RenameItemByName() : Project
• Reset() : Viewer
• ResetView() : Viewer
• RestartFile : Job
• RestoreOriginalPosition() : Plot
• ResultName : Job
• Rotate() : Viewer, Modeler
• Rotate3Pts() : Modeler
• RotateBy() : Viewer
• RotateXBy() : Viewer
• RotateYBy() : Viewer
• RotateZBy() : Viewer
• RunnerDiameter : RunnerGenerator
• RunnerGenerator : Synergy
• RunnerVolume : MeshSummary
-s-
• Save() : StudyDoc
• SaveAll() : Project
• SaveAnimation() : Viewer
• SaveAs() : StudyDoc
• SaveImage() : Viewer
• SaveImage2() : Viewer
• SaveOptions() : MeshGenerator
• SaveResultDataInPatran() : PlotMgr
• SaveResultDataInXML() : PlotMgr
• SaveResultDataInXML2() : PlotMgr
• SaveResultInPatran() : Plot
• SaveResultInPatran2() : Plot
• SaveResultInXML() : Plot
• SaveResultInXML2() : Plot
• SaveWarpedShapeInSTL() : Plot
• SaveWarpedShapeInSTL2() : Plot
• SaveWarpedShapeInUDM() : Plot
• SaveXYPlotCurveData() : Plot
• Scalar() : DataTransform
-r- 261
MPI Application Programming Interface
• Scale() : Modeler
• ScaleMeshDensity() : Modeler
• ScheduleAnalysisOnStudy() : Project
• ScheduleCheckOnStudy() : Project
• ScheduleMeshOnStudy() : Project
• ScheduleTime : Job
• Select() : MaterialSelector
• SelectFromPredicate() : EntList
• SelectFromSavedList() : EntList
• SelectFromString() : EntList, BoundaryList
• Selection : StudyDoc
• SetActiveClippingPlane() : Viewer
• SetActiveIndpVar() : Plot
• SetAnchorPlaneName() : PlotMgr
• SetAnchorPlaneNodes() : PlotMgr
• SetAnimationType() : Plot
• SetApplicationWindowPos() : Synergy
• SetCapping() : Plot
• SetColorBands() : Plot
• SetColorScale() : Plot
• SetComponent() : Plot
• SetDataDisplayFormat() : PlotMgr
• SetDataType() : UserPlot
• SetDeflectionOverlayWithMesh() : Plot
• SetDeflectionScaleDirection() : Plot
• SetDeflectionScaleFactor() : Plot
• SetDeflectionShowAnchorPlane() : Plot
• SetDeptName() : UserPlot
• SetDeptUnitName() : UserPlot
• SetEdgeDisplay() : Plot
• SetExtendedColor() : Plot
• SetFirstAnimationFrameIndex() : Plot
• SetFixedIndpVarValue() : Plot
• SetHighlightData() : UserPlot
• SetIndpName() : UserPlot
• SetIndpUnitName() : UserPlot
• SetLastAnimationFrameIndex() : Plot
• SetLayerName() : LayerManager
• SetMaxValue() : Plot
• SetMeshFill() : Plot
• SetMeshSize() : Modeler
• SetMinValue() : Plot
• SetName() : UserPlot, Plot
• SetNodalAveraging() : Plot
• SetNotes() : Plot
• SetNumberOfAnimationFrames() : Plot
• SetNumberOfContours() : Plot
• SetNumberOfFrames() : Plot
• SetPlotMethod() : Plot
• SetProbePlotProbeLine() : Plot
• SetProhibitedGateNodes() : BoundaryConditions
-s- 262
MPI Application Programming Interface
• SetProperty() : PropertyEditor
• SetScalarData() : UserPlot
• SetScaleOption() : Plot
• SetSmoothShading() : Plot
• SetTypeColor() : LayerManager
• SetTypeDisplayOption() : LayerManager
• SetTypeShowLabels() : LayerManager
• SetTypeVisible() : LayerManager
• SetUnits() : Synergy
• SetUseSingleColor() : Plot
• SetVectorAsDisplacement() : UserPlot
• SetVectorData() : UserPlot
• SetViewMode() : Viewer
• SetViewSize() : Viewer
• SetXYPlotAutoRangeX() : Plot
• SetXYPlotAutoRangeY() : Plot
• SetXYPlotData() : UserPlot
• SetXYPlotLegendRectBottom() : Plot
• SetXYPlotLegendRectHeight() : Plot
• SetXYPlotLegendRectLeft() : Plot
• SetXYPlotLegendRectWidth() : Plot
• SetXYPlotMaxNumberOfCurves() : Plot
• SetXYPlotMaxX() : Plot
• SetXYPlotMaxY() : Plot
• SetXYPlotMinX() : Plot
• SetXYPlotMinY() : Plot
• SetXYPlotOverlayWithMesh() : Plot
• SetXYPlotShowLegend() : Plot
• SetXYPlotShowPoints() : Plot
• SetXYPlotTitle() : Plot
• SetXYPlotTitleX() : Plot
• SetXYPlotTitleY() : Plot
• SetXYPlotXTitle() : UserPlot
• SetXYPlotXUnitName() : UserPlot
• SetXYPlotYUnitName() : UserPlot
• SetXYZ() : Vector
• ShowAllLayers() : LayerManager
• ShowAspectRatio() : DiagnosisManager
• ShowAspectRatio2() : DiagnosisManager
• ShowBeamElementCount() : DiagnosisManager
• ShowBubblerBaffleCheck() : DiagnosisManager
• ShowCentroidCloseness() : DiagnosisManager
• ShowConnect() : DiagnosisManager
• ShowConnect2() : DiagnosisManager
• ShowCoolingCircuitValidity() : DiagnosisManager
• ShowDimensions() : DiagnosisManager
• ShowEdges() : DiagnosisManager
• ShowEdges2() : DiagnosisManager
• ShowLabels() : LayerManager
• ShowLDRatio() : DiagnosisManager
• ShowMatchInfo() : DiagnosisManager
-s- 263
MPI Application Programming Interface
• ShowMatchInfo2() : DiagnosisManager
• ShowOccurrence() : DiagnosisManager
• ShowOccurrence2() : DiagnosisManager
• ShowOrient() : DiagnosisManager
• ShowOrient2() : DiagnosisManager
• ShowOverlapping() : DiagnosisManager
• ShowOverlapping2() : DiagnosisManager
• ShowOverlapping3() : DiagnosisManager
• ShowPlot() : Viewer
• ShowPlotFrame() : Viewer
• ShowSummary() : DiagnosisManager
• ShowSurfWithBadTrimCurv() : DiagnosisManager
• ShowSurfWithFreeTrimCurv() : DiagnosisManager
• ShowThickness() : DiagnosisManager
• ShowThickness2() : DiagnosisManager
• ShowTrappedBeam() : DiagnosisManager
• ShowZeroAreaElements() : DiagnosisManager
• ShowZeroAreaElements2() : DiagnosisManager
• Size : VectorArray, IntegerArray, EntList, DoubleArray, BoundaryList
• Smoothing : MeshGenerator
• SmoothNodes() : MeshEditor
• SourceGeomType : MeshGenerator
• Spacing : CircuitGenerator
• SprueDiameter : RunnerGenerator
• SprueLength : RunnerGenerator
• SprueTaperAngle : RunnerGenerator
• SprueX : RunnerGenerator
• SprueY : RunnerGenerator
• StartBatchQueue() : JobMgr
• StartTime : Job
• Status : Server, Job
• StitchFreeEdges2() : MeshEditor
• StudyDoc : Synergy
• StudyName : StudyDoc
• SwapEdge() : MeshEditor
-t-
• TetraLayers : MeshGenerator
• TetraMaxAR : MeshGenerator
• TetraRefine : MeshGenerator
• TetrasCount : MeshSummary
• ToggleLayer() : LayerManager
• Top : RunnerGenerator
• TopGateEndDiameter : RunnerGenerator
• TopGateLength : RunnerGenerator
• TopGateStartDiameter : RunnerGenerator
• TopRunnerZ : RunnerGenerator
• ToVBSArray() : IntegerArray, DoubleArray
-t- 264
MPI Application Programming Interface
• Translate() : Modeler
• Trapezoidal : RunnerGenerator
• TrapezoidAngle : RunnerGenerator
• TrianglesCount : MeshSummary
• Type : Property
-u-
• Undo() : StudyDoc
• Units : ImportOptions
• Unoriented : MeshSummary
• UpdateDimensionalDisplay() : DiagnosisManager
• UpdateThicknessDisplay() : DiagnosisManager
• UseActiveLayer : MeshGenerator
• UseHoses : CircuitGenerator
• UseMDL : ImportOptions
• User : Job
• UseTetrasOnEdge : MeshGenerator
-v-
• Val() : IntegerArray, DoubleArray
• Version : Synergy
• Viewer : Synergy
-w-
• WarpQueryBegin() : PlotMgr, Plot
• WarpQueryEnd() : PlotMgr, Plot
• WarpQueryNode() : PlotMgr, Plot
• WorkingFolder : Job
• WorldToDisplay() : Viewer
-x-
• X : VectorArray, Vector
• XAlign : CircuitGenerator
• XSpacing : ModelDuplicator
-y-
• Y : VectorArray, Vector
• YSpacing : ModelDuplicator
-u- 265
MPI Application Programming Interface
-z-
• Z : VectorArray, Vector
• ZeroBeams : MeshSummary
• ZeroTriangles : MeshSummary
• Zoom() : Viewer
-z- 266
MPI Application Programming Interface
Main Page Alphabetical List Compound List Compound Members Related Pages
Boolean
The Boolean subtype is used to for logical values that can have one of the two values:
True or False
Example:
Set LayerManager = Synergy.LayerManager()
Set EntList = LayerManager.CreateEntityList()
EntList.SelectFromString "L3 "
LayerManager.SetTypeVisible EntList, 7, False
Double
The Double subtype is used for floating point numbers that can range from
-1.798E308 to 1.798E308
Example
Vector.AddXYZ 10.89, 3.456, 9.22
Long
The Long subtype is used for signed integer values that can range from -2^32 to 2^32
Example
Plot.SetNumberOfFrames 10
String
The String subtype is used for character strings. String lengths are essentially
unlimited of characters.
Example
Plot.SetPlotName "XY Plot"
Object
The Object subtype is used for all automation objects
Example
Both Syn and SD below are objects.
Set Syn = CreateObject("synergy.Synergy")
Set SD = Syn.StudyDoc
Object 269