NX Open C++ Reference Guide
|
Represents a collection of Drawings::DraftingView s. More...
Classes | |
class | iterator |
Iterator for accessing the contents of the collection. More... | |
Public Types | |
enum | ViewCopyAnnotOption { ViewCopyAnnotOptionCopyAnnotation, ViewCopyAnnotOptionDontCopyAnnotation } |
Specifies the the annotation copy mode. More... | |
enum | ViewCopyDetailOption { ViewCopyDetailOptionDetailView, ViewCopyDetailOptionDuplicateView, ViewCopyDetailOptionModelView } |
Specifies the the view copy mode. More... | |
enum | ViewUpdateOption { ViewUpdateOptionAll, ViewUpdateOptionOutOfDate, ViewUpdateOptionOutOfDateAutomatic } |
Specifies which drafting views to update. More... | |
Represents a collection of Drawings::DraftingView s.
<br> To obtain an instance of this class, refer to @link Part Part @endlink <br>
Created in NX3.0.0.
Specifies which drafting views to update.
iterator NXOpen::Drawings::DraftingViewCollection::begin | ( | ) |
Returns an iterator addressing the first element.
void NXOpen::Drawings::DraftingViewCollection::ConvertLegacyViewsToLightweight | ( | const std::vector< NXOpen::Drawings::DraftingView * > & | views | ) |
Converts legacy views to lightweight.
The views in list can be spread amongst multiple sheets, but they must all belong to the same part.
Created in NX7.5.0.
License requirements : drafting ("DRAFTING")
views | views |
NXOpen::Drawings::AddRemoveBoxViewBuilder* NXOpen::Drawings::DraftingViewCollection::CreateAddRemoveBoxViewBuilder | ( | NXOpen::Drawings::DraftingView * | activeView | ) |
Creates a Drawings::AddRemoveBoxViewBuilder.
activeView | the active view. Cannot be NULL. |
NXOpen::Drawings::BaseViewBuilder* NXOpen::Drawings::DraftingViewCollection::CreateBaseViewBuilder | ( | NXOpen::Drawings::BaseView * | view | ) |
NXOpen::Drawings::BrokenViewBuilder* NXOpen::Drawings::DraftingViewCollection::CreateBrokenViewBuilder | ( | NXOpen::Drawings::ViewBreak * | viewbreak | ) |
Creates a Drawings::BrokenViewBuilder.
viewbreak | the view break to be edited, NULL in case of new broken view. |
NXOpen::Drawings::ViewCopyTo3dBuilder* NXOpen::Drawings::DraftingViewCollection::CreateCopyTo3dBuilder | ( | ) |
Creates a Drawings::ViewCopyTo3dBuilder.
NXOpen::Drawings::CustomViewSettingsBuilder* NXOpen::Drawings::DraftingViewCollection::CreateCustomViewSettingsBuilder | ( | ) |
Creates a Drawings::CustomViewSettingsBuilder.
NXOpen::Drawings::DetailViewBuilder* NXOpen::Drawings::DraftingViewCollection::CreateDetailViewBuilder | ( | NXOpen::Drawings::DetailView * | view | ) |
Creates a Drawings::DetailViewBuilder.
view | Drawings::DetailView to be edited, if NULL then create a new one |
NXOpen::Drawings::DrawingViewBuilder* NXOpen::Drawings::DraftingViewCollection::CreateDrawingViewBuilder | ( | NXOpen::Drawings::DrawingView * | drawingview | ) |
Creates a DrawingViewBuilder.
drawingview | the drawing view to be edited, if NULL, then create a drawing view |
NXOpen::Drawings::ProjectedViewBuilder* NXOpen::Drawings::DraftingViewCollection::CreateProjectedViewBuilder | ( | NXOpen::Drawings::ProjectedView * | view | ) |
NXOpen::Drawings::RefineDisplayBuilder* NXOpen::Drawings::DraftingViewCollection::CreateRefineDisplayBuilder | ( | ) |
Creates a Drawings::RefineDisplayBuilder.
NXOpen::Drawings::SectionInViewBuilder* NXOpen::Drawings::DraftingViewCollection::CreateSectionInViewBuilder | ( | ) |
NXOpen::Drawings::SectionViewBuilder* NXOpen::Drawings::DraftingViewCollection::CreateSectionViewBuilder | ( | NXOpen::Drawings::SectionView * | view | ) |
NXOpen::Drawings::ViewStyleShipbuildingLinesBuilder* NXOpen::Drawings::DraftingViewCollection::CreateShipbuildingLineBuilder | ( | ) |
Creates a Drawings::ViewStyleShipbuildingLinesBuilder.
NXOpen::Drawings::StandardViewsBuilder* NXOpen::Drawings::DraftingViewCollection::CreateStandardViewsBuilder | ( | ) |
Creates a StandardViewsBuilder.
NXOpen::Drawings::UpdateViewsBuilder* NXOpen::Drawings::DraftingViewCollection::CreateUpdateViewsBuilder | ( | ) |
NXOpen::Drawings::ViewCreationWizardBuilder* NXOpen::Drawings::DraftingViewCollection::CreateViewCreationWizardBuilder | ( | ) |
Creates a Drawings::ViewCreationWizardBuilder.
NXOpen::Drawings::ViewProjectionBuilder* NXOpen::Drawings::DraftingViewCollection::CreateViewProjectionBuilder | ( | ) |
Creates a Drawings::ViewProjectionBuilder.
void NXOpen::Drawings::DraftingViewCollection::DeleteViewsInOriginalPart | ( | const std::vector< NXOpen::Drawings::DraftingView * > & | views | ) |
Deletes views in original part
Created in NX8.0.0.
License requirements : drafting ("DRAFTING")
views | views |
iterator NXOpen::Drawings::DraftingViewCollection::end | ( | ) |
Returns an iterator addressing one past the last element.
NXOpen::Drawings::DraftingView* NXOpen::Drawings::DraftingViewCollection::FindObject | ( | const NXString & | journalIdentifier | ) |
Finds the Drawings::DraftingView with the given identifier as recorded in a journal.
An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals. An exception will be thrown if no object can be found with the given journal identifier. @return View with this identifier
Created in NX3.0.0.
License requirements : None
journalIdentifier | Identifier of the drafting view to be found |
NXOpen::Drawings::DraftingView* NXOpen::Drawings::DraftingViewCollection::FindObject | ( | const char * | journalIdentifier | ) |
Finds the Drawings::DraftingView with the given identifier as recorded in a journal.
An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals. An exception will be thrown if no object can be found with the given journal identifier. @return View with this identifier
Created in NX3.0.0.
License requirements : None
journalIdentifier | Identifier of the drafting view to be found |
NXOpen::ModelingView* NXOpen::Drawings::DraftingViewCollection::GetParentOfView | ( | NXOpen::View * | view | ) |
Find the parent cut (sectioned) model view of a drawing member view.
If the parent view is not a cut model view, NULL is returned. @return
Created in NX3.0.0.
License requirements : None
view | view |
void NXOpen::Drawings::DraftingViewCollection::MoveViewsToDrawing | ( | const std::vector< NXOpen::Drawings::DraftingView * > & | views, |
NXOpen::Drawings::DrawingSheet * | drawing | ||
) |
Move views to drawing
Created in NX7.5.0.
License requirements : drafting ("DRAFTING")
views | new views |
drawing | the drawing which view will in |
void NXOpen::Drawings::DraftingViewCollection::PasteViews | ( | NXOpen::Drawings::DrawingSheet * | drawing, |
const std::vector< NXOpen::Drawings::DraftingView * > & | views, | ||
NXOpen::Drawings::DraftingViewCollection::ViewCopyDetailOption | detailOption, | ||
NXOpen::Drawings::DraftingViewCollection::ViewCopyAnnotOption | annotOption, | ||
std::vector< NXOpen::Drawings::DraftingView * > & | newViews | ||
) |
Paste views
Created in NX7.5.0.
License requirements : drafting ("DRAFTING")
drawing | the drawing which view in |
views | old views |
detailOption | detail copy option |
annotOption | Annotation copy option |
newViews | new views |
void NXOpen::Drawings::DraftingViewCollection::RestoreViewBreaks | ( | NXOpen::Drawings::DraftingView * | view | ) |
Restore all view breaks of the view suppressed by Drawings::DraftingViewCollection::SuppressViewBreaks
Created in NX8.0.0.
License requirements : drafting ("DRAFTING")
view | view |
void NXOpen::Drawings::DraftingViewCollection::SuppressViewBreaks | ( | NXOpen::Drawings::DraftingView * | view | ) |
Suppress all view breaks of the view.
It is neccessary if we want change the view contents
Created in NX8.0.0.
License requirements : drafting ("DRAFTING")
view | view |
tag_t NXOpen::Drawings::DraftingViewCollection::Tag | ( | ) | const |
Returns the tag of this object.
void NXOpen::Drawings::DraftingViewCollection::UpdateViewBreaks | ( | NXOpen::Drawings::DraftingView * | view | ) |
Log all view breaks of the view for update
Created in NX8.5.0.
License requirements : drafting ("DRAFTING")
view | View in which view breaks will be updated |
void NXOpen::Drawings::DraftingViewCollection::UpdateViews | ( | NXOpen::Drawings::DraftingViewCollection::ViewUpdateOption | updateOption | ) |
Updates drafting views in the part determined by an update option.
For example, to update all out of date views in a part, pass in @link Drawings::DraftingViewCollection::ViewUpdateOptionOutOfDate Drawings::DraftingViewCollection::ViewUpdateOptionOutOfDate@endlink .
Created in NX3.0.0.
License requirements : drafting ("DRAFTING")
updateOption | View update option |
void NXOpen::Drawings::DraftingViewCollection::UpdateViews | ( | NXOpen::Drawings::DraftingViewCollection::ViewUpdateOption | updateOption, |
NXOpen::Drawings::DrawingSheet * | drawing | ||
) |
Updates drafting views in a sheet determined by an update option.
For example, to update all out of date views on the sheet, pass in @link Drawings::DraftingViewCollection::ViewUpdateOptionOutOfDate Drawings::DraftingViewCollection::ViewUpdateOptionOutOfDate@endlink .
Created in NX3.0.0.
License requirements : drafting ("DRAFTING")
updateOption | View update option |
drawing | drawing |
void NXOpen::Drawings::DraftingViewCollection::UpdateViews | ( | const std::vector< NXOpen::Drawings::DraftingView * > & | views | ) |
Updates the drafting views.
The views in list can be spread amongst multiple sheets, but they must all belong to the same part.
Created in NX3.0.0.
License requirements : drafting ("DRAFTING")
views | views |