NXOpen .NET Reference
12.0.0
|
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 | |
NXOpen.Unit[] | ToArray () |
Returns an array of NXOpen.Unit objects. 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 NXOpen.UnitCollection.UnitDefaults | GetDefaultDataEntryUnits () |
Get the 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... | |
unsafe NXOpen.UnitCollection.UnitDefaults | GetDefaultObjectInformationUnits () |
Get the choice of default set of units for object information in the given part More... | |
unsafe NXOpen.Unit | FindObject (string name) |
Finds the Unit with the given name. 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 | GetBase (string measureName) |
Find the base unit type for a given measure. More... | |
unsafe double | Convert (NXOpen.Unit initialUnitType, NXOpen.Unit targetUnitType, double initialValue) |
Convert a value from one unit of measure to another 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... | |
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.
unsafe double NXOpen.UnitCollection.Convert | ( | NXOpen.Unit | initialUnitType, |
NXOpen.Unit | targetUnitType, | ||
double | initialValue | ||
) |
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 |
|
protected |
Advances the enumerator to the next element of the collection.
unsafe NXOpen.Unit NXOpen.UnitCollection.FindObject | ( | string | name | ) |
Finds the Unit with the given name.
Created in NX4.0.0
License requirements: None.
name | Name to be found |
unsafe NXOpen.Unit NXOpen.UnitCollection.GetBase | ( | string | measureName | ) |
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 |
unsafe NXOpen.UnitCollection.UnitDefaults NXOpen.UnitCollection.GetDefaultDataEntryUnits | ( | ) |
Get the choice of default set of units for data entry in the given part
Created in NX12.0.0
License requirements: None.
unsafe NXOpen.UnitCollection.UnitDefaults NXOpen.UnitCollection.GetDefaultObjectInformationUnits | ( | ) |
Get the choice of default set of units for object information in the given part
Created in NX12.0.0
License requirements: None.
unsafe string [] NXOpen.UnitCollection.GetMeasures | ( | ) |
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.
unsafe NXOpen.Unit [] NXOpen.UnitCollection.GetMeasureTypes | ( | string | measureName | ) |
Finds the unit types that are available for a given measure
Created in NX4.0.0
License requirements: None.
measureName | the type of measure |
unsafe void NXOpen.UnitCollection.SetDefaultDataEntryUnits | ( | NXOpen.UnitCollection.UnitDefaults | defaults | ) |
Set a choice of default set of units for data entry in the given part.
Created in NX12.0.0
License requirements: None.
defaults |
unsafe void NXOpen.UnitCollection.SetDefaultObjectInformationUnits | ( | NXOpen.UnitCollection.UnitDefaults | defaults | ) |
Set a choice of default set of units for object information in the given part
Created in NX12.0.0
License requirements: None.
defaults |
NXOpen.Unit [] NXOpen.UnitCollection.ToArray | ( | ) |
Returns an array of NXOpen.Unit objects.
|
get |
Returns the tag of this object.