DraftingViewCollection Class¶
-
class
NXOpen.Drawings.DraftingViewCollection¶ Bases:
objectRepresents a collection of :py:class:`NXOpen.Drawings.DraftingView`s.
To obtain an instance of this class, refer to
NXOpen.PartNew in version NX3.0.0.
Methods¶
Enumerations¶
| DraftingViewCollectionViewCopyAnnotOption Enumeration | Specifies the the annotation copy mode. |
| DraftingViewCollectionViewCopyDetailOption Enumeration | Specifies the the view copy mode. |
| DraftingViewCollectionViewUpdateOption Enumeration | Specifies which drafting views to update. |
Method Detail¶
ConvertLegacyViewsToLightweight¶
-
DraftingViewCollection.ConvertLegacyViewsToLightweight¶ Converts legacy views to lightweight.
The views in list can be spread amongst multiple sheets, but they must all belong to the same part.
Signature
ConvertLegacyViewsToLightweight(views)Parameters: views (list of NXOpen.Drawings.DraftingView) –New in version NX7.5.0.
License requirements: drafting (“DRAFTING”)
CreateAddRemoveBoxViewBuilder¶
-
DraftingViewCollection.CreateAddRemoveBoxViewBuilder¶ Creates a
NXOpen.Drawings.AddRemoveBoxViewBuilderSignature
CreateAddRemoveBoxViewBuilder(activeView)Parameters: activeView – the active view. Cannot be None. :type activeView:
NXOpen.Drawings.DraftingView:returns: :rtype:NXOpen.Drawings.AddRemoveBoxViewBuilderNew in version NX8.0.0.
License requirements: drafting (“DRAFTING”)
CreateBaseViewBuilder¶
-
DraftingViewCollection.CreateBaseViewBuilder¶ Creates the Base View Builder
Signature
CreateBaseViewBuilder(view)Parameters: view ( NXOpen.Drawings.BaseView) – the base view to be edited, if None, then create a base viewReturns: Return type: NXOpen.Drawings.BaseViewBuilderNew in version NX6.0.0.
License requirements: drafting (“DRAFTING”)
CreateBrokenViewBuilder¶
-
DraftingViewCollection.CreateBrokenViewBuilder¶ Creates a
NXOpen.Drawings.BrokenViewBuilderSignature
CreateBrokenViewBuilder(viewbreak)Parameters: viewbreak ( NXOpen.Drawings.ViewBreak) – the view break to be edited, None in case of new broken view.Returns: Return type: NXOpen.Drawings.BrokenViewBuilderNew in version NX7.5.0.
License requirements: drafting (“DRAFTING”)
CreateCopyTo3dBuilder¶
-
DraftingViewCollection.CreateCopyTo3dBuilder¶ Creates a
NXOpen.Drawings.ViewCopyTo3dBuilderSignature
CreateCopyTo3dBuilder()Returns: Return type: NXOpen.Drawings.ViewCopyTo3dBuilderNew in version NX6.0.0.
License requirements: drafting (“DRAFTING”)
CreateCustomViewSettingsBuilder¶
-
DraftingViewCollection.CreateCustomViewSettingsBuilder¶ Creates a
NXOpen.Drawings.CustomViewSettingsBuilderSignature
CreateCustomViewSettingsBuilder()Returns: Return type: NXOpen.Drawings.CustomViewSettingsBuilderNew in version NX8.5.0.
License requirements: drafting (“DRAFTING”)
CreateDetailViewBuilder¶
-
DraftingViewCollection.CreateDetailViewBuilder¶ Creates a
NXOpen.Drawings.DetailViewBuilderSignature
CreateDetailViewBuilder(view)Parameters: view ( NXOpen.Drawings.DetailView) –NXOpen.Drawings.DetailViewto be edited, if None then create a new oneReturns: Return type: NXOpen.Drawings.DetailViewBuilderNew in version NX6.0.0.
License requirements: drafting (“DRAFTING”)
CreateDrawingViewBuilder¶
-
DraftingViewCollection.CreateDrawingViewBuilder¶ Creates a DrawingViewBuilder
Signature
CreateDrawingViewBuilder(drawingview)Parameters: drawingview ( NXOpen.Drawings.DrawingView) – the drawing view to be edited, if None, then create a drawing viewReturns: Return type: NXOpen.Drawings.DrawingViewBuilderNew in version NX6.0.0.
License requirements: drafting (“DRAFTING”)
CreateProjectedViewBuilder¶
-
DraftingViewCollection.CreateProjectedViewBuilder¶ Creates the Projected View Builder
Signature
CreateProjectedViewBuilder(view)Parameters: view ( NXOpen.Drawings.ProjectedView) – the projected view to be edited, if None, then create a projected viewReturns: Return type: NXOpen.Drawings.ProjectedViewBuilderNew in version NX6.0.0.
License requirements: drafting (“DRAFTING”)
CreateRefineDisplayBuilder¶
-
DraftingViewCollection.CreateRefineDisplayBuilder¶ Creates a
NXOpen.Drawings.RefineDisplayBuilderSignature
CreateRefineDisplayBuilder()Returns: Return type: NXOpen.Drawings.RefineDisplayBuilderNew in version NX8.0.0.
License requirements: drafting (“DRAFTING”)
CreateSecondaryGeometryInViewsBuilder¶
-
DraftingViewCollection.CreateSecondaryGeometryInViewsBuilder¶ Creates a
NXOpen.Drawings.SecondaryGeometryInViewsBuilderSignature
CreateSecondaryGeometryInViewsBuilder()Returns: Returns the Secondary Geometry In Views builder Return type: NXOpen.Drawings.SecondaryGeometryInViewsBuilderNew in version NX11.0.0.
License requirements: drafting (“DRAFTING”)
CreateSectionInViewBuilder¶
-
DraftingViewCollection.CreateSectionInViewBuilder¶ Creates the Section In View Builder
Signature
CreateSectionInViewBuilder()Returns: Return type: NXOpen.Drawings.SectionInViewBuilderNew in version NX6.0.0.
License requirements: drafting (“DRAFTING”)
CreateSectionViewBuilder¶
-
DraftingViewCollection.CreateSectionViewBuilder¶ Creates the Section View Builder
Signature
CreateSectionViewBuilder(sectionViewOrSectionLine)Parameters: sectionViewOrSectionLine ( NXOpen.NXObject) – the section view or section line to be edited, if None, then create a section view or section lineReturns: Return type: NXOpen.Drawings.SectionViewBuilderNew in version NX6.0.0.
License requirements: drafting (“DRAFTING”)
CreateShipDraftingViewLinesBuilder¶
-
DraftingViewCollection.CreateShipDraftingViewLinesBuilder¶ Creates a
NXOpen.Drawings.ShipDraftingViewLinesBuilderSignature
CreateShipDraftingViewLinesBuilder()Returns: Returns the empty Ship Drafting View Lines sub-builder on View Style Return type: NXOpen.Drawings.ShipDraftingViewLinesBuilderNew in version NX10.0.0.
License requirements: nx_ship_drafting (“Ship Drafting”)
CreateShipbuildingLineBuilder¶
-
DraftingViewCollection.CreateShipbuildingLineBuilder¶ Creates a
NXOpen.Drawings.ViewStyleShipbuildingLinesBuilderSignature
CreateShipbuildingLineBuilder()Returns: Returns the empty Shipbuilding Lines sub-builder on View Style Return type: NXOpen.Drawings.ViewStyleShipbuildingLinesBuilderNew in version NX8.0.0.
License requirements: drafting (“DRAFTING”)
CreateStandardViewsBuilder¶
-
DraftingViewCollection.CreateStandardViewsBuilder¶ Creates a StandardViewsBuilder
Signature
CreateStandardViewsBuilder()Returns: Return type: NXOpen.Drawings.StandardViewsBuilderNew in version NX6.0.1.
License requirements: nx_layout (“NX Layout”)
CreateUpdateViewsBuilder¶
-
DraftingViewCollection.CreateUpdateViewsBuilder¶ Creates the Update Views Builder
Signature
CreateUpdateViewsBuilder()Returns: Return type: NXOpen.Drawings.UpdateViewsBuilderNew in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
CreateViewCreationWizardBuilder¶
-
DraftingViewCollection.CreateViewCreationWizardBuilder¶ Creates a
NXOpen.Drawings.ViewCreationWizardBuilderSignature
CreateViewCreationWizardBuilder()Returns: Return type: NXOpen.Drawings.ViewCreationWizardBuilderNew in version NX8.0.0.
License requirements: drafting (“DRAFTING”)
CreateViewProjectionBuilder¶
-
DraftingViewCollection.CreateViewProjectionBuilder¶ Creates a
NXOpen.Drawings.ViewProjectionBuilderSignature
CreateViewProjectionBuilder()Returns: Return type: NXOpen.Drawings.ViewProjectionBuilderNew in version NX6.0.2.
License requirements: nx_layout (“NX Layout”)
DeleteViewsInOriginalPart¶
-
DraftingViewCollection.DeleteViewsInOriginalPart¶ Deletes views in original part
Signature
DeleteViewsInOriginalPart(views)Parameters: views (list of NXOpen.Drawings.DraftingView) –New in version NX8.0.0.
License requirements: drafting (“DRAFTING”)
FindObject¶
-
DraftingViewCollection.FindObject¶ Finds the
NXOpen.Drawings.DraftingViewwith 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.
Signature
FindObject(journalIdentifier)Parameters: journalIdentifier (str) – Identifier of the drafting view to be found Returns: View with this identifier Return type: NXOpen.Drawings.DraftingViewNew in version NX3.0.0.
License requirements: None.
GetParentOfView¶
-
DraftingViewCollection.GetParentOfView¶ Find the parent cut (sectioned) model view of a drawing member view.
If the parent view is not a cut model view, None is returned.
Signature
GetParentOfView(view)Parameters: view ( NXOpen.View) –Returns: Return type: NXOpen.ModelingViewNew in version NX3.0.0.
License requirements: None.
MoveViewsToDrawing¶
-
DraftingViewCollection.MoveViewsToDrawing¶ Move views to drawing
Signature
MoveViewsToDrawing(views, drawing)Parameters: - views (list of
NXOpen.Drawings.DraftingView) – new views - drawing (
NXOpen.Drawings.DrawingSheet) – the drawing which view will in
New in version NX7.5.0.
License requirements: drafting (“DRAFTING”)
- views (list of
PasteViews¶
-
DraftingViewCollection.PasteViews¶ Paste views
Signature
PasteViews(drawing, views, detailOption, annotOption)Parameters: - drawing (
NXOpen.Drawings.DrawingSheet) – the drawing which view in - views (list of
NXOpen.Drawings.DraftingView) – old views - detailOption (
NXOpen.Drawings.DraftingViewCollectionViewCopyDetailOption) – detail copy option - annotOption (
NXOpen.Drawings.DraftingViewCollectionViewCopyAnnotOption) – Annotation copy option
Returns: new views
Return type: list of
NXOpen.Drawings.DraftingViewNew in version NX7.5.0.
License requirements: drafting (“DRAFTING”)
- drawing (
RestoreViewBreaks¶
-
DraftingViewCollection.RestoreViewBreaks¶ Restore all view breaks of the view suppressed by
Drawings.DraftingViewCollection.SuppressViewBreaks()Signature
RestoreViewBreaks(view)Parameters: view ( NXOpen.Drawings.DraftingView) –New in version NX8.0.0.
License requirements: drafting (“DRAFTING”)
SuppressViewBreaks¶
-
DraftingViewCollection.SuppressViewBreaks¶ Suppress all view breaks of the view.
It is neccessary if we want change the view contents
Signature
SuppressViewBreaks(view)Parameters: view ( NXOpen.Drawings.DraftingView) –New in version NX8.0.0.
License requirements: drafting (“DRAFTING”)
UpdateViewBreaks¶
-
DraftingViewCollection.UpdateViewBreaks¶ Log all view breaks of the view for update
Signature
UpdateViewBreaks(view)Parameters: view ( NXOpen.Drawings.DraftingView) – View in which view breaks will be updatedNew in version NX8.5.0.
License requirements: drafting (“DRAFTING”)
UpdateViews¶
-
DraftingViewCollection.UpdateViews¶ Overloaded method UpdateViews
UpdateViews(updateOption)UpdateViews(updateOption, drawing)UpdateViews(views)
-------------------------------------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
Drawings.DraftingViewCollectionViewUpdateOption.OutOfDate.Signature
UpdateViews(updateOption)Parameters: updateOption ( NXOpen.Drawings.DraftingViewCollectionViewUpdateOption) – View update optionNew in version NX3.0.0.
License requirements: drafting (“DRAFTING”)
-------------------------------------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
Drawings.DraftingViewCollectionViewUpdateOption.OutOfDate.Signature
UpdateViews(updateOption, drawing)Parameters: - updateOption (
NXOpen.Drawings.DraftingViewCollectionViewUpdateOption) – View update option - drawing (
NXOpen.Drawings.DrawingSheet) –
New in version NX3.0.0.
License requirements: drafting (“DRAFTING”)
-------------------------------------Updates the drafting views. The views in list can be spread amongst multiple sheets, but they must all belong to the same part.
Signature
UpdateViews(views)Parameters: views (list of NXOpen.Drawings.DraftingView) –New in version NX3.0.0.
License requirements: drafting (“DRAFTING”)
-------------------------------------