Model Manager to Windchill Text Reference Mapping for Creo Elements/Direct Modeling Annotation
For Creo Elements/Direct drawings migrated from Creo Elements/Direct Model Manager to Windchill, you can dynamically map Windchill attributes to Model Manager text references, where applicable.
Title blocks in drawings can have text references to display data base attributes. The text reference ID prefixes are hardcoded, and are specific to the data management integration. Model Manager uses different text reference IDs than Windchill Workgroup Manager for Creo Elements/Direct.
After migrating drawings with Model Manager text references to Windchill, you must manually change Model Manager text references to Windchill text references in a potentially large number of drawings. To reduce this effort, a customization layer is introduced that allows you to map existing text references on drawings in Model Manager to those available in Windchill.
In Creo Elements/Direct Modeling, to customize the text references for drawings, you must edit the following file:
<Modeling Installation Directory>\personality\sd_customize\UWGM\uwgm_customize_2d
You can create multiple groups in Model Manager, and each group can have multiple text references. In Windchill, all text references exist under one group called WTtr.
Mapping Text Reference Attributes in Creo Elements/Direct Modeling Annotation
The following example demonstrates how you can map Model Manager text references to the Windchill text references:
;tp, tb, and td: Model Manager groups
;WTtr: Windchill group
(docu::docu-create-map-group "tp" )
(docu::docu-map-attribute "tb:P_OWNER" "PTC_WM_MODIFIED_BY" )
(docu::docu-map-attribute "tb:P_DESCRIPTION" "WTtr:PTC_WM_NAME" )
(docu::docu-keep-attribute "td:PTC_WM_LIFECYCLE" )
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
In the preceding example,
• (docu::docu-create-map-group "tp" ) — Indicates that all text references that belong to the Model Manager group “tp” are mapped to the Windchill text references with the same attribute name in the Windchill group WTtr.
• (docu::docu-map-attribute "tb:P_OWNER" "PTC_WM_MODIFIED_BY" ) — Indicates that the Model Manager text reference attribute "P_OWNER" in the group “tb” is mapped to Windchill text reference attribute "PTC_WM_MODIFIED_BY" in the Windchill group WTtr.
|
You can mention or omit the WTtr group as WTtr is the sole text reference group in Windchill. In the above example, the following line explicitly mentions the WTtr group:
(docu::docu-map-attribute "tb:P_DESCRIPTION" "WTtr:PTC_WM_NAME" )
|
• (docu::docu-keep-attribute "td:PTC_WM_LIFECYCLE" ) — Indicates that the Model Manager text reference attribute "PTC_WM_LIFECYCLE " in the group “td” is mapped to the Windchill attribute of the same name in the Windchill group WTtr.
|
You can assign a Windchill text reference to an existing Model Manager text reference or a general text placeholder.
For information about how to assign text references, see the following help topics:
• For Modeling, see “Working with Text References”.
|