cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Drawing Template Creation and using Model Parameters

Brock
3-Visitor

Drawing Template Creation and using Model Parameters

I am using Creo Parametric Release 5.0 and Datecode5.0.1.0

The drawing template I'm creating will not allow me to assign a model Parameter and automatically changes it to a Drawing parameter after entering the model parameter. is there something special I need to do to get this to work correctly for the Drawing template I'm creating?
&PTC_WM_VERSION
&PTC_WMLIFECYCLE_STATE
When I enter these parameters into a table in the Drawing Template it automatically changes it to have ":D" at the end which I do not want. I am trying to set up the drawing template so that for any drawing created you know what version and lifecycle state for both Model and Drawing is for a specific Drawing.

1 ACCEPTED SOLUTION

Accepted Solutions
BenLoosli
23-Emerald II
(To:Brock)

Use a :MDL after the parameter name to pull it from the 1st model in the drawing.

View solution in original post

8 REPLIES 8
Brock
3-Visitor
(To:Brock)

Capture.PNG

BenLoosli
23-Emerald II
(To:Brock)

Use a :MDL after the parameter name to pull it from the 1st model in the drawing.

KenFarley
21-Topaz I
(To:Brock)

I've not used drawing templates, but if you're using a format that is used by the template, could you add the desired parameter(s) to the format, then pull that format into the template?

Apologies if this has already been tried...

TomU
23-Emerald IV
(To:KenFarley)

Formats do not add parameters to the drawing.

KenFarley
21-Topaz I
(To:TomU)

But the format contains the &parameter references, so I wondered if putting those references into the format would prevent the offending ":D" from being added, like all the other referenced parameters in the format like (for me) &DrawnBy, &Description1, and the like.

Does it work that way?

TomU
23-Emerald IV
(To:KenFarley)

Nope.  Drawings (and therefore drawing templates) cannot read parameter values from a format.

TomU
23-Emerald IV
(To:KenFarley)


@KenFarley wrote:

But the format contains the &parameter references...


To be more precise...

  • Notes in a format can only refer the the format's own parameters.
  • Tables in a format can refer to a drawing or a model's parameters, but will only resolve after being copied to the drawing.  This copy happens once, when the format is first applied to the drawing.  Future changes to the table(s) on the format will not be reflected in the drawing unless the format is reapplied and the table(s) re-copied (recreated.)
TomU
23-Emerald IV
(To:Brock)

Templates don't play nice with parameters that exist in both the drawing and the model (like Windchill parameters.)  Three options:

  1. Use the :MDL syntax as @BenLoosli mentioned.  This works fairly well most of the time, but not always.
  2. Reapply the same format to the drawing again after a model has been added to it (assuming the Windchill parameters are present in the model.)
  3. Use a single cell repeat region with a filter to refer to only the desired model parameter.  This is very robust, will always point to the model, and won't break if the model is removed from the drawing and added again later (or another model is added instead).  This is definitely my preferred approach.
    Note: Later versions of Creo include some new &mdl... repeat region parameters that eliminate the need for a filter.
    TomU_0-1658769626017.png
Top Tags