public interface GeomSequence extends GeomContainer, IPlotAndImageExport
Modifier and Type | Method and Description |
---|---|
double |
absRepairTol()
Returns default absolute repair tolerance used when creating new
features.
|
void |
absRepairTol(double absrepairtol)
Sets default absolute repair tolerance to use when creating new
features.
|
java.lang.String |
angularUnit()
Returns the angular unit.
|
GeomSequence |
angularUnit(java.lang.String angularUnit)
Sets the angular unit.
|
ModelParam |
argument()
Deprecated.
Use
inputParam() instead. |
boolean |
autoBuildNew()
Get the value of the automatic build setting for new geometry
operations.
|
GeomSequence |
autoBuildNew(boolean auto)
Set the automatic build setting for new geometry operations.
|
java.lang.String |
autoRebuild()
Get the value of the geometry's automatic rebuild setting.
|
GeomSequence |
autoRebuild(java.lang.String auto)
Set the geometry's automatic rebuild setting.
|
GeomSequence |
axisymmetric(boolean isaxi)
Declares geometry to be axisymmetric or non-axisymmetric.
|
java.lang.String |
commentsInFile()
For a loaded part, get the comments from the mph file.
|
java.lang.String |
constrDimBuild()
Get the constraints and dimensions to use when building.
|
GeomSequence |
constrDimBuild(java.lang.String value)
Determine what constraint and dimension features to use when building.
|
java.lang.String |
constrDimStatus()
Get a description the overall status of the constraints and
dimensions.
|
GeomFeature |
create(java.lang.String tag,
java.lang.String type)
Creates a geometry feature.
|
java.lang.String |
current()
Returns the current feature's tag.
|
java.lang.String |
dateModifiedInFile()
For a loaded part, get the modification date from the mph file.
|
GeomDefeature |
defeaturing(java.lang.String tag)
Gets one of the defeaturing tools
DetectInterferences ,
Fillets , Holes ,
ShortEdges , SliverFaces ,
SmallFaces , Spikes ,
DeleteFaces , or
DetachFaces . |
void |
delete(java.lang.String[] obj)
Deletes geometry objects.
|
java.lang.String[] |
deleteEdges(java.lang.String obj,
int[] edges)
Delete edges from a curve object coming from a Polygon or
CompositeCurve feature in 2D.
|
boolean |
designBooleans()
Check if Design Module Boolean operations are enabled.
|
GeomSequence |
designBooleans(boolean use)
Enable or disable Design Module Boolean operations.
|
GeomExport |
export()
Gets the geometry export tool.
|
java.lang.String |
export(java.lang.String filename)
Export the geometry objects selected in the geometry export tool to a
mphbin or mphtxt file.
|
java.lang.String |
exportFinal(java.lang.String filename)
Export the finalized geometry to a mphbin or mphtxt file.
|
GeomFeatureList |
feature()
Returns all geometry features in the geometry sequence.
|
GeomFeature |
feature(java.lang.String fTag)
Returns a geometry feature with the given tag.
|
java.lang.String |
filename()
Get the filename for a loaded part.
|
void |
filename(java.lang.String filename)
Changes the filename for a loaded part.
|
java.lang.String |
geomRep()
Returns the geometry representation:
comsol , meaning the
COMSOL geometry kernel, or cadps , meaning the CAD Import
Module kernel. |
GeomSequence |
geomRep(java.lang.String geomrep)
Set the geometry representation:
comsol , meaning the
COMSOL geometry kernel, or cadps , meaning the CAD Import
Module kernel. |
double |
geomScaleFactor()
Returns the geometry's length unit expressed the model's length unit.
|
ModelParam |
inputParam()
Get input parameters of the part.
|
void |
insertFile(java.lang.String filename,
java.lang.String sequencename)
Insert all geometry features from a geometry sequence in an mph file
into this sequence.
|
void |
insertSequence(java.lang.String modeltag,
java.lang.String sequencename)
Insert all geometry features from a geometry sequence in a different
model into this sequence.
|
boolean |
isAxisymmetric()
Check if the geometry is axisymmetric.
|
java.lang.String |
labelInFile()
Get the label of a loaded part in the mph file.
|
java.lang.String |
lengthUnit()
Returns the geometry's length unit.
|
GeomSequence |
lengthUnit(java.lang.String lengthUnit)
Sets the geometry's length unit.
|
boolean |
linked()
Deprecated.
Use
loaded() instead. |
boolean |
loaded()
Check if a part if it is loaded.
|
ModelParam |
localParam()
Get local parameters of the part.
|
GeomMeasure |
measure()
Return the measurement tool for geometry objects.
|
GeomMeasureFinal |
measureFinal()
Returns the measurement tool for the finalized geometry.
|
void |
move(java.lang.String[] obj,
double[] dist)
Apply a move transform to a set of objects.
|
GeomObject |
obj(java.lang.String name)
Returns the geometry object with the given name.
|
GeomObject |
object(java.lang.String arg0)
Deprecated.
Use
obj(String) instead. |
java.lang.String[] |
objectNames()
Returns the names of all objects that exist in the current state, that
is, are produced, and have not been eaten, by features up to the
current feature.
|
ModelParam |
param()
Deprecated.
Use
localParam() instead. |
boolean |
partVariant()
Check if a part if it is a part variant.
|
GeomSequence |
partVariant(boolean isPartVariant)
Set the part variant attribute of a part.
|
java.lang.String[] |
problems()
Return features with errors or warnings.
|
void |
relink()
Deprecated.
Use
reload() instead. |
void |
reload()
Reloads a loaded part.
|
double |
repairTol()
Returns default relative repair tolerance used when creating new
features.
|
void |
repairTol(double repairtol)
Sets default relative repair tolerance to use when creating new
features.
|
java.lang.String |
repairTolType()
Returns default type of repair tolerance used when creating new
features.
|
void |
repairTolType(java.lang.String repairtoltype)
Sets default type of repair tolerance to use when creating new
features.
|
void |
run()
Build all features.
|
GeomSequence |
run(java.lang.String fTag)
Build all features up to the feature with tag fTag.
|
GeomSequence |
runAll()
Deprecated.
Use
run() or run(String) . |
GeomSequence |
runCurrent()
Build all features up to the current feature.
|
GeomSequence |
runPre(java.lang.String fTag)
Build all features preceding a feature.
|
void |
scale(java.lang.String[] obj,
double[] factor,
double[] center)
Apply an anisotropic scaling transform to a set of objects.
|
void |
scale(java.lang.String[] obj,
double factor,
double[] center)
Apply an isotropic scaling transform to a set of objects.
|
boolean |
scaleUnitValue()
Check if property values are scaled when the geometry's lengthor
angular unit is changed.
|
GeomSequence |
scaleUnitValue(boolean scale)
If scale is
true , set the geometry to scale property
values when the length or angular unit is changed. |
GeomObjectSelectionFeatureList |
selection()
Access list of named geometry object selections.
|
GeomObjectSelectionFeature |
selection(java.lang.String selTag)
Access named geometry object selections.
|
void |
setGeom(java.lang.String fileName)
Set the finalized geometry by importing it from the specified file.
|
GeomSequence |
stepInto(java.lang.String partInstanceTag)
Step into a part instance feature.
|
java.lang.String |
tagInFile()
Get the tag of a loaded part in the mph file.
|
GeomSequence |
tagInFile(java.lang.String tag)
Changes the tag in file for a loaded part.
|
boolean |
useConstrDim()
Check if constraints and dimensions functionality is enabled.
|
GeomSequence |
useConstrDim(boolean enabled)
Enable or disable the constraints and dimensions functionality.
|
java.lang.String |
versionInFile()
For a loaded part, get the version from the mph file.
|
check, edgeCurvature, edgeDDDX, edgeDDX, edgeDX, edgeMaxFaceAngle, edgeNormal, edgeParamRange, edgeTorsion, edgeX, exists, faceDDX, faceDX, faceFF1, faceFF2, faceGaussCurvature, faceMeanCurvature, faceNormal, faceParamRange, faceX, getAdj, getAdj, getAdjExt, getAdjExt, getAdjExtOrient, getAdjExtOrient, getAdjOrient, getAdjOrient, getAdjSparse, getBoundingBox, getEdge, getFace, getNBoundaries, getNDomains, getNEdges, getNEntities, getNEntitiesMesh, getNFaces, getNFiniteVoids, getNVertices, getPEdge, getPVertex, getSD, getSDim, getStartEnd, getType, getUpDown, getUpDownExt, getVertex, getVertexCoord, getVertexDomain, getVtx, hasCadRep, voidsAreLabeled
active, author, author, comments, comments, dateCreated, dateModified, docMarker, docMarker, help, help, icon, isactive, isActive, label, label, lastModifiedBy, model, model, name, name, resetAuthor, scope, tag, tag, timeCreated, timeModified, version, version
getContainer, getDisplayString
image
double absRepairTol()
void absRepairTol(double absrepairtol)
absrepairtol
- Absolute repair tolerance.java.lang.String angularUnit()
GeomSequence angularUnit(java.lang.String angularUnit)
angularUnit
- Angular unit.@Deprecated ModelParam argument()
inputParam()
instead.boolean autoBuildNew()
GeomSequence autoBuildNew(boolean auto)
true
means that new geometry operations can be
automatically built if its input selections are satisfied when
created from the user interface. false
disables the
automatic build logic.auto
- Automatic build setting for new geometry operations.java.lang.String autoRebuild()
GeomSequence autoRebuild(java.lang.String auto)
on
means
that the geometry is automatically rebuilt when a non-geometry node
is selected in the model builder in the COMSOL desktop.
off
disables the automatic rebuild logic.auto
- Automatic rebuild setting.GeomSequence axisymmetric(boolean isaxi)
isaxi
- True if axisymmetric. False if non-axisymmetric.java.lang.String commentsInFile()
java.lang.String constrDimBuild()
GeomSequence constrDimBuild(java.lang.String value)
value
- New value.java.lang.String constrDimStatus()
GeomFeature create(java.lang.String tag, java.lang.String type)
tag
- Tag of the created feature.type
- Type of the created feature.java.lang.String current()
java.lang.String dateModifiedInFile()
GeomDefeature defeaturing(java.lang.String tag)
DetectInterferences
,
Fillets
, Holes
,
ShortEdges
, SliverFaces
,
SmallFaces
, Spikes
,
DeleteFaces
, or
DetachFaces
.tag
- Defeaturing tool tag.void delete(java.lang.String[] obj)
obj
- Vector of tags.java.lang.String[] deleteEdges(java.lang.String obj, int[] edges)
obj
- Name of curve object.edges
- Edges to delete.boolean designBooleans()
true
if enabled.GeomSequence designBooleans(boolean use)
use
- true
to enable Design Module Boolean operations.GeomExport export()
java.lang.String export(java.lang.String filename)
filename
- File to export to.java.lang.String exportFinal(java.lang.String filename)
filename
- File to export to.GeomFeatureList feature()
GeomFeature feature(java.lang.String fTag)
fTag
- Geometry feature tag.java.lang.String filename()
void filename(java.lang.String filename)
filename
- The new filename.java.lang.String geomRep()
comsol
, meaning the
COMSOL geometry kernel, or cadps
, meaning the CAD Import
Module kernel.GeomSequence geomRep(java.lang.String geomrep)
comsol
, meaning the
COMSOL geometry kernel, or cadps
, meaning the CAD Import
Module kernel. When changing the geometry representation, existing
features are changed to use the selected kernel, but they are not
rebuilt. Some features do not support the CAD Import Module kernel -
these features always use the COMSOL kernel.geomrep
- Geometry representation.double geomScaleFactor()
ModelParam inputParam()
void insertFile(java.lang.String filename, java.lang.String sequencename)
filename
- File name.sequencename
- Sequence tag.void insertSequence(java.lang.String modeltag, java.lang.String sequencename)
modeltag
- Model tag.sequencename
- Sequence tag.boolean isAxisymmetric()
true
if axisymmetric.java.lang.String labelInFile()
java.lang.String lengthUnit()
GeomSequence lengthUnit(java.lang.String lengthUnit)
lengthUnit
- Length unit.@Deprecated boolean linked()
loaded()
instead.boolean loaded()
true for a loaded part.
ModelParam localParam()
GeomMeasure measure()
GeomMeasureFinal measureFinal()
void move(java.lang.String[] obj, double[] dist)
obj
- Object tags of objects to move.dist
- The translation vector. Length must be equal to the space dimension.GeomObject obj(java.lang.String name)
name
- Geometry object name.@Deprecated GeomObject object(java.lang.String arg0)
obj(String)
instead.java.lang.String[] objectNames()
@Deprecated ModelParam param()
localParam()
instead.boolean partVariant()
true for a part variant.
GeomSequence partVariant(boolean isPartVariant)
isPartVariant
- New value of the attribute.java.lang.String[] problems()
@Deprecated void relink()
reload()
instead.void reload()
double repairTol()
void repairTol(double repairtol)
repairtol
- Relative repair tolerance.java.lang.String repairTolType()
void repairTolType(java.lang.String repairtoltype)
repairtoltype
- Type of repair tolerance.void run()
GeomSequence run(java.lang.String fTag)
fTag
- Feature tag.@Deprecated GeomSequence runAll()
run()
or run(String)
.GeomSequence runCurrent()
GeomSequence runPre(java.lang.String fTag)
fTag
- Feature tag.void scale(java.lang.String[] obj, double factor, double[] center)
obj
- Object tags of objects to scale.factor
- Scale factor.center
- Center of scaling. Length must be equal to the space dimension.void scale(java.lang.String[] obj, double[] factor, double[] center)
obj
- Object tags of objects to scale.factor
- Scale factor. Length must be equal to the space dimension.center
- Center of scaling. Length must be equal to the space dimension.boolean scaleUnitValue()
true
if scaled.GeomSequence scaleUnitValue(boolean scale)
true
, set the geometry to scale property
values when the length or angular unit is changed. If scale is
false
, property values will not be scaled.scale
- Scale.GeomObjectSelectionFeatureList selection()
GeomObjectSelectionFeature selection(java.lang.String selTag)
selTag
- Tag of named geometry object selection to access.void setGeom(java.lang.String fileName)
fileName
- File name.GeomSequence stepInto(java.lang.String partInstanceTag)
partInstanceTag
- Part instance feature tag.java.lang.String tagInFile()
GeomSequence tagInFile(java.lang.String tag)
tag
- New tag in file.boolean useConstrDim()
true
if enabled.GeomSequence useConstrDim(boolean enabled)
enabled
- True to enable constraints and dimensions.java.lang.String versionInFile()