Integración con otras aplicaciones > Documentación de Windchill Workgroup Manager > Creo Elements/Direct Modeling > Advanced Techniques (Creo Elements/Direct Modeling) > Support for the Real Number with Unit Attribute Type in Windchill Workgroup Manager for Creo Elements/Direct Modeling
Support for the Real Number with Unit Attribute Type in Windchill Workgroup Manager for Creo Elements/Direct Modeling
Windchill Workgroup Manager for Creo Elements/Direct Modeling supports all attribute types including Real Number with Units. For this attribute type, from a total of 58 quantities of measure, 28 quantities of measure are supported by Windchill Workgroup Manager for Creo Elements/Direct Modeling as listed in the following table.
Out of the 28 units listed in the ‘Measure of Units Supported’ table,
The ‘Converted’ column lists the units that are converted or not converted according to the default Modeling units.
* 
The composite units based on length, angular, and mass are converted according to the default Modeling units.
For the units not converted, the unit shown in the Modeling Structure Browser is the same as the internal unit in Windchill.
Measure of Units Supported
Measuring Type
Measure of units
Converted
Pressure
Pa
No
Dynamic Viscosity
Pa*s
No
Mass Per Length
kg/m
Yes
Current
A
No
Luminosity
cd
No
Temperature
degK
No
Mass
kg
Yes
Frequency
Hz is 1/s
No
Time
s
No
* 
The unit of time is s (seconds) in all measurement systems.
Angular Acceleration
r/s**2
Yes
Angular Velocity
r/s
Yes
Angle
r
Yes
Conductivity
W/(m*K)
No
Force
N
No
Acceleration
m/s**2
Yes
Velocity
m/s
Yes
Length
m
Yes
Resistance
ohm
No
Electrical Potential
V
No
Power
W
No
Dose
Gy
No
Kinematic Viscosity
m**2/s
Yes
Area
m**2
Yes
Energy
J
No
Torque
N*m
No
Moment of Inertia or Rotor Inertia
kg*m**2
Yes
Flow Rate
m**3/s
Yes
Volume
m**3
Yes
From the 28 quantities listed in the preceding table, only the following three quantities can be directly configured using the unit system settings in Creo Elements/Direct Modeling:
Length
Angular
Mass
For Length, Angular, and Mass, a quantity that is displayed in Windchill display units in Windchill Workgroup Manager, gets converted to default Modeling unit. For example, length displayed as 10 m in Windchill, is displayed as 1000 cm in Modeling (if default unit setting is Centimeter in Modeling). For information on how to change settings, in Creo Elements/Direct Modeling help, see Change system settings.
For the Real Number with Units attribute type, you can perform the following actions:
Display the values of the Real Number with Units attributes in Windchill as text references on Annotation and Drafting drawings.
Assign the real number with units and the supported quantities of measure to all object types supported by the Workgroup Manager.
If you use PTC Creo and Creo Elements/Direct with Windchill, you can use common parameters and their units, such as weight, in both CAD applications. You can also map these common parameters and their units to the same custom attribute with units in Windchill.
For information on how to create an attribute, manage quantities of measure, view supported data types, or customize the Structure Browser, see the following topics:
For information on how to view and edit Windchill attributes, see Viewing and Editing Windchill Attributes in Creo Elements/Direct Modeling.
Assigning the value to Real Number with Units Attributes from the Modeling Structure Browser
In the Modeling Structure Browser, if you want to initialize or assign values to Real Number with Units attributes, you must edit the uwgm_browser_views.lsp file as shown in the following example.
(defun set-windchill-RealNumberwithUnit-attribute (node value)
(let ((sel_item (oli:sd-pathname-to-obj (oli:browsernode-objpath node))))
(oli:sd-uwgm-reload-in-full-mode sel_item)(oli:sd-uwgm-set-model-attribute sel_item "RealNumberwithUnitAttribute" ( uwgm-string-to-RNU value "Acceleration") )
)
)
* 
Acceleration is the Measurement Type.
After updating the customize file, in the Modeling Structure Browser, you can perform the following actions:
Specify the value and unit for the Real Number with Units attribute. The unit is converted to the default Modeling unit depending on the measurement type. For example, if you specify 1kg, and if the default Modeling unit is g, the value 1000g is displayed.
Specify only the value for the Real Number with Units attribute. The unit displayed is the default Modeling unit depending on the measurement type.
¿Fue esto útil?