Package com.comsol.model
Interface GeomExport
-
- All Superinterfaces:
ModelEntity
,PrimitiveModelEntity
,SelectionContainer
public interface GeomExport extends ModelEntity, SelectionContainer
Geometry export feature.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getAcisVersion()
Gets the file format version for ACIS export.java.lang.String
getCompat()
Get the COMSOL version to save mphtxt/mphbin file in.java.lang.String
getDxfApproxDetail()
Get the chosen approximation detail used in DXF export when curve representation is not exact.java.lang.String
getDxfCurveRep()
Get the chosen curve representation used in DXF export.java.lang.String
getDxfDomainHandling()
Get the chosen domain/edge handling used in DXF export.java.lang.String[]
getLayerNames()
For OASIS export, get the work planes' assigned layer-names.int[]
getLayerNumbers()
For OASIS export, get the work planes' assigned layer-numbers.java.lang.String[]
getLayerWorkPlanes()
For OASIS export, get the tags of all work planes.java.lang.String
getLengthUnit()
Returns the length unit to use for CAD Import Module kernel geometry export to Parsolid format.java.lang.String
getLengthUnitIGES()
Returns the length unit to use for CAD Import Module kernel geometry export to IGES format.java.lang.String
getLengthUnitSTEP()
Returns the length unit to use for CAD Import Module kernel geometry export to STEP format.java.lang.String
getOasisApproxDetail()
Get the chosen approximation detail used in OASIS export.boolean
getSplitInManifold()
True if export to Parasolid format is split in manifold objects.java.lang.String
getSTLFormat()
Returns the STL file type (binary
ortext
).The default value isbinary
.java.lang.String
getType()
Get the export file type.GeomObjectSelection
selection()
Returns export's selection.void
setAcisVersion(java.lang.String version)
Sets the file format version for ACIS export.void
setCompat(java.lang.String value)
Set the COMSOL version to save mphtxt/mphbin file in.void
setDxfApproxDetail(java.lang.String detail)
Set the approximation detail to use in DXF export when curve representation is not exact.void
setDxfCurveRep(java.lang.String curveRep)
Set the curve representation to use in DXF export.void
setDxfDomainHandling(java.lang.String handling)
Set the domain/edge handling to use in DXF export.void
setLayerName(int idx, java.lang.String layerName)
For OASIS export, set the layer-name for a work plane.void
setLayerNumber(int idx, int layerNumber)
For OASIS export, set the layer-number for a work plane.void
setLengthUnit(java.lang.String value)
Sets the length unit to use for CAD Import Module kernel geometry export to Parsolid format.void
setLengthUnitIGES(java.lang.String value)
Sets the length unit to use for CAD Import Module kernel geometry export to IGES format.void
setLengthUnitSTEP(java.lang.String value)
Sets the length unit to use for CAD Import Module kernel geometry export to STEP format.void
setOasisApproxDetail(java.lang.String detail)
Set the approximation detail to use in OASIS export.void
setSplitInManifold(boolean splitInManifold)
Sets the split in manifold objects option for Parasolid export.void
setSTLFormat(java.lang.String value)
Sets the STL file type (binary
ortext
).void
setType(java.lang.String value)
Set the export file type (nativebin
,nativeascii
,parasolidbin
,parasolidascii
,acisbin
,acisascii
,iges
,step
,stlbin
,stlascii
ordxf
).-
Methods inherited from interface com.comsol.model.ModelEntity
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
-
Methods inherited from interface com.comsol.model.PrimitiveModelEntity
getContainer, getDisplayString, resolveModelPath
-
-
-
-
Method Detail
-
getAcisVersion
java.lang.String getAcisVersion()
Gets the file format version for ACIS export.- Returns:
- ACIS version.
-
getCompat
java.lang.String getCompat()
Get the COMSOL version to save mphtxt/mphbin file in.- Returns:
- 3.5a, 4.0, 4.0a, 4.2a, 4.3b, 5.1, 5.5, or 6.3.
-
getDxfApproxDetail
java.lang.String getDxfApproxDetail()
Get the chosen approximation detail used in DXF export when curve representation is not exact.- Returns:
- Approximation detail.
-
getDxfCurveRep
java.lang.String getDxfCurveRep()
Get the chosen curve representation used in DXF export.- Returns:
- Curve representation.
-
getDxfDomainHandling
java.lang.String getDxfDomainHandling()
Get the chosen domain/edge handling used in DXF export.- Returns:
- Domain/edge handling.
-
getLayerNames
java.lang.String[] getLayerNames()
For OASIS export, get the work planes' assigned layer-names.- Returns:
- Layer-names.
-
getLayerNumbers
int[] getLayerNumbers()
For OASIS export, get the work planes' assigned layer-numbers.- Returns:
- Layer-numbers.
-
getLayerWorkPlanes
java.lang.String[] getLayerWorkPlanes()
For OASIS export, get the tags of all work planes.- Returns:
- Work plane tags.
-
getLengthUnit
java.lang.String getLengthUnit()
Returns the length unit to use for CAD Import Module kernel geometry export to Parsolid format.- Returns:
- Length unit.
-
getLengthUnitIGES
java.lang.String getLengthUnitIGES()
Returns the length unit to use for CAD Import Module kernel geometry export to IGES format.- Returns:
- Length unit.
-
getLengthUnitSTEP
java.lang.String getLengthUnitSTEP()
Returns the length unit to use for CAD Import Module kernel geometry export to STEP format.- Returns:
- Length unit.
-
getOasisApproxDetail
java.lang.String getOasisApproxDetail()
Get the chosen approximation detail used in OASIS export.- Returns:
- Approximation detail.
-
getSTLFormat
java.lang.String getSTLFormat()
Returns the STL file type (binary
ortext
).The default value isbinary
.- Returns:
- File type.
-
getSplitInManifold
boolean getSplitInManifold()
True if export to Parasolid format is split in manifold objects.- Returns:
true
if split in manifold objects.
-
getType
java.lang.String getType()
Get the export file type.- Returns:
- File type.
-
selection
GeomObjectSelection selection()
Returns export's selection.- Returns:
- Geometry object selection.
-
setAcisVersion
void setAcisVersion(java.lang.String version)
Sets the file format version for ACIS export.- Parameters:
version
- File format version.
-
setCompat
void setCompat(java.lang.String value)
Set the COMSOL version to save mphtxt/mphbin file in.- Parameters:
value
- 3.5a, 4.0, 4.0a, 4.2a, 4.3b, 5.1, 5.5, or 6.3.
-
setDxfApproxDetail
void setDxfApproxDetail(java.lang.String detail)
Set the approximation detail to use in DXF export when curve representation is not exact.- Parameters:
detail
- Approximation detail, either 'graphics', 'coarse', 'normal', or 'fine'.
-
setDxfCurveRep
void setDxfCurveRep(java.lang.String curveRep)
Set the curve representation to use in DXF export.- Parameters:
curveRep
- Curve representation, either 'exact', 'approxspline', or 'polygon'.
-
setDxfDomainHandling
void setDxfDomainHandling(java.lang.String handling)
Set the domain/edge handling to use in DXF export.- Parameters:
handling
- Domain/edge handling, either 'edgesdomainwise', or 'intedgesonce'.
-
setLayerName
void setLayerName(int idx, java.lang.String layerName)
For OASIS export, set the layer-name for a work plane.- Parameters:
idx
- The work plane's row index in the table. The top row has index 1.layerName
- The layer-name.
-
setLayerNumber
void setLayerNumber(int idx, int layerNumber)
For OASIS export, set the layer-number for a work plane.- Parameters:
idx
- The work plane's row index in the table. The top row has index 1.layerNumber
- The layer-number.
-
setLengthUnit
void setLengthUnit(java.lang.String value)
Sets the length unit to use for CAD Import Module kernel geometry export to Parsolid format. Set tofromgeom
to use the geometry sequence length unit.- Parameters:
value
- Length unit.
-
setLengthUnitIGES
void setLengthUnitIGES(java.lang.String value)
Sets the length unit to use for CAD Import Module kernel geometry export to IGES format. Set tofromgeom
to use the geometry sequence length unit.- Parameters:
value
- Length unit.
-
setLengthUnitSTEP
void setLengthUnitSTEP(java.lang.String value)
Sets the length unit to use for CAD Import Module kernel geometry export to STEP format. Set tofromgeom
to use the geometry sequence length unit.- Parameters:
value
- Length unit.
-
setOasisApproxDetail
void setOasisApproxDetail(java.lang.String detail)
Set the approximation detail to use in OASIS export.- Parameters:
detail
- Approximation detail, either 'graphics', 'coarse', 'normal', or 'fine'.
-
setSTLFormat
void setSTLFormat(java.lang.String value)
Sets the STL file type (binary
ortext
).- Parameters:
value
- File type.
-
setSplitInManifold
void setSplitInManifold(boolean splitInManifold)
Sets the split in manifold objects option for Parasolid export.- Parameters:
splitInManifold
- Split in manifold objects option.
-
setType
void setType(java.lang.String value)
Set the export file type (nativebin
,nativeascii
,parasolidbin
,parasolidascii
,acisbin
,acisascii
,iges
,step
,stlbin
,stlascii
ordxf
).- Parameters:
value
- File type.
-
-