Model Manager to Windchill Text Reference Mapping for Creo Elements/Direct Drafting
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 Drafting, to customize the text references for drawings, you must edit the following file:
<Drafting Installation Directory>\windchill\wc_mm_attribute_maping.m
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 Drafting
The following example shows how you can map Model Manager text references to the Windchill text references:
;td, tb, and ts: Model Manager groups
;WTtr: Windchill group

Create_map_group "td"
Map_attribute "tb:P_OWNER" "PTC_WM_MODIFIED_BY"
Map_attribute "tb:P_DESCRIPTION" "WTtr:PTC_WM_NAME"
Keep_attribute "ts:PTC_WM_MODIFIED_ON"
In the preceding example,
Create_map_group "td" — Indicates that all text references that belong to the the Model Manager group “td” are mapped to the Windchill text references with the same attribute name in the Windchill group WTtr.
Map_attribute "tb:P_OWNER" "PTC_WM_MODIFIED_BY" — Indicates that Model Manager text reference attribute "P_OWNER" in the group “tb” is mapped to Windchill 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: Map_attribute "tb:P_DESCRIPTION" "WTtr:PTC_WM_NAME".
Keep_attribute "ts:PTC_WM_MODIFIED_ON" — Indicates that the Model Manager text reference attribute "PTC_WM_ MODIFIED_ON " in the group “ts” is mapped to an identical Windchill text reference attribute 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”.
For Drafting, see Working with Text References.
這是否有幫助?