NX Open C++ Reference Guide
|
Represents a layout. More...
Public Member Functions | |
NXOpen::LayoutDefinition * | Definition () |
Returns the definition of the layout. | |
bool | DisplayStatus () |
Returns whether the layout is displayed or not. | |
std::vector< NXOpen::View * > | GetViews () |
Returns the View s of the layout. | |
void | Open () |
Opens a layout. | |
void | ReplaceView (NXOpen::ModelingView *view, int row, int column, bool performFitView) |
Replaces a ModelingView with another one at a specified position. | |
void | ReplaceView (NXOpen::ModelingView *oldView, NXOpen::ModelingView *newView, bool performFitView) |
Replaces a ModelingView with another one. | |
void | Save () |
Saves a layout. | |
NXOpen::Layout * | SaveAs (const NXString &layoutName) |
Saves a layout with a different name. |
Represents a layout.
Created in NX3.0.0.
Returns the definition of the layout.
Created in NX3.0.0.
License requirements : None
bool NXOpen::Layout::DisplayStatus | ( | ) |
Returns whether the layout is displayed or not.
Created in NX3.0.0.
License requirements : None
std::vector<NXOpen::View *> NXOpen::Layout::GetViews | ( | ) |
Returns the View s of the layout.
void NXOpen::Layout::Open | ( | ) |
Opens a layout.
The Drafting application does not support this method and if used, throws an exception.
Created in NX3.0.0.
License requirements : None
void NXOpen::Layout::ReplaceView | ( | NXOpen::ModelingView * | view, |
int | row, | ||
int | column, | ||
bool | performFitView | ||
) |
Replaces a ModelingView with another one at a specified position.
Created in NX3.0.0.
License requirements : None
view | New view to replace old view |
row | Row of view to be replaced |
column | Column of view to be replaced |
performFitView | Flag that indicates for the system to perform a fit before displaying the view. Otherwise the system displays the view at the scale at which it was last saved. |
void NXOpen::Layout::ReplaceView | ( | NXOpen::ModelingView * | oldView, |
NXOpen::ModelingView * | newView, | ||
bool | performFitView | ||
) |
Replaces a ModelingView with another one.
Created in NX3.0.0.
License requirements : None
oldView | Old view to be replaced |
newView | New view to replace old view |
performFitView | Flag to indicate for the system to perform a Fit before displaying the view. Otherwise the system will display the view at the scale at which they were last saved. |
void NXOpen::Layout::Save | ( | ) |
NXOpen::Layout* NXOpen::Layout::SaveAs | ( | const NXString & | layoutName | ) |
Saves a layout with a different name.
If a name contains lowercase characters, the system converts them to uppercase. Drafting does not support this method. If you call this method within the Drafting application or when displaying a drawing sheet, it throws an exception.
layoutName | Name to save layout as NOTE: The full Unicode character set is not supported for this parameter. |