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

Represents a NXOpen::WidthDefinition , which is a representation of an NX width palette. More...

Inheritance diagram for NXOpen::WidthDefinition:
NXOpen::TaggedObject

Public Member Functions

std::vector< NXOpen::ColorWidth * > GetColorWidths ()
 Gets the color widths. More...
 
std::vector
< NXOpen::CustomWidth * > 
GetCustomWidths ()
 Gets the custom widths array. More...
 
void SetSingle (int single)
 Sets the single width type selection
Created in NX5.0.0. More...
 
void SetSingleSource (int singleSource)
 Sets the single source. More...
 
void SetSingleWidth (double singleWidth)
 Sets the single width. More...
 
void SetUnits (int units)
 Sets the units. More...
 
void SetUse (int use)
 Sets the 'use' member. More...
 
int Single ()
 Returns the single width type selection
Created in NX5.0.0. More...
 
int SingleSource ()
 Returns the single source. More...
 
double SingleWidth ()
 Returns the single width. More...
 
int Units ()
 Returns the units. More...
 
int Use ()
 Returns the 'use' member. More...
 
- Public Member Functions inherited from NXOpen::TaggedObject
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

Represents a NXOpen::WidthDefinition , which is a representation of an NX width palette.

It gives the units in which all the widths are stored, single width information, the 3 custom width definitions, and an entry for each color.


Created in NX5.0.0.

Member Function Documentation

std::vector<NXOpen::ColorWidth *> NXOpen::WidthDefinition::GetColorWidths ( )

Gets the color widths.

The 'widths' array is indexed by the color index straight out of the database, or 1-216. Therefore the array is one longer than the actual number of colors, or 217.

Returns
Array of ColorWidth objects.
Created in NX5.0.0.

License requirements : None
std::vector<NXOpen::CustomWidth *> NXOpen::WidthDefinition::GetCustomWidths ( )

Gets the custom widths array.

There will be 3 CustomWidth objects.

Returns
Array of CustomWidth objects.
Created in NX5.0.0.

License requirements : None
void NXOpen::WidthDefinition::SetSingle ( int  single)

Sets the single width type selection
Created in NX5.0.0.



License requirements : None

Parameters
singlesingle
void NXOpen::WidthDefinition::SetSingleSource ( int  singleSource)

Sets the single source.

The 'single_source' member contains a value when the 'single' member is CGME_width_std or CGME_width_custom. The value is the index in the 'custom' width array or the standard width index value. Both are assumed to be in internal order, normal, thick, and thin for 0, 1, and 2, respectively.


Created in NX5.0.0.

License requirements : None

Parameters
singleSourcesinglesource
void NXOpen::WidthDefinition::SetSingleWidth ( double  singleWidth)

Sets the single width.

The 'single_width' member contains the last-typed value for the user-defined width to use when CGME_width_user is selected for member 'single'.


Created in NX5.0.0.

License requirements : None

Parameters
singleWidthsinglewidth
void NXOpen::WidthDefinition::SetUnits ( int  units)

Sets the units.

All the widths are stored in these units.
Created in NX5.0.0.

License requirements : None

Parameters
unitsunits
void NXOpen::WidthDefinition::SetUse ( int  use)

Sets the 'use' member.

The use member specifies the primary selection of which type of width assignment to use.


Created in NX5.0.0.

License requirements : None

Parameters
useuse
int NXOpen::WidthDefinition::Single ( )

Returns the single width type selection
Created in NX5.0.0.



License requirements : None

int NXOpen::WidthDefinition::SingleSource ( )

Returns the single source.

The 'single_source' member contains a value when the 'single' member is CGME_width_std or CGME_width_custom. The value is the index in the 'custom' width array or the standard width index value. Both are assumed to be in internal order, normal, thick, and thin for 0, 1, and 2, respectively.


Created in NX5.0.0.

License requirements : None

double NXOpen::WidthDefinition::SingleWidth ( )

Returns the single width.

The 'single_width' member contains the last-typed value for the user-defined width to use when CGME_width_user is selected for member 'single'.


Created in NX5.0.0.

License requirements : None

int NXOpen::WidthDefinition::Units ( )

Returns the units.

All the widths are stored in these units.
Created in NX5.0.0.

License requirements : None

int NXOpen::WidthDefinition::Use ( )

Returns the 'use' member.

The use member specifies the primary selection of which type of width assignment to use.


Created in NX5.0.0.

License requirements : None


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