NX Open C++ Reference Guide
Public Types | Public Member Functions | List of all members
NXOpen::Drawings::ViewPlacementBuilder Class Reference

Represents a NXOpen::Drawings::ViewPlacementBuilder . More...

Inheritance diagram for NXOpen::Drawings::ViewPlacementBuilder:
NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

Public Types

enum  Method {
  MethodInfer, MethodHorizontal, MethodVertical, MethodPerpendicularToLine,
  MethodOverlay, MethodPerpendicularToHingeLine, MethodMax
}
 view method More...
 
enum  Option { OptionToView, OptionModelPoint, OptionPointToPoint }
 view option More...
 

Public Member Functions

NXOpen::Drawings::ViewPlacementBuilder::Method AlignmentMethod ()
 Returns the alignment method
Created in NX6.0.0. More...
 
NXOpen::Drawings::ViewPlacementBuilder::Option AlignmentOption ()
 Returns the alignment option used to indicate what points in the views to align. More...
 
NXOpen::SelectTaggedObjectAlignmentPoint ()
 Returns the point to align to. More...
 
NXOpen::DirectionAlignmentVector ()
 Returns the vector to align along. More...
 
NXOpen::Drawings::SelectDraftingViewAlignmentView ()
 Returns the view to align to. More...
 
bool Associative ()
 Returns the flag used to create a persistent alignment
Created in NX8.5.0. More...
 
NXOpen::SelectTaggedObjectCandidatePoint ()
 Returns the point to align in the view being edited. More...
 
bool LockOffset ()
 Returns the lock offset flag. More...
 
double Offset ()
 Returns the offset. More...
 
NXOpen::SelectNXObjectPlacement ()
 Returns the placement location. More...
 
void SetAlignmentMethod (NXOpen::Drawings::ViewPlacementBuilder::Method alignmentMethod)
 Sets the alignment method
Created in NX6.0.0. More...
 
void SetAlignmentOption (NXOpen::Drawings::ViewPlacementBuilder::Option alignmentOption)
 Sets the alignment option used to indicate what points in the views to align. More...
 
void SetAlignmentVector (NXOpen::Direction *alignmentVector)
 Sets the vector to align along. More...
 
void SetAssociative (bool associative)
 Sets the flag used to create a persistent alignment
Created in NX8.5.0. More...
 
void SetLockOffset (bool lockOffset)
 Sets the lock offset flag. More...
 
void SetOffset (double offset)
 Sets the offset. More...
 
virtual bool Validate ()
 Validate whether the inputs to the component are sufficient for commit to be called. More...
 
- Public Member Functions inherited from NXOpen::TaggedObject
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

Represents a NXOpen::Drawings::ViewPlacementBuilder .

This class is used to define the origin of a view.


Created in NX6.0.0.

Member Enumeration Documentation

view method

Enumerator
MethodInfer 

Infer the view position.

MethodHorizontal 

Align the view horizontally to another view.

MethodVertical 

Align the view vertically to another view.

MethodPerpendicularToLine 

Align the view along some line to another view.

MethodOverlay 

Align the view on top of another view.

MethodPerpendicularToHingeLine 

Align the view along the hinge line.

MethodMax 

Should be the last enum in the list.

view option

Enumerator
OptionToView 

Align to the view centers.

OptionModelPoint 

Align to the same point in the alignment view and the view being edited.

OptionPointToPoint 

Align a point in the alignment view to another point in the view being edited.

Member Function Documentation

NXOpen::Drawings::ViewPlacementBuilder::Method NXOpen::Drawings::ViewPlacementBuilder::AlignmentMethod ( )

Returns the alignment method
Created in NX6.0.0.



License requirements : None

NXOpen::Drawings::ViewPlacementBuilder::Option NXOpen::Drawings::ViewPlacementBuilder::AlignmentOption ( )

Returns the alignment option used to indicate what points in the views to align.

The alignment option is not used when the alignment method is set to NXOpen::Drawings::ViewPlacementBuilder::MethodInfer .
Created in NX6.0.0.

License requirements : None

NXOpen::SelectTaggedObject* NXOpen::Drawings::ViewPlacementBuilder::AlignmentPoint ( )

Returns the point to align to.

This point is only required for the NXOpen::Drawings::ViewPlacementBuilder::OptionModelPoint and NXOpen::Drawings::ViewPlacementBuilder::OptionPointToPoint alignment options. The point is required for all alignment methods except for NXOpen::Drawings::ViewPlacementBuilder::MethodInfer . This point may be specified by either selecting an object of NXOpen::Point class or not selecting an object and specifying a NXOpen::Point3d selected object point.
Created in NX6.0.0.

License requirements : None

NXOpen::Direction* NXOpen::Drawings::ViewPlacementBuilder::AlignmentVector ( )

Returns the vector to align along.

The vector is only required for the NXOpen::Drawings::ViewPlacementBuilder::MethodPerpendicularToLine alignment method. The vector must be set regardless of the alignment option.
Created in NX6.0.0.

License requirements : None

NXOpen::Drawings::SelectDraftingView* NXOpen::Drawings::ViewPlacementBuilder::AlignmentView ( )

Returns the view to align to.

The view is required for all alignment options. The view is required for all alignment methods except for NXOpen::Drawings::ViewPlacementBuilder::MethodInfer .
Created in NX6.0.0.

License requirements : None

bool NXOpen::Drawings::ViewPlacementBuilder::Associative ( )

Returns the flag used to create a persistent alignment
Created in NX8.5.0.



License requirements : drafting ("DRAFTING")

NXOpen::SelectTaggedObject* NXOpen::Drawings::ViewPlacementBuilder::CandidatePoint ( )

Returns the point to align in the view being edited.

This point is only required for the NXOpen::Drawings::ViewPlacementBuilder::OptionPointToPoint alignment option. The point is required for all alignment methods except NXOpen::Drawings::ViewPlacementBuilder::MethodInfer . This point may be specified by either selecting an object of NXOpen::Point class or not selecting an object and specifying a NXOpen::Point3d selected object point.
Created in NX6.0.0.

License requirements : None

bool NXOpen::Drawings::ViewPlacementBuilder::LockOffset ( )

Returns the lock offset flag.

Use the offset property if this flag is set to true.
Created in NX6.0.0.

License requirements : None

double NXOpen::Drawings::ViewPlacementBuilder::Offset ( )

Returns the offset.

If the lock offset flag is set to true then the offset will be applied. The offset has no meaning when used with the NXOpen::Drawings::ViewPlacementBuilder::MethodOverlay . If the NXOpen::Drawings::ViewPlacementBuilder::MethodInfer method is set, then the offset is defined as the distance from the view to its parent view. For all other methods, the offset is defined as the distance along the line being aligned to.
Created in NX6.0.0.

License requirements : None

NXOpen::SelectNXObject* NXOpen::Drawings::ViewPlacementBuilder::Placement ( )

Returns the placement location.

The location may be specified by either selecting an object of NXOpen::Point class or not selecting an object and specifying a NXOpen::Point3d selected object point. If the alignment method is set to NXOpen::Drawings::ViewPlacementBuilder::MethodInfer then the location defines the position of the view's center. The location is not necessarily the position of the view. The location provides a hint point that helps determine the view's position based on the alignment method and alignment point specified.
Created in NX6.0.0.

License requirements : None

void NXOpen::Drawings::ViewPlacementBuilder::SetAlignmentMethod ( NXOpen::Drawings::ViewPlacementBuilder::Method  alignmentMethod)

Sets the alignment method
Created in NX6.0.0.



License requirements : drafting ("DRAFTING")

Parameters
alignmentMethodalignmentmethod
void NXOpen::Drawings::ViewPlacementBuilder::SetAlignmentOption ( NXOpen::Drawings::ViewPlacementBuilder::Option  alignmentOption)

Sets the alignment option used to indicate what points in the views to align.

The alignment option is not used when the alignment method is set to NXOpen::Drawings::ViewPlacementBuilder::MethodInfer .
Created in NX6.0.0.

License requirements : drafting ("DRAFTING")

Parameters
alignmentOptionalignmentoption
void NXOpen::Drawings::ViewPlacementBuilder::SetAlignmentVector ( NXOpen::Direction alignmentVector)

Sets the vector to align along.

The vector is only required for the NXOpen::Drawings::ViewPlacementBuilder::MethodPerpendicularToLine alignment method. The vector must be set regardless of the alignment option.
Created in NX6.0.0.

License requirements : drafting ("DRAFTING")

Parameters
alignmentVectoralignmentvector
void NXOpen::Drawings::ViewPlacementBuilder::SetAssociative ( bool  associative)

Sets the flag used to create a persistent alignment
Created in NX8.5.0.



License requirements : drafting ("DRAFTING")

Parameters
associativeassociative
void NXOpen::Drawings::ViewPlacementBuilder::SetLockOffset ( bool  lockOffset)

Sets the lock offset flag.

Use the offset property if this flag is set to true.
Created in NX6.0.0.

License requirements : drafting ("DRAFTING")

Parameters
lockOffsetlockoffset
void NXOpen::Drawings::ViewPlacementBuilder::SetOffset ( double  offset)

Sets the offset.

If the lock offset flag is set to true then the offset will be applied. The offset has no meaning when used with the NXOpen::Drawings::ViewPlacementBuilder::MethodOverlay . If the NXOpen::Drawings::ViewPlacementBuilder::MethodInfer method is set, then the offset is defined as the distance from the view to its parent view. For all other methods, the offset is defined as the distance along the line being aligned to.
Created in NX6.0.0.

License requirements : drafting ("DRAFTING")

Parameters
offsetoffset
virtual bool NXOpen::Drawings::ViewPlacementBuilder::Validate ( )
virtual

Validate whether the inputs to the component are sufficient for commit to be called.

If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven't set it. This method throws a not-yet-implemented NXException for some components.

Returns
Was self validation successful
Created in NX3.0.1.

License requirements : None

Implements NXOpen::GeometricUtilities::IComponentBuilder.


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