NXOpen .NET Reference Guide
1899
|
Provides methods for manipulating the units in a part More...
Public Types | |
enum | UnitDefaults { LbmInLbfDegF, LbmFtLbfDegF, GMmNDegC, GCmNDegC, KgMNRadK, KgMmNDegC } |
Specifies a set of units to be used as defaults for data entry or object information For each measure, a unit type will be selected that matches the specified choice. More... | |
Public Member Functions | |
unsafe double | Convert (NXOpen.Unit initialUnitType, NXOpen.Unit targetUnitType, double initialValue) |
Convert a value from one unit of measure to another More... | |
unsafe NXOpen.Unit | FindObject (string name) |
Finds the Unit with the given name. More... | |
unsafe NXOpen.Unit | GetBase (string measureName) |
Find the base unit type for a given measure. More... | |
unsafe NXOpen.Unit | GetDataEntryUnit (string measureName) |
Find the data entry unit type for a given measure. More... | |
unsafe NXOpen.UnitCollection.UnitDefaults | GetDefaultDataEntryUnits () |
Get the choice of default set of units for data entry in the given part More... | |
unsafe NXOpen.UnitCollection.UnitDefaults | GetDefaultObjectInformationUnits () |
Get the choice of default set of units for object information in the given part More... | |
unsafe string[] | GetMeasures () |
Finds the list of different types of measures available in the system. More... | |
unsafe NXOpen.Unit[] | GetMeasureTypes (string measureName) |
Finds the unit types that are available for a given measure More... | |
unsafe NXOpen.Unit | GetObjectInformationUnit (string measureName) |
Find the object information unit type for a given measure. More... | |
unsafe void | SetDefaultDataEntryUnits (NXOpen.UnitCollection.UnitDefaults defaults) |
Set a choice of default set of units for data entry in the given part. More... | |
unsafe void | SetDefaultObjectInformationUnits (NXOpen.UnitCollection.UnitDefaults defaults) |
Set a choice of default set of units for object information in the given part More... | |
NXOpen.Unit[] | ToArray () |
Returns an array of NXOpen.Unit objects. More... | |
Public Member Functions inherited from NXOpen.TaggedObjectCollection | |
IEnumerator | GetEnumerator () |
Returns an enumerator that iterates through a collection. More... | |
Public Member Functions inherited from NXOpen.Utilities.NXRemotableObject | |
IMessageCtrl | AsyncProcessMessage (IMessage msg, IMessageSink replySink) |
Asynchronously processes the given message. More... | |
IMessage | SyncProcessMessage (IMessage msg) |
Synchronously processes the given message. More... | |
Protected Member Functions | |
override int | EnumerateMoveNext (ref Tag currentTag, byte[] state) |
Advances the enumerator to the next element of the collection. More... | |
Protected Member Functions inherited from NXOpen.TaggedObjectCollection | |
new void | initialize () |
<exclude> More... | |
Protected Member Functions inherited from NXOpen.Utilities.NXRemotableObject | |
void | initialize () |
<exclude> More... | |
Properties | |
Tag | Tag [get] |
Returns the tag of this object. More... | |
Provides methods for manipulating the units in a part
To obtain an instance of this class, refer to NXOpen.BasePart
Created in NX4.0.0
Specifies a set of units to be used as defaults for data entry or object information For each measure, a unit type will be selected that matches the specified choice.
The choice affects these dimensions: Lenth Mass Force Angle Temperature Delta Temperature
These dimensions are not affected: Electric Charge (A-sec) Luminous Intensity (cd) Amount of Substance (mol)
NOTE: Only the SI unit set is an internally consistent set of units. For example, the unit for Force (N) is used in all the metric sets, but since it's defined as kg*m/s^2, it's compatible only with kg and m, which are used in the SI set. Similarly, the unit deg is used for all the sets except the SI set.
|
inline |
Convert a value from one unit of measure to another
Created in NX4.0.0
License requirements: None.
initialUnitType | initial measurement unit |
targetUnitType | target measurement unit |
initialValue |
|
inlineprotectedvirtual |
Advances the enumerator to the next element of the collection.
Implements NXOpen.TaggedObjectCollection.
|
inline |
Finds the Unit with the given name.
Created in NX4.0.0
License requirements: None.
name | Name to be found |
|
inline |
Find the base unit type for a given measure.
The returned unit type depends on whether the part is an inch or millimeter part.
Created in NX4.0.0
License requirements: None.
measureName | the type of measure |
|
inline |
Find the data entry unit type for a given measure.
Created in NX1899.0.0
License requirements: None.
measureName | the type of measure |
|
inline |
Get the choice of default set of units for data entry in the given part
Created in NX12.0.0
License requirements: None.
|
inline |
Get the choice of default set of units for object information in the given part
Created in NX12.0.0
License requirements: None.
|
inline |
Finds the list of different types of measures available in the system.
Types of measures include length, area and volume
Created in NX4.0.0
License requirements: None.
|
inline |
Finds the unit types that are available for a given measure
Created in NX4.0.0
License requirements: None.
measureName | the type of measure |
|
inline |
Find the object information unit type for a given measure.
Created in NX1899.0.0
License requirements: None.
measureName | the type of measure |
|
inline |
Set a choice of default set of units for data entry in the given part.
Created in NX12.0.0
License requirements: None.
defaults |
|
inline |
Set a choice of default set of units for object information in the given part
Created in NX12.0.0
License requirements: None.
defaults |
|
inline |
Returns an array of NXOpen.Unit objects.
|
get |
Returns the tag of this object.