DraftingViewCollection Class

class NXOpen.Drawings.DraftingViewCollection

Bases: object

Represents a collection of :py:class:`NXOpen.Drawings.DraftingView`s.

To obtain an instance of this class, refer to NXOpen.Part

New in version NX3.0.0.

Methods

Method Description
ConvertLegacyViewsToLightweight Converts legacy views to lightweight.
CreateAddRemoveBoxViewBuilder Creates a NXOpen.Drawings.AddRemoveBoxViewBuilder
CreateBaseViewBuilder Creates the Base View Builder
CreateBrokenViewBuilder Creates a NXOpen.Drawings.BrokenViewBuilder
CreateCopyTo3dBuilder Creates a NXOpen.Drawings.ViewCopyTo3dBuilder
CreateCustomViewSettingsBuilder Creates a NXOpen.Drawings.CustomViewSettingsBuilder
CreateDetailViewBuilder Creates a NXOpen.Drawings.DetailViewBuilder
CreateDrawingViewBuilder Creates a DrawingViewBuilder
CreateProjectedViewBuilder Creates the Projected View Builder
CreateRefineDisplayBuilder Creates a NXOpen.Drawings.RefineDisplayBuilder
CreateSecondaryGeometryInViewsBuilder Creates a NXOpen.Drawings.SecondaryGeometryInViewsBuilder
CreateSectionInViewBuilder Creates the Section In View Builder
CreateSectionViewBuilder Creates the Section View Builder
CreateShipDraftingViewLinesBuilder Creates a NXOpen.Drawings.ShipDraftingViewLinesBuilder
CreateShipbuildingLineBuilder Creates a NXOpen.Drawings.ViewStyleShipbuildingLinesBuilder
CreateStandardViewsBuilder Creates a StandardViewsBuilder
CreateUpdateViewsBuilder Creates the Update Views Builder
CreateViewCreationWizardBuilder Creates a NXOpen.Drawings.ViewCreationWizardBuilder
CreateViewProjectionBuilder Creates a NXOpen.Drawings.ViewProjectionBuilder
DeleteViewsInOriginalPart Deletes views in original part
FindObject Finds the NXOpen.Drawings.DraftingView with the given identifier as recorded in a journal.
GetParentOfView Find the parent cut (sectioned) model view of a drawing member view.
MoveViewsToDrawing Move views to drawing
PasteViews Paste views
RestoreViewBreaks Restore all view breaks of the view suppressed by Drawings.DraftingViewCollection.SuppressViewBreaks()
SuppressViewBreaks Suppress all view breaks of the view.
UpdateViewBreaks Log all view breaks of the view for update
UpdateViews Updates drafting views in the part determined by an update option.

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.AddRemoveBoxViewBuilder

Signature CreateAddRemoveBoxViewBuilder(activeView)

Parameters:activeView – the active view.

Cannot be None. :type activeView: NXOpen.Drawings.DraftingView :returns: :rtype: NXOpen.Drawings.AddRemoveBoxViewBuilder

New 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 view
Returns:
Return type:NXOpen.Drawings.BaseViewBuilder

New in version NX6.0.0.

License requirements: drafting (“DRAFTING”)

CreateBrokenViewBuilder

DraftingViewCollection.CreateBrokenViewBuilder

Creates a NXOpen.Drawings.BrokenViewBuilder

Signature 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.BrokenViewBuilder

New in version NX7.5.0.

License requirements: drafting (“DRAFTING”)

CreateCopyTo3dBuilder

DraftingViewCollection.CreateCopyTo3dBuilder

Creates a NXOpen.Drawings.ViewCopyTo3dBuilder

Signature CreateCopyTo3dBuilder()

Returns:
Return type:NXOpen.Drawings.ViewCopyTo3dBuilder

New in version NX6.0.0.

License requirements: drafting (“DRAFTING”)

CreateCustomViewSettingsBuilder

DraftingViewCollection.CreateCustomViewSettingsBuilder

Creates a NXOpen.Drawings.CustomViewSettingsBuilder

Signature CreateCustomViewSettingsBuilder()

Returns:
Return type:NXOpen.Drawings.CustomViewSettingsBuilder

New in version NX8.5.0.

License requirements: drafting (“DRAFTING”)

CreateDetailViewBuilder

DraftingViewCollection.CreateDetailViewBuilder

Creates a NXOpen.Drawings.DetailViewBuilder

Signature CreateDetailViewBuilder(view)

Parameters:view (NXOpen.Drawings.DetailView) – NXOpen.Drawings.DetailView to be edited, if None then create a new one
Returns:
Return type:NXOpen.Drawings.DetailViewBuilder

New 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 view
Returns:
Return type:NXOpen.Drawings.DrawingViewBuilder

New 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 view
Returns:
Return type:NXOpen.Drawings.ProjectedViewBuilder

New in version NX6.0.0.

License requirements: drafting (“DRAFTING”)

CreateRefineDisplayBuilder

DraftingViewCollection.CreateRefineDisplayBuilder

Creates a NXOpen.Drawings.RefineDisplayBuilder

Signature CreateRefineDisplayBuilder()

Returns:
Return type:NXOpen.Drawings.RefineDisplayBuilder

New in version NX8.0.0.

License requirements: drafting (“DRAFTING”)

CreateSecondaryGeometryInViewsBuilder

DraftingViewCollection.CreateSecondaryGeometryInViewsBuilder

Creates a NXOpen.Drawings.SecondaryGeometryInViewsBuilder

Signature CreateSecondaryGeometryInViewsBuilder()

Returns:Returns the Secondary Geometry In Views builder
Return type:NXOpen.Drawings.SecondaryGeometryInViewsBuilder

New 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.SectionInViewBuilder

New 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 line
Returns:
Return type:NXOpen.Drawings.SectionViewBuilder

New in version NX6.0.0.

License requirements: drafting (“DRAFTING”)

CreateShipDraftingViewLinesBuilder

DraftingViewCollection.CreateShipDraftingViewLinesBuilder

Creates a NXOpen.Drawings.ShipDraftingViewLinesBuilder

Signature CreateShipDraftingViewLinesBuilder()

Returns:Returns the empty Ship Drafting View Lines sub-builder on View Style
Return type:NXOpen.Drawings.ShipDraftingViewLinesBuilder

New in version NX10.0.0.

License requirements: nx_ship_drafting (“Ship Drafting”)

CreateShipbuildingLineBuilder

DraftingViewCollection.CreateShipbuildingLineBuilder

Creates a NXOpen.Drawings.ViewStyleShipbuildingLinesBuilder

Signature CreateShipbuildingLineBuilder()

Returns:Returns the empty Shipbuilding Lines sub-builder on View Style
Return type:NXOpen.Drawings.ViewStyleShipbuildingLinesBuilder

New in version NX8.0.0.

License requirements: drafting (“DRAFTING”)

CreateStandardViewsBuilder

DraftingViewCollection.CreateStandardViewsBuilder

Creates a StandardViewsBuilder

Signature CreateStandardViewsBuilder()

Returns:
Return type:NXOpen.Drawings.StandardViewsBuilder

New 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.UpdateViewsBuilder

New in version NX5.0.0.

License requirements: drafting (“DRAFTING”)

CreateViewCreationWizardBuilder

DraftingViewCollection.CreateViewCreationWizardBuilder

Creates a NXOpen.Drawings.ViewCreationWizardBuilder

Signature CreateViewCreationWizardBuilder()

Returns:
Return type:NXOpen.Drawings.ViewCreationWizardBuilder

New in version NX8.0.0.

License requirements: drafting (“DRAFTING”)

CreateViewProjectionBuilder

DraftingViewCollection.CreateViewProjectionBuilder

Creates a NXOpen.Drawings.ViewProjectionBuilder

Signature CreateViewProjectionBuilder()

Returns:
Return type:NXOpen.Drawings.ViewProjectionBuilder

New 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.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.

Signature FindObject(journalIdentifier)

Parameters:journalIdentifier (str) – Identifier of the drafting view to be found
Returns:View with this identifier
Return type:NXOpen.Drawings.DraftingView

New 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.ModelingView

New in version NX3.0.0.

License requirements: None.

MoveViewsToDrawing

DraftingViewCollection.MoveViewsToDrawing

Move views to drawing

Signature MoveViewsToDrawing(views, drawing)

Parameters:

New in version NX7.5.0.

License requirements: drafting (“DRAFTING”)

PasteViews

DraftingViewCollection.PasteViews

Paste views

Signature PasteViews(drawing, views, detailOption, annotOption)

Parameters:
Returns:

new views

Return type:

list of NXOpen.Drawings.DraftingView

New in version NX7.5.0.

License requirements: drafting (“DRAFTING”)

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 updated

New 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 option

New 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:

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

-------------------------------------