NX Open C++ Reference Guide
Public Member Functions
NXOpen::Features::MasterCutBuilder Class Reference

Represents a master cut feature builder that creates, inquires, or edits a master cut feature associated with a Cut View. More...

Inheritance diagram for NXOpen::Features::MasterCutBuilder:
NXOpen::Features::FeatureBuilder NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

List of all members.

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::ModelingViewCutView ()
 Returns the cut view
Created in NX4.0.0.
NXOpen::Features::ExtrudeBuilderExtrude ()
 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::SelectDisplayableObjectListTargetComponents ()
 Returns the target components that are cut
Created in NX5.0.0.
NXOpen::BodyToolBody ()
 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.

Detailed Description

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.


Member Function Documentation

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")

Parameters:
directionthe extrude direction
limit1start limit value
limit2end 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

The target components that are cut.

Returns:
target components that are cut
Created in NX4.0.0.

License requirements : solid_modeling ("SOLIDS MODELING")

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")

Sets the cut face color
Created in NX4.0.0.



License requirements : solid_modeling ("SOLIDS MODELING")

Parameters:
cutColorcut face color

Sets the cut view
Created in NX4.0.0.



License requirements : solid_modeling ("SOLIDS MODELING")

Parameters:
cutViewcut view

Sets the hatch angle
Created in NX4.0.0.



License requirements : solid_modeling ("SOLIDS MODELING")

Parameters:
hatchAnglehatch angle used when crosshatching the cut faces

Sets the hatch distance
Created in NX4.0.0.



License requirements : solid_modeling ("SOLIDS MODELING")

Parameters:
hatchDistancehatch distance used when crosshatching the cut faces

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")

Parameters:
materialOutsideLoopif true, the material is outside the loop used to create the extruded body

Sets the cut save as name
Created in NX4.0.0.



License requirements : solid_modeling ("SOLIDS MODELING")

Parameters:
saveAsNamecut 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")

Parameters:
targetComponentstarget components to be cut

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")

Parameters:
toolBodytool body used to perform the cut

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")

Parameters:
useCutColorif true, use the specified color for the cut faces

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")

Parameters:
useCutHatchif true, cut faces are crosshatched in wireframe mode

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")

Parameters:
useSaveAsif 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")


The documentation for this class was generated from the following file:
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.