NX Open C++ Reference Guide
Public Member Functions | List of all members
NXOpen::Annotations::BaseCustomSymbol Class Reference

Represents a base custom symbol
This is an abstract class and cannot be directly instantiated

Created in NX4.0.0. More...

Inheritance diagram for NXOpen::Annotations::BaseCustomSymbol:
NXOpen::Annotations::DraftingAid NXOpen::Annotations::IPmi NXOpen::Annotations::Annotation NXOpen::INXObject NXOpen::DisplayableObject NXOpen::NXObject NXOpen::IFitTo NXOpen::TaggedObject NXOpen::INXObject NXOpen::INXObject NXOpen::Annotations::CustomSymbol NXOpen::Annotations::GeneralCustomSymbol NXOpen::Annotations::PmiCustomSymbol

Public Member Functions

virtual void AddBusinessModifiers (const std::vector< NXOpen::Annotations::BusinessModifier * > &businessModifiers)
 Adds the business modifiers. More...
 
void AddLeader (NXOpen::Annotations::LeaderBundle *leader)
 Adds leaders to the custom symbol. More...
 
void FlipSymbol (NXOpen::Annotations::FlipOption flipOption)
 Flips the custom symbol horizontally/vertically. More...
 
NXOpen::PointGetAnchor ()
 Returns the master custom symbol anchor point. More...
 
virtual
NXOpen::Annotations::AssociatedObject
GetAssociatedObject ()
 Returns the associated object. More...
 
virtual std::vector
< NXOpen::Annotations::BusinessModifier * > 
GetBusinessModifiers ()
 Returns the business modifiers. More...
 
virtual
NXOpen::Annotations::AssociatedObject
GetSharedAssociatedObject ()
 Returns the shared associated objects. More...
 
NXOpen::Annotations::CustomSymbolDataGetSymbolData ()
 Returns the custom symbol data. More...
 
virtual int Index ()
 Returns the index. More...
 
virtual bool IsMirrored ()
 Returns a flag indicating whether the annotation is mirrored
Created in NX8.5.0. More...
 
void RemoveLeader (int nthLeader)
 Removes leader from the custom symbol. More...
 
void ReplaceSymbol (const NXString &name, const NXString &path, bool isPartSymbol)
 Replace custom symbol with the given master symbol name and path. More...
 
void ReplaceSymbol (const char *name, const char *path, bool isPartSymbol)
 Replace custom symbol with the given master symbol name and path. More...
 
void SetAnchor (NXOpen::Point *anchorPoint)
 Sets the master custom symbol anchor point. More...
 
virtual void SetAssociatedObject (NXOpen::Annotations::AssociatedObject *assocObj)
 Sets the associated object. More...
 
virtual void SetBusinessModifiers (const std::vector< NXOpen::Annotations::BusinessModifier * > &businessModifiers)
 Sets the business modifiers. More...
 
virtual void SetIndex (int index)
 Sets the index. More...
 
void SetSymbolData (NXOpen::Annotations::CustomSymbolData *data)
 Sets the custom symbol data. More...
 
NXString SymbolName ()
 Returns the symbol name. More...
 
void SynchronizeSymbol ()
 Synchronize associative custom symbol. More...
 
void UpdateFromRule ()
 Updates the specified symbol from the KF rule. More...
 
void UpdateSymbolGeometry (const NXOpen::Point3d &origin, double scale, double angle)
 Sets the origin, scale and angle for a custom symbol instance and updates the leaders (if any) as needed. More...
 

Additional Inherited Members

- Public Types inherited from NXOpen::DisplayableObject
enum  ObjectFont {
  ObjectFontSolid = 1, ObjectFontDashed, ObjectFontPhantom, ObjectFontCenterline,
  ObjectFontDotted, ObjectFontLongDashed, ObjectFontDottedDashed
}
 specifies the object font for objects such as lines
Created in NX3.0.0. More...
 
enum  ObjectWidth {
  ObjectWidthNormal, ObjectWidthThick, ObjectWidthThin, ObjectWidthOne = 5,
  ObjectWidthTwo, ObjectWidthThree, ObjectWidthFour, ObjectWidthFive,
  ObjectWidthSix, ObjectWidthSeven, ObjectWidthEight, ObjectWidthNine
}
 specifies object width for objects such as lines and text
Created in NX3.0.0. More...
 

Detailed Description

Represents a base custom symbol
This is an abstract class and cannot be directly instantiated

Created in NX4.0.0.


Member Function Documentation

virtual void NXOpen::Annotations::BaseCustomSymbol::AddBusinessModifiers ( const std::vector< NXOpen::Annotations::BusinessModifier * > &  businessModifiers)
virtual

Adds the business modifiers.


Created in NX12.0.0.

License requirements : geometric_tol ("GDT")

Parameters
businessModifiersList of new business modifiers

Implements NXOpen::Annotations::IPmi.

void NXOpen::Annotations::BaseCustomSymbol::AddLeader ( NXOpen::Annotations::LeaderBundle leader)

Adds leaders to the custom symbol.

NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object. If it is, the changes will be overridden when the part is updated.
Created in NX5.0.0.

License requirements : geometric_tol ("GDT") OR drafting ("DRAFTING")

Parameters
leaderSpecifies the leaders to add
void NXOpen::Annotations::BaseCustomSymbol::FlipSymbol ( NXOpen::Annotations::FlipOption  flipOption)

Flips the custom symbol horizontally/vertically.

This is only available when editing. This option is unavailable for symbols with leaders. NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object. If it is, the changes will be overridden when the part is updated.
Created in NX4.0.0.

License requirements : geometric_tol ("GDT") OR drafting ("DRAFTING")

Parameters
flipOptionNew flip option
NXOpen::Point* NXOpen::Annotations::BaseCustomSymbol::GetAnchor ( )

Returns the master custom symbol anchor point.

Returns
Custom Symbol Anchor Point
Created in NX4.0.0.

License requirements : None
virtual NXOpen::Annotations::AssociatedObject* NXOpen::Annotations::BaseCustomSymbol::GetAssociatedObject ( )
virtual

Returns the associated object.

Returns
Associated object
Created in NX4.0.0.

License requirements : None

Implements NXOpen::Annotations::IPmi.

virtual std::vector<NXOpen::Annotations::BusinessModifier *> NXOpen::Annotations::BaseCustomSymbol::GetBusinessModifiers ( )
virtual

Returns the business modifiers.

Returns
List of business modifiers
Created in NX4.0.0.

License requirements : None

Implements NXOpen::Annotations::IPmi.

virtual NXOpen::Annotations::AssociatedObject* NXOpen::Annotations::BaseCustomSymbol::GetSharedAssociatedObject ( )
virtual

Returns the shared associated objects.

Returns
Shared associated objects
Created in NX8.5.0.

License requirements : None

Implements NXOpen::Annotations::IPmi.

NXOpen::Annotations::CustomSymbolData* NXOpen::Annotations::BaseCustomSymbol::GetSymbolData ( )

Returns the custom symbol data.

Returns
Custom symbol data
Deprecated:
Deprecated in NX9.0.0. Use NXOpen::Annotations::DraftingCustomSymbolBuilder for Drafting Custom Symbol and NXOpen::Annotations::PmiCustomSymbolBuilder for PMI Custom Symbol objects.


Created in NX4.0.0.

License requirements : None

virtual int NXOpen::Annotations::BaseCustomSymbol::Index ( )
virtual

Returns the index.

It is a unique integer assigned to a PMI object.

NOTE: The set method should not be used to edit a read-only object such as a Mirrored PMI object. If it is, the changes will be overridden when the part is updated.
Created in NX4.0.0.

License requirements : None

Implements NXOpen::Annotations::IPmi.

virtual bool NXOpen::Annotations::BaseCustomSymbol::IsMirrored ( )
virtual

Returns a flag indicating whether the annotation is mirrored
Created in NX8.5.0.



License requirements : None

Implements NXOpen::Annotations::IPmi.

void NXOpen::Annotations::BaseCustomSymbol::RemoveLeader ( int  nthLeader)

Removes leader from the custom symbol.

NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object. If it is, the changes will be overridden when the part is updated.
Created in NX5.0.0.

License requirements : geometric_tol ("GDT") OR drafting ("DRAFTING")

Parameters
nthLeaderSpecifies which leader to remove
void NXOpen::Annotations::BaseCustomSymbol::ReplaceSymbol ( const NXString name,
const NXString path,
bool  isPartSymbol 
)

Replace custom symbol with the given master symbol name and path.

NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object. If it is, the changes will be overridden when the part is updated.
Created in NX8.0.0.

License requirements : drafting ("DRAFTING")

Parameters
nameMaster symbol name
pathMaster symbol path
isPartSymboltrue if part symbol else false
void NXOpen::Annotations::BaseCustomSymbol::ReplaceSymbol ( const char *  name,
const char *  path,
bool  isPartSymbol 
)

Replace custom symbol with the given master symbol name and path.

NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object. If it is, the changes will be overridden when the part is updated.
Created in NX8.0.0.

License requirements : drafting ("DRAFTING")

Parameters
nameMaster symbol name
pathMaster symbol path
isPartSymboltrue if part symbol else false
void NXOpen::Annotations::BaseCustomSymbol::SetAnchor ( NXOpen::Point anchorPoint)

Sets the master custom symbol anchor point.

NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object. If it is, the changes will be overridden when the part is updated.
Created in NX4.0.0.

License requirements : None

Parameters
anchorPointCustom Symbol Anchor Point
virtual void NXOpen::Annotations::BaseCustomSymbol::SetAssociatedObject ( NXOpen::Annotations::AssociatedObject assocObj)
virtual

Sets the associated object.

NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object. If it is, the changes will be overridden when the part is updated.
Created in NX4.0.0.

License requirements : geometric_tol ("GDT")

Parameters
assocObjNew associated object

Implements NXOpen::Annotations::IPmi.

virtual void NXOpen::Annotations::BaseCustomSymbol::SetBusinessModifiers ( const std::vector< NXOpen::Annotations::BusinessModifier * > &  businessModifiers)
virtual

Sets the business modifiers.

NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object. If it is, the changes will be overridden when the part is updated.
Created in NX4.0.0.

License requirements : geometric_tol ("GDT")

Parameters
businessModifiersList of new business modifiers

Implements NXOpen::Annotations::IPmi.

virtual void NXOpen::Annotations::BaseCustomSymbol::SetIndex ( int  index)
virtual

Sets the index.

It is a unique integer assigned to a PMI object.

NOTE: The set method should not be used to edit a read-only object such as a Mirrored PMI object. If it is, the changes will be overridden when the part is updated.
Created in NX4.0.0.

License requirements : geometric_tol ("GDT")

Parameters
indexNew integer for PMI object

Implements NXOpen::Annotations::IPmi.

void NXOpen::Annotations::BaseCustomSymbol::SetSymbolData ( NXOpen::Annotations::CustomSymbolData data)

Sets the custom symbol data.

NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object. If it is, the changes will be overridden when the part is updated.

Deprecated:
Deprecated in NX9.0.0. Use NXOpen::Annotations::DraftingCustomSymbolBuilder for Drafting Custom Symbol and NXOpen::Annotations::PmiCustomSymbolBuilder for PMI Custom Symbol objects.


Created in NX4.0.0.

License requirements : geometric_tol ("GDT") OR drafting ("DRAFTING")

Parameters
dataNew custom symbol data
NXString NXOpen::Annotations::BaseCustomSymbol::SymbolName ( )

Returns the symbol name.


Created in NX6.0.0.

License requirements : None

void NXOpen::Annotations::BaseCustomSymbol::SynchronizeSymbol ( )

Synchronize associative custom symbol.


Created in NX8.0.0.

License requirements : drafting ("DRAFTING")

void NXOpen::Annotations::BaseCustomSymbol::UpdateFromRule ( )

Updates the specified symbol from the KF rule.


The changes are not applied till an update is performed by calling Update::DoUpdate .

Created in NX8.0.0.

License requirements : geometric_tol ("GDT") OR drafting ("DRAFTING")

void NXOpen::Annotations::BaseCustomSymbol::UpdateSymbolGeometry ( const NXOpen::Point3d origin,
double  scale,
double  angle 
)

Sets the origin, scale and angle for a custom symbol instance and updates the leaders (if any) as needed.


Created in NX5.0.0.

License requirements : geometric_tol ("GDT") OR drafting ("DRAFTING")

Parameters
originNew origin
scaleNew scale
angleNew angle

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