NXOpen .NET Reference  12.0.0
Public Types | Public Member Functions | Protected Member Functions | Properties | List of all members
NXOpen.Drawings.DraftingViewCollection Class Reference

Represents a collection of NXOpen.Drawings.DraftingView s. More...

Inheritance diagram for NXOpen.Drawings.DraftingViewCollection:

Public Types

enum  ViewUpdateOption { All, OutOfDate, OutOfDateAutomatic }
 Specifies which drafting views to update. More...
 
enum  ViewCopyAnnotOption { CopyAnnotation, DontCopyAnnotation }
 Specifies the the annotation copy mode. More...
 
enum  ViewCopyDetailOption { DetailView, DuplicateView, ModelView }
 Specifies the the view copy mode. More...
 

Public Member Functions

NXOpen.Drawings.DraftingView[] ToArray ()
 Returns an array of NXOpen.Drawings.DraftingView objects. More...
 
unsafe void UpdateViews (NXOpen.Drawings.DraftingViewCollection.ViewUpdateOption updateOption)
 Updates drafting views in the part determined by an update option. More...
 
unsafe void UpdateViews (NXOpen.Drawings.DraftingViewCollection.ViewUpdateOption updateOption, NXOpen.Drawings.DrawingSheet drawing)
 Updates drafting views in a sheet determined by an update option. More...
 
unsafe void UpdateViews (NXOpen.Drawings.DraftingView[] views)
 Updates the drafting views. More...
 
unsafe void SuppressViewBreaks (NXOpen.Drawings.DraftingView view)
 Suppress all view breaks of the view. More...
 
unsafe void RestoreViewBreaks (NXOpen.Drawings.DraftingView view)
 Restore all view breaks of the view suppressed by Drawings.DraftingViewCollection.SuppressViewBreaks More...
 
unsafe void UpdateViewBreaks (NXOpen.Drawings.DraftingView view)
 Log all view breaks of the view for update More...
 
unsafe void PasteViews (NXOpen.Drawings.DrawingSheet drawing, NXOpen.Drawings.DraftingView[] views, NXOpen.Drawings.DraftingViewCollection.ViewCopyDetailOption detailOption, NXOpen.Drawings.DraftingViewCollection.ViewCopyAnnotOption annotOption, out NXOpen.Drawings.DraftingView[] newViews)
 Paste views More...
 
unsafe void MoveViewsToDrawing (NXOpen.Drawings.DraftingView[] views, NXOpen.Drawings.DrawingSheet drawing)
 Move views to drawing More...
 
unsafe NXOpen.Drawings.DraftingView FindObject (string journalIdentifier)
 Finds the NXOpen.Drawings.DraftingView with the given identifier as recorded in a journal. More...
 
unsafe NXOpen.ModelingView GetParentOfView (NXOpen.View view)
 Find the parent cut (sectioned) model view of a drawing member view. More...
 
unsafe void DeleteViewsInOriginalPart (NXOpen.Drawings.DraftingView[] views)
 Deletes views in original part More...
 
unsafe
NXOpen.Drawings.UpdateViewsBuilder 
CreateUpdateViewsBuilder ()
 Creates the Update Views Builder More...
 
unsafe
NXOpen.Drawings.BaseViewBuilder 
CreateBaseViewBuilder (NXOpen.Drawings.BaseView view)
 Creates the Base View Builder More...
 
unsafe
NXOpen.Drawings.ProjectedViewBuilder 
CreateProjectedViewBuilder (NXOpen.Drawings.ProjectedView view)
 Creates the Projected View Builder More...
 
unsafe
NXOpen.Drawings.SectionViewBuilder 
CreateSectionViewBuilder (NXOpen.NXObject sectionViewOrSectionLine)
 Creates the Section View Builder More...
 
unsafe
NXOpen.Drawings.SectionInViewBuilder 
CreateSectionInViewBuilder ()
 Creates the Section In View Builder More...
 
unsafe
NXOpen.Drawings.DrawingViewBuilder 
CreateDrawingViewBuilder (NXOpen.Drawings.DrawingView drawingview)
 Creates a DrawingViewBuilder More...
 
unsafe
NXOpen.Drawings.DetailViewBuilder 
CreateDetailViewBuilder (NXOpen.Drawings.DetailView view)
 Creates a NXOpen.Drawings.DetailViewBuilder More...
 
unsafe
NXOpen.Drawings.ViewCopyTo3dBuilder 
CreateCopyTo3dBuilder ()
 Creates a NXOpen.Drawings.ViewCopyTo3dBuilder More...
 
unsafe
NXOpen.Drawings.StandardViewsBuilder 
CreateStandardViewsBuilder ()
 Creates a StandardViewsBuilder More...
 
unsafe
NXOpen.Drawings.ViewProjectionBuilder 
CreateViewProjectionBuilder ()
 Creates a NXOpen.Drawings.ViewProjectionBuilder More...
 
unsafe
NXOpen.Drawings.BrokenViewBuilder 
CreateBrokenViewBuilder (NXOpen.Drawings.ViewBreak viewbreak)
 Creates a NXOpen.Drawings.BrokenViewBuilder More...
 
unsafe void ConvertLegacyViewsToLightweight (NXOpen.Drawings.DraftingView[] views)
 Converts legacy views to lightweight. More...
 
unsafe
NXOpen.Drawings.RefineDisplayBuilder 
CreateRefineDisplayBuilder ()
 Creates a NXOpen.Drawings.RefineDisplayBuilder More...
 
unsafe
NXOpen.Drawings.AddRemoveBoxViewBuilder 
CreateAddRemoveBoxViewBuilder (NXOpen.Drawings.DraftingView activeView)
 Creates a NXOpen.Drawings.AddRemoveBoxViewBuilder More...
 
unsafe
NXOpen.Drawings.ViewCreationWizardBuilder 
CreateViewCreationWizardBuilder ()
 Creates a NXOpen.Drawings.ViewCreationWizardBuilder More...
 
unsafe
NXOpen.Drawings.ViewStyleShipbuildingLinesBuilder 
CreateShipbuildingLineBuilder ()
 Creates a NXOpen.Drawings.ViewStyleShipbuildingLinesBuilder More...
 
unsafe
NXOpen.Drawings.CustomViewSettingsBuilder 
CreateCustomViewSettingsBuilder ()
 Creates a NXOpen.Drawings.CustomViewSettingsBuilder More...
 
unsafe
NXOpen.Drawings.ShipDraftingViewLinesBuilder 
CreateShipDraftingViewLinesBuilder ()
 Creates a NXOpen.Drawings.ShipDraftingViewLinesBuilder More...
 
unsafe
NXOpen.Drawings.SecondaryGeometryInViewsBuilder 
CreateSecondaryGeometryInViewsBuilder ()
 Creates a NXOpen.Drawings.SecondaryGeometryInViewsBuilder More...
 

Protected Member Functions

override int EnumerateMoveNext (ref Tag currentTag, byte[] state)
 Advances the enumerator to the next element of the collection. More...
 

Properties

Tag Tag [get]
 Returns the tag of this object. More...
 

Detailed Description

Represents a collection of NXOpen.Drawings.DraftingView s.

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

Created in NX3.0.0

Member Enumeration Documentation

Specifies the the annotation copy mode.

Enumerator
CopyAnnotation 

copy annotation

DontCopyAnnotation 

don't copy annotation

Specifies the the view copy mode.

Enumerator
DetailView 

detail view

DuplicateView 

duplicate view

ModelView 

model view

Specifies which drafting views to update.

Enumerator
All 

Updates all views in scope (part or drawing sheet).

OutOfDate 

Updates all out of date views in scope (part or drawing sheet).

OutOfDateAutomatic 

Updates all out of date automatic views in scope (part or drawing sheet).

Member Function Documentation

unsafe void NXOpen.Drawings.DraftingViewCollection.ConvertLegacyViewsToLightweight ( 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")

Parameters
views
unsafe NXOpen.Drawings.AddRemoveBoxViewBuilder NXOpen.Drawings.DraftingViewCollection.CreateAddRemoveBoxViewBuilder ( NXOpen.Drawings.DraftingView  activeView)

Creates a NXOpen.Drawings.AddRemoveBoxViewBuilder

Created in NX8.0.0

License requirements: drafting ("DRAFTING")

Parameters
activeViewthe active view. Cannot be a null reference (Nothing in Visual Basic).
Returns
unsafe NXOpen.Drawings.BaseViewBuilder NXOpen.Drawings.DraftingViewCollection.CreateBaseViewBuilder ( NXOpen.Drawings.BaseView  view)

Creates the Base View Builder

Created in NX6.0.0

License requirements: drafting ("DRAFTING")

Parameters
viewthe base view to be edited, if a null reference (Nothing in Visual Basic), then create a base view
Returns
unsafe NXOpen.Drawings.BrokenViewBuilder NXOpen.Drawings.DraftingViewCollection.CreateBrokenViewBuilder ( NXOpen.Drawings.ViewBreak  viewbreak)

Creates a NXOpen.Drawings.BrokenViewBuilder

Created in NX7.5.0

License requirements: drafting ("DRAFTING")

Parameters
viewbreakthe view break to be edited, a null reference (Nothing in Visual Basic) in case of new broken view.
Returns
unsafe NXOpen.Drawings.ViewCopyTo3dBuilder NXOpen.Drawings.DraftingViewCollection.CreateCopyTo3dBuilder ( )

Creates a NXOpen.Drawings.ViewCopyTo3dBuilder

Created in NX6.0.0

License requirements: drafting ("DRAFTING")

Returns
unsafe NXOpen.Drawings.CustomViewSettingsBuilder NXOpen.Drawings.DraftingViewCollection.CreateCustomViewSettingsBuilder ( )

Creates a NXOpen.Drawings.CustomViewSettingsBuilder

Created in NX8.5.0

License requirements: drafting ("DRAFTING")

Returns
unsafe NXOpen.Drawings.DetailViewBuilder NXOpen.Drawings.DraftingViewCollection.CreateDetailViewBuilder ( NXOpen.Drawings.DetailView  view)

Creates a NXOpen.Drawings.DetailViewBuilder

Created in NX6.0.0

License requirements: drafting ("DRAFTING")

Parameters
viewNXOpen.Drawings.DetailView to be edited, if a null reference (Nothing in Visual Basic) then create a new one
Returns
unsafe NXOpen.Drawings.DrawingViewBuilder NXOpen.Drawings.DraftingViewCollection.CreateDrawingViewBuilder ( NXOpen.Drawings.DrawingView  drawingview)

Creates a DrawingViewBuilder

Created in NX6.0.0

License requirements: drafting ("DRAFTING")

Parameters
drawingviewthe drawing view to be edited, if a null reference (Nothing in Visual Basic), then create a drawing view
Returns
unsafe NXOpen.Drawings.ProjectedViewBuilder NXOpen.Drawings.DraftingViewCollection.CreateProjectedViewBuilder ( NXOpen.Drawings.ProjectedView  view)

Creates the Projected View Builder

Created in NX6.0.0

License requirements: drafting ("DRAFTING")

Parameters
viewthe projected view to be edited, if a null reference (Nothing in Visual Basic), then create a projected view
Returns
unsafe NXOpen.Drawings.RefineDisplayBuilder NXOpen.Drawings.DraftingViewCollection.CreateRefineDisplayBuilder ( )

Creates a NXOpen.Drawings.RefineDisplayBuilder

Created in NX8.0.0

License requirements: drafting ("DRAFTING")

Returns
unsafe NXOpen.Drawings.SecondaryGeometryInViewsBuilder NXOpen.Drawings.DraftingViewCollection.CreateSecondaryGeometryInViewsBuilder ( )

Creates a NXOpen.Drawings.SecondaryGeometryInViewsBuilder

Created in NX11.0.0

License requirements: drafting ("DRAFTING")

Returns
Returns the Secondary Geometry In Views builder
unsafe NXOpen.Drawings.SectionInViewBuilder NXOpen.Drawings.DraftingViewCollection.CreateSectionInViewBuilder ( )

Creates the Section In View Builder

Created in NX6.0.0

License requirements: drafting ("DRAFTING")

Returns
unsafe NXOpen.Drawings.SectionViewBuilder NXOpen.Drawings.DraftingViewCollection.CreateSectionViewBuilder ( NXOpen.NXObject  sectionViewOrSectionLine)

Creates the Section View Builder

Created in NX6.0.0

License requirements: drafting ("DRAFTING")

Parameters
sectionViewOrSectionLinethe section view or section line to be edited, if a null reference (Nothing in Visual Basic), then create a section view or section line
Returns
unsafe NXOpen.Drawings.ViewStyleShipbuildingLinesBuilder NXOpen.Drawings.DraftingViewCollection.CreateShipbuildingLineBuilder ( )

Creates a NXOpen.Drawings.ViewStyleShipbuildingLinesBuilder

Created in NX8.0.0

License requirements: drafting ("DRAFTING")

Returns
Returns the empty Shipbuilding Lines sub-builder on View Style
unsafe NXOpen.Drawings.ShipDraftingViewLinesBuilder NXOpen.Drawings.DraftingViewCollection.CreateShipDraftingViewLinesBuilder ( )

Creates a NXOpen.Drawings.ShipDraftingViewLinesBuilder

Created in NX10.0.0

License requirements: nx_ship_drafting ("Ship Drafting")

Returns
Returns the empty Ship Drafting View Lines sub-builder on View Style
unsafe NXOpen.Drawings.StandardViewsBuilder NXOpen.Drawings.DraftingViewCollection.CreateStandardViewsBuilder ( )

Creates a StandardViewsBuilder

Created in NX6.0.1

License requirements: nx_layout ("NX Layout")

Returns
unsafe NXOpen.Drawings.UpdateViewsBuilder NXOpen.Drawings.DraftingViewCollection.CreateUpdateViewsBuilder ( )

Creates the Update Views Builder

Created in NX5.0.0

License requirements: drafting ("DRAFTING")

Returns
unsafe NXOpen.Drawings.ViewCreationWizardBuilder NXOpen.Drawings.DraftingViewCollection.CreateViewCreationWizardBuilder ( )

Creates a NXOpen.Drawings.ViewCreationWizardBuilder

Created in NX8.0.0

License requirements: drafting ("DRAFTING")

Returns
unsafe NXOpen.Drawings.ViewProjectionBuilder NXOpen.Drawings.DraftingViewCollection.CreateViewProjectionBuilder ( )

Creates a NXOpen.Drawings.ViewProjectionBuilder

Created in NX6.0.2

License requirements: nx_layout ("NX Layout")

Returns
unsafe void NXOpen.Drawings.DraftingViewCollection.DeleteViewsInOriginalPart ( NXOpen.Drawings.DraftingView[]  views)

Deletes views in original part

Created in NX8.0.0

License requirements: drafting ("DRAFTING")

Parameters
views
override int NXOpen.Drawings.DraftingViewCollection.EnumerateMoveNext ( ref Tag  currentTag,
byte[]  state 
)
protected

Advances the enumerator to the next element of the collection.

unsafe NXOpen.Drawings.DraftingView NXOpen.Drawings.DraftingViewCollection.FindObject ( string  journalIdentifier)

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.

Created in NX3.0.0

License requirements: None.

Parameters
journalIdentifierIdentifier of the drafting view to be found
Returns
View with this identifier
unsafe 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, a null reference (Nothing in Visual Basic) is returned.

Created in NX3.0.0

License requirements: None.

Parameters
view
Returns
unsafe void NXOpen.Drawings.DraftingViewCollection.MoveViewsToDrawing ( NXOpen.Drawings.DraftingView[]  views,
NXOpen.Drawings.DrawingSheet  drawing 
)

Move views to drawing

Created in NX7.5.0

License requirements: drafting ("DRAFTING")

Parameters
viewsnew views
drawingthe drawing which view will in
unsafe void NXOpen.Drawings.DraftingViewCollection.PasteViews ( NXOpen.Drawings.DrawingSheet  drawing,
NXOpen.Drawings.DraftingView[]  views,
NXOpen.Drawings.DraftingViewCollection.ViewCopyDetailOption  detailOption,
NXOpen.Drawings.DraftingViewCollection.ViewCopyAnnotOption  annotOption,
out NXOpen.Drawings.DraftingView[]  newViews 
)

Paste views

Created in NX7.5.0

License requirements: drafting ("DRAFTING")

Parameters
drawingthe drawing which view in
viewsold views
detailOptiondetail copy option
annotOptionAnnotation copy option
newViewsnew views
unsafe 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")

Parameters
view
unsafe 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")

Parameters
view
NXOpen.Drawings.DraftingView [] NXOpen.Drawings.DraftingViewCollection.ToArray ( )

Returns an array of NXOpen.Drawings.DraftingView objects.

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

Parameters
viewView in which view breaks will be updated
unsafe 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 Drawings.DraftingViewCollection.ViewUpdateOption.OutOfDate .

Created in NX3.0.0

License requirements: drafting ("DRAFTING")

Parameters
updateOptionView update option
unsafe 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 Drawings.DraftingViewCollection.ViewUpdateOption.OutOfDate .

Created in NX3.0.0

License requirements: drafting ("DRAFTING")

Parameters
updateOptionView update option
drawing
unsafe void NXOpen.Drawings.DraftingViewCollection.UpdateViews ( 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")

Parameters
views

Property Documentation

Tag NXOpen.Drawings.DraftingViewCollection.Tag
get

Returns the tag of this object.


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