NXOpen .NET Reference  12.0.0
Public Member Functions | Protected Member Functions | Properties | List of all members
NXOpen.Display.DynamicSectionCollection Class Reference

Represents a collection of dynamic section objects More...

Inheritance diagram for NXOpen.Display.DynamicSectionCollection:

Public Member Functions

NXOpen.Display.DynamicSection[] ToArray ()
 Returns an array of NXOpen.Display.DynamicSection objects. More...
 
unsafe
NXOpen.Display.DynamicSectionBuilder 
CreateSectionBuilder (NXOpen.Display.DynamicSection section, NXOpen.ModelingView view)
 Creates a NXOpen.Display.DynamicSectionBuilder object if the section is a null reference (Nothing in Visual Basic). More...
 
unsafe
NXOpen.Display.DynamicSectionBuilder 
CreateSectionBuilder (NXOpen.ModelingView view)
 Creates a NXOpen.Display.DynamicSectionBuilder object that is used to edit a section object in the specified view. More...
 
unsafe
NXOpen.Display.DynamicSection[] 
CopySections (NXOpen.Display.DynamicSection[] sections, bool deleteOriginals)
 Copies the specified dynamic sections in the part. More...
 
unsafe void DeleteSections (bool addUndoMark, NXOpen.Display.DynamicSection[] sections)
 Deletes the specified dynamic sections in the part. More...
 
unsafe
NXOpen.Display.DynamicSection 
FindObject (string journalIdentifier)
 Finds the NXOpen.Display.DynamicSection with the given identifier as recorded in a journal. More...
 
unsafe void MoveToDefaultLayer (NXOpen.Display.DynamicSection[] dynamicSections)
 Moves the specified dynamic sections in the part to default layer. 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 dynamic section objects

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

Created in NX6.0.0

Member Function Documentation

unsafe NXOpen.Display.DynamicSection [] NXOpen.Display.DynamicSectionCollection.CopySections ( NXOpen.Display.DynamicSection[]  sections,
bool  deleteOriginals 
)

Copies the specified dynamic sections in the part.

A copy of each specified dynamic section will be created and then added to the part. It is ensured that each dynamic section object in the part has a unique name. Hence, it is possible that the name of a pasted section object is different from that of the input section object if its name clashes with an existing section object in the part.

The section objects being copied must have been loaded in the memory. Otherwise this method will throw an exception.

Created in NX6.0.0

License requirements: None.

Parameters
sectionsThe objects to be pasted in the part
deleteOriginalsFlag indicating whether the input sections should be deleted
Returns
Copied section objects in the part.
unsafe NXOpen.Display.DynamicSectionBuilder NXOpen.Display.DynamicSectionCollection.CreateSectionBuilder ( NXOpen.Display.DynamicSection  section,
NXOpen.ModelingView  view 
)

Creates a NXOpen.Display.DynamicSectionBuilder object if the section is a null reference (Nothing in Visual Basic).

Otherwise, a Section object will be edited.

The specified view can be a null reference (Nothing in Visual Basic), in which case the section object is not activated in any view.

Created in NX6.0.0

License requirements: None.

Parameters
section
view
Returns
unsafe NXOpen.Display.DynamicSectionBuilder NXOpen.Display.DynamicSectionCollection.CreateSectionBuilder ( NXOpen.ModelingView  view)

Creates a NXOpen.Display.DynamicSectionBuilder object that is used to edit a section object in the specified view.

If no section object is available for the view, then a new one is created.

The specified view can not be a null reference (Nothing in Visual Basic), otherwise an exception will be raised.

Created in NX6.0.0

License requirements: None.

Parameters
view
Returns
unsafe void NXOpen.Display.DynamicSectionCollection.DeleteSections ( bool  addUndoMark,
NXOpen.Display.DynamicSection[]  sections 
)

Deletes the specified dynamic sections in the part.

All views in which the dynamic sections were active are updated to reflect the change. An update will be performed to remove deleted objects.

Created in NX8.0.0

License requirements: None.

Parameters
addUndoMarkDetermines if a visible undo mark is added
sectionsThe dynamic sections to be deleted
override int NXOpen.Display.DynamicSectionCollection.EnumerateMoveNext ( ref Tag  currentTag,
byte[]  state 
)
protected

Advances the enumerator to the next element of the collection.

unsafe NXOpen.Display.DynamicSection NXOpen.Display.DynamicSectionCollection.FindObject ( string  journalIdentifier)

Finds the NXOpen.Display.DynamicSection 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 NX6.0.0

License requirements: None.

Parameters
journalIdentifierIdentifier to be found
Returns
Section found
unsafe void NXOpen.Display.DynamicSectionCollection.MoveToDefaultLayer ( NXOpen.Display.DynamicSection[]  dynamicSections)

Moves the specified dynamic sections in the part to default layer.

The default settings are obtained from the view sectioning customer defaults.

Created in NX9.0.0

License requirements: None.

Parameters
dynamicSectionsThe dynamic sections to be modified
NXOpen.Display.DynamicSection [] NXOpen.Display.DynamicSectionCollection.ToArray ( )

Returns an array of NXOpen.Display.DynamicSection objects.

Property Documentation

Tag NXOpen.Display.DynamicSectionCollection.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.