public interface PartCleanup extends TransientObject
Session.newPartCleanup()
.
Then, set any part cleanup actions that you wish to be performed by setting
the appropriate properties on this class. By default, all the properties are
set to "false" or "none". Once all the properties are set, then call the
doCleanup()
method to actually perform
the cleanup action.
For more information on what the various part cleanup options do, see the
Part Cleanup Options Dialog section of the Gateway Help.
Modifier and Type | Interface and Description |
---|---|
static class |
PartCleanup.CleanupParts
Which parts to clean up
|
static class |
PartCleanup.DeleteGroups
Which empty groups to clean up
|
static class |
PartCleanup.ResetComponentDisplayAction
Assembly display clean up action
|
Modifier and Type | Method and Description |
---|---|
boolean |
cleanupAssemblyConstraints()
Returns the option that specifies whether to cleanup assembly constraints.
|
boolean |
cleanupCAMObjects()
Returns the option that specifies whether to delete or fix any corrupt
internal CAM objects.
|
boolean |
cleanupDraftingObjects()
Returns the option that specifies whether to perform drafting cleanup.
|
boolean |
cleanupFeatureData()
Returns the option that specifies whether to perform solid cleanup.
|
boolean |
cleanupMatingData()
Returns the option that specifies whether to cleanup mating data.
|
boolean |
cleanupRoutingData()
Returns the option which determines if the routing part cleanup option should be performed.
|
boolean |
deleteBrokenInterpartLinks()
Returns the option that specifies whether or not to delete all inter-part links
where one or more components in that inter-part link have been removed.
|
boolean |
deleteDuplicateLights()
Returns the option that specifies whether to delete duplicate light source objects
from the part file.
|
boolean |
deleteInvalidAttributes()
Returns the option that specifies whether to delete all invalid user attributes
from the part file.
|
boolean |
deleteMaterials()
Returns the option that specifies whether to delete all materials
from the part file.
|
boolean |
deleteSpreadSheetData()
Returns the option that specifies whether to delete all spreadsheets from
the part file.
|
boolean |
deleteUnusedExpressions()
Returns the option that specifies whether to delete expressions that are
not used in the part.
|
boolean |
deleteUnusedFonts()
Returns the option that specifies whether to remove character fonts
that are not used in any drafting text in the current part.
|
boolean |
deleteUnusedObjects()
Returns the option that specifies whether to delete all extraneous
objects from the work part
License requirements: None. |
boolean |
deleteVisualEditorData()
Returns the option that specifies whether to delete Visual Editor data
from the part file.
|
void |
doCleanup()
Actually performs the part cleanup operation according to the
properties set on this object
License requirements: None. |
boolean |
fixOffplaneSketchCurves()
Returns the option that specifies whether to fix off-plane sketch curves.
|
PartCleanup.DeleteGroups |
groupsToDelete()
Returns the option that specifies what empty groups should be
deleted.
|
PartCleanup.CleanupParts |
partsToCleanup()
Returns the option that specifies what parts will be cleaned up when
doCleanup() is called. |
void |
reset()
Resets all the properties back to the default values (i.e. everything
turned off).
|
PartCleanup.ResetComponentDisplayAction |
resetComponentDisplay()
Returns the option that specifies whether to remove assembly-specific
geometry in component parts.
|
void |
setCleanupAssemblyConstraints(boolean option)
Sets the option that specifies whether to cleanup assembly constraints.
|
void |
setCleanupCAMObjects(boolean option)
Sets the option that specifies whether to delete or fix any corrupt
internal CAM objects.
|
void |
setCleanupDraftingObjects(boolean option)
Sets the option that specifies whether to perform drafting cleanup.
|
void |
setCleanupFeatureData(boolean option)
Sets the option that specifies whether to perform solid cleanup.
|
void |
setCleanupMatingData(boolean option)
Sets the option that specifies whether to cleanup mating data.
|
void |
setCleanupRoutingData(boolean option)
Sets the option which determines if the routing part cleanup option should be performed.
|
void |
setDeleteBrokenInterpartLinks(boolean option)
Sets the option that specifies whether or not to delete all inter-part links
where one or more components in that inter-part link have been removed.
|
void |
setDeleteDuplicateLights(boolean option)
Sets the option that specifies whether to delete duplicate light source objects
from the part file.
|
void |
setDeleteInvalidAttributes(boolean option)
Sets the option that specifies whether to delete all invalid user attributes
from the part file.
|
void |
setDeleteMaterials(boolean option)
Sets the option that specifies whether to delete all materials
from the part file.
|
void |
setDeleteSpreadSheetData(boolean option)
Sets the option that specifies whether to delete all spreadsheets from
the part file.
|
void |
setDeleteUnusedExpressions(boolean option)
Sets the option that specifies whether to delete expressions that are
not used in the part.
|
void |
setDeleteUnusedFonts(boolean option)
Sets the option that specifies whether to remove character fonts
that are not used in any drafting text in the current part.
|
void |
setDeleteUnusedObjects(boolean option)
Sets the option that specifies whether to delete all extraneous
objects from the work part
License requirements: None. |
void |
setDeleteVisualEditorData(boolean option)
Sets the option that specifies whether to delete Visual Editor data
from the part file.
|
void |
setFixOffplaneSketchCurves(boolean option)
Sets the option that specifies whether to fix off-plane sketch curves.
|
void |
setGroupsToDelete(PartCleanup.DeleteGroups option)
Sets the option that specifies what empty groups should be
deleted.
|
void |
setPartsToCleanup(PartCleanup.CleanupParts option)
Sets the option that specifies what parts will be cleaned up when
doCleanup() is called. |
void |
setResetComponentDisplay(PartCleanup.ResetComponentDisplayAction option)
Sets the option that specifies whether to remove assembly-specific
geometry in component parts.
|
void |
setTurnOffHighlighting(boolean option)
Sets the option that specifies whether to turn off highlighting for
all displayable objects in the displayed part.
|
boolean |
turnOffHighlighting()
Returns the option that specifies whether to turn off highlighting for
all displayable objects in the displayed part.
|
_value, dispose, printTestData, printTestData
void setPartsToCleanup(PartCleanup.CleanupParts option) throws NXException, RemoteException
doCleanup()
is called.
option
- NXException
RemoteException
PartCleanup.CleanupParts partsToCleanup() throws NXException, RemoteException
doCleanup()
is called.
NXException
RemoteException
void setGroupsToDelete(PartCleanup.DeleteGroups option) throws NXException, RemoteException
option
- NXException
RemoteException
PartCleanup.DeleteGroups groupsToDelete() throws NXException, RemoteException
NXException
RemoteException
void setTurnOffHighlighting(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean turnOffHighlighting() throws NXException, RemoteException
NXException
RemoteException
void setDeleteUnusedObjects(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean deleteUnusedObjects() throws NXException, RemoteException
NXException
RemoteException
void setDeleteUnusedExpressions(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean deleteUnusedExpressions() throws NXException, RemoteException
NXException
RemoteException
void setCleanupFeatureData(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean cleanupFeatureData() throws NXException, RemoteException
NXException
RemoteException
void setFixOffplaneSketchCurves(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean fixOffplaneSketchCurves() throws NXException, RemoteException
NXException
RemoteException
void setCleanupMatingData(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean cleanupMatingData() throws NXException, RemoteException
NXException
RemoteException
void setCleanupAssemblyConstraints(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean cleanupAssemblyConstraints() throws NXException, RemoteException
NXException
RemoteException
void setCleanupCAMObjects(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean cleanupCAMObjects() throws NXException, RemoteException
NXException
RemoteException
void setCleanupDraftingObjects(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean cleanupDraftingObjects() throws NXException, RemoteException
NXException
RemoteException
void setDeleteUnusedFonts(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean deleteUnusedFonts() throws NXException, RemoteException
NXException
RemoteException
void setResetComponentDisplay(PartCleanup.ResetComponentDisplayAction option) throws NXException, RemoteException
option
- NXException
RemoteException
PartCleanup.ResetComponentDisplayAction resetComponentDisplay() throws NXException, RemoteException
NXException
RemoteException
void setDeleteSpreadSheetData(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean deleteSpreadSheetData() throws NXException, RemoteException
NXException
RemoteException
void setDeleteVisualEditorData(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean deleteVisualEditorData() throws NXException, RemoteException
NXException
RemoteException
void setDeleteMaterials(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean deleteMaterials() throws NXException, RemoteException
NXException
RemoteException
void setDeleteDuplicateLights(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean deleteDuplicateLights() throws NXException, RemoteException
NXException
RemoteException
void setDeleteBrokenInterpartLinks(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean deleteBrokenInterpartLinks() throws NXException, RemoteException
NXException
RemoteException
void doCleanup() throws NXException, RemoteException
NXException
RemoteException
void reset() throws NXException, RemoteException
NXException
RemoteException
void setCleanupRoutingData(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean cleanupRoutingData() throws NXException, RemoteException
NXException
RemoteException
void setDeleteInvalidAttributes(boolean option) throws NXException, RemoteException
option
- NXException
RemoteException
boolean deleteInvalidAttributes() throws NXException, RemoteException
NXException
RemoteException
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.