Skip to main content
12-Amethyst
May 14, 2025
Question

Mapping NX model attribute/parameter to NX drawing

  • May 14, 2025
  • 1 reply
  • 1224 views

Version: Windchill 12.1

 

Use Case: Trying to map NX model attribute/property to the NX drawing file


Description:

Using the master model system in NX, where the model data is in one file, and the drawing data is in another file.  The attribute/property DESCRIPTION is entered in the NX model file, and mapped to Windchill, so it can be displayed in a column in WGM.  In the drawing templates, we use DB_DWG_TEMPLATE_DESCRIPTION to map this attribute from the NX model file to the NX drawing file, for use in the drawing format title block, but this does not work to populate the DESCRIPTION attribute/property in the drawing file. For that we have to manually copy it, type it, or link it via inter part object attribute.  We would like to automate this, to prevent errors, or simply forgetting to do it.

 

When forgotten, it looks like this in WGM:

Dave_K_0-1747232446504.png

 

We do have PTC_WM_IS_DRAWING set to "true", so Windchill should know it is a drawing, vs. an assembly.

 

How would we go about mapping this?  Do I need to use a different attribute/property in the NX drawing file, so somehow pull in the DESCRIPTION attribute from the model in Windchill?

 

1 reply

17-Peridot
May 15, 2025

On the Windchill end do you have an attribute at the EPMDocument type set for the Description? 

When you set up your drawing template, did you set up the attributes to pull from it's associated master model? 

Dave_K12-AmethystAuthor
12-Amethyst
May 15, 2025

First question, I think so.  I'm not the Windchill admin, but I know Windchill pulls the DESCRIPTION from the model file, to display in the WGM as DESCRIPTION_PME (we use multiple CAD systems, Creo was already using DESCRIPTION).

 

Second question, yes, I'm pulling various attributes from the NX model to the NX drawing for use in the title block with the DB_DWG_TEMPLATE_ attribute mapping method.

17-Peridot
May 15, 2025

Have you looked through this documentation on Configuring Windchill Attributes with NX

There's a difference between the system attributes (Windchill defines, those. Things like Name, Number, PTC_WM_IS_DRAWING that you're already using) and custom attributes. 

 

For description (defined at the parent EPMDocument type level on your admin side of things), you can define which attribute name on the NX side maps to that Windchill attribute. Creo and NX can have different values there (see this page from the above link).

Dobi_0-1747340049591.png

 

Dobi_1-1747340123970.png

 

To have the same attribute then be used on the drawing, you use the attribute name as defined in the model on your drawing template where you want it to show up. I normally have all of that be driven from the model side so the drawing ends up just being a collection of imported model attributes.