NX Open C++ Reference Guide
|
Represents a master cut feature builder that creates, inquires, or edits a master cut feature associated with a Cut View. More...
Public Member Functions | |
void | CalcThroughLimits (NXOpen::Direction *direction, double *limit1, double *limit2) |
Calculate start and end through limit values Created in NX4.0.0. | |
int | CutColor () |
Returns the cut face color Created in NX4.0.0. | |
NXOpen::ModelingView * | CutView () |
Returns the cut view Created in NX4.0.0. | |
NXOpen::Features::ExtrudeBuilder * | Extrude () |
Returns the extrude builder Created in NX5.0.0. | |
std::vector < NXOpen::DisplayableObject * > | GetTargetComponents () |
The target components that are cut. | |
double | HatchAngle () |
Returns the hatch angle Created in NX4.0.0. | |
double | HatchDistance () |
Returns the hatch distance Created in NX4.0.0. | |
bool | MaterialOutsideLoop () |
Returns the flag whether or not the material is outside the loop used to create the extruded body Created in NX4.0.0. | |
void | RecalculateLimits () |
Recalculates extrude limits to cut through target components Created in NX5.0.0. | |
NXString | SaveAsName () |
Returns the cut save as name Created in NX4.0.0. | |
void | SetCutColor (int cutColor) |
Sets the cut face color Created in NX4.0.0. | |
void | SetCutView (NXOpen::ModelingView *cutView) |
Sets the cut view Created in NX4.0.0. | |
void | SetHatchAngle (double hatchAngle) |
Sets the hatch angle Created in NX4.0.0. | |
void | SetHatchDistance (double hatchDistance) |
Sets the hatch distance Created in NX4.0.0. | |
void | SetMaterialOutsideLoop (bool materialOutsideLoop) |
Sets the flag whether or not the material is outside the loop used to create the extruded body Created in NX4.0.0. | |
void | SetSaveAsName (const NXString &saveAsName) |
Sets the cut save as name Created in NX4.0.0. | |
void | SetTargetComponents (const std::vector< NXOpen::NXObject * > &targetComponents) |
The target components that are cut Created in NX4.0.0. | |
void | SetToolBody (NXOpen::Body *toolBody) |
Sets the tool body used to perform the cut, which is an extruded body Created in NX4.0.0. | |
void | SetUseCutColor (bool useCutColor) |
Sets the flag whether or not to use the specified color for the cut faces Created in NX4.0.0. | |
void | SetUseCutHatch (bool useCutHatch) |
Sets the flag whether or not the cut faces are crosshatched in wireframe mode Created in NX4.0.0. | |
void | SetUseSaveAs (bool useSaveAs) |
Sets the flag whether or not to save the work view with a new name Created in NX4.0.0. | |
NXOpen::SelectDisplayableObjectList * | TargetComponents () |
Returns the target components that are cut Created in NX5.0.0. | |
NXOpen::Body * | ToolBody () |
Returns the tool body used to perform the cut, which is an extruded body Created in NX4.0.0. | |
bool | UseCutColor () |
Returns the flag whether or not to use the specified color for the cut faces Created in NX4.0.0. | |
bool | UseCutHatch () |
Returns the flag whether or not the cut faces are crosshatched in wireframe mode Created in NX4.0.0. | |
bool | UseSaveAs () |
Returns the flag whether or not to save the work view with a new name Created in NX4.0.0. |
Represents a master cut feature builder that creates, inquires, or edits a master cut feature associated with a Cut View.
This class provides methods to set and get the various master cut sub components.
The following are default options and values.
Cut View The work view
Tool Body Extrude feature tool body used to perform the cut. The user must set this
Target Components Components and/or solid bodies to cut. Unset unless the work part only contains one body
Material Outside Loop true, i.e., the material is outside the loop used to create the extrude body
Use Cut Hatch true, i.e., cut faces are crosshatched in static wireframe mode
Hatch Angle 45.0 degrees.
Hatch Distance 0.236/6.0 [in/mm]
Use Cut Color true, i.e., cut faces are colored in shaded mode
Cut Color Medium violet magenta
Use Save As true, i.e., save the cut view with a new name
Save As Name "SECTION OF work view name"
To create a new instance of this class, use Features::FeatureCollection::CreateMasterCutBuilder
Default values.
Property | Value |
---|---|
CutColor |
193 |
HatchAngle |
45 |
HatchDistance |
6.0 (millimeters part), 0.236 (inches part) |
MaterialOutsideLoop |
True |
UseCutColor |
True |
UseCutHatch |
True |
UseSaveAs |
True |
Created in NX4.0.0.
void NXOpen::Features::MasterCutBuilder::CalcThroughLimits | ( | NXOpen::Direction * | direction, |
double * | limit1, | ||
double * | limit2 | ||
) |
Calculate start and end through limit values
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
direction | the extrude direction |
limit1 | start limit value |
limit2 | end limit value |
Returns the cut face color
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
Returns the cut view
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
Returns the extrude builder
Created in NX5.0.0.
License requirements : None
std::vector<NXOpen::DisplayableObject *> NXOpen::Features::MasterCutBuilder::GetTargetComponents | ( | ) |
The target components that are cut.
Returns the hatch angle
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
Returns the hatch distance
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
Returns the flag whether or not the material is outside the loop used to create the extruded body
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
Recalculates extrude limits to cut through target components
Created in NX5.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
Returns the cut save as name
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
void NXOpen::Features::MasterCutBuilder::SetCutColor | ( | int | cutColor | ) |
Sets the cut face color
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
cutColor | cut face color |
void NXOpen::Features::MasterCutBuilder::SetCutView | ( | NXOpen::ModelingView * | cutView | ) |
Sets the cut view
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
cutView | cut view |
void NXOpen::Features::MasterCutBuilder::SetHatchAngle | ( | double | hatchAngle | ) |
Sets the hatch angle
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
hatchAngle | hatch angle used when crosshatching the cut faces |
void NXOpen::Features::MasterCutBuilder::SetHatchDistance | ( | double | hatchDistance | ) |
Sets the hatch distance
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
hatchDistance | hatch distance used when crosshatching the cut faces |
void NXOpen::Features::MasterCutBuilder::SetMaterialOutsideLoop | ( | bool | materialOutsideLoop | ) |
Sets the flag whether or not the material is outside the loop used to create the extruded body
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
materialOutsideLoop | if true, the material is outside the loop used to create the extruded body |
void NXOpen::Features::MasterCutBuilder::SetSaveAsName | ( | const NXString & | saveAsName | ) |
Sets the cut save as name
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
saveAsName | cut save as name |
void NXOpen::Features::MasterCutBuilder::SetTargetComponents | ( | const std::vector< NXOpen::NXObject * > & | targetComponents | ) |
The target components that are cut
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
targetComponents | target components to be cut |
void NXOpen::Features::MasterCutBuilder::SetToolBody | ( | NXOpen::Body * | toolBody | ) |
Sets the tool body used to perform the cut, which is an extruded body
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
toolBody | tool body used to perform the cut |
void NXOpen::Features::MasterCutBuilder::SetUseCutColor | ( | bool | useCutColor | ) |
Sets the flag whether or not to use the specified color for the cut faces
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
useCutColor | if true, use the specified color for the cut faces |
void NXOpen::Features::MasterCutBuilder::SetUseCutHatch | ( | bool | useCutHatch | ) |
Sets the flag whether or not the cut faces are crosshatched in wireframe mode
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
useCutHatch | if true, cut faces are crosshatched in wireframe mode |
void NXOpen::Features::MasterCutBuilder::SetUseSaveAs | ( | bool | useSaveAs | ) |
Sets the flag whether or not to save the work view with a new name
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
useSaveAs | if true, save the work view with a new name |
Returns the target components that are cut
Created in NX5.0.0.
License requirements : None
Returns the tool body used to perform the cut, which is an extruded body
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
Returns the flag whether or not to use the specified color for the cut faces
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
Returns the flag whether or not the cut faces are crosshatched in wireframe mode
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")
Returns the flag whether or not to save the work view with a new name
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING")