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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

How to use Windchill version parameters on a drawing?

mdebower
18-Opal

How to use Windchill version parameters on a drawing?

I have been experimenting with adding the Windchill version parameters for the drawing and model version to the drawing format and ran into a couple of issues.

I was wondering what work arounds anyone has to deal with this situation?

Steps Taken:

  1. Create format
  2. Add two parameters to format:
    1. &PTC_WM_VERSION:D for the drawing version
    2. &PTC_WM_VERSION for the model version
    3. 20150120-084118.png

Issue 1: New drawing with format.

  1. Create a new drawing.
  2. Choose a model.
  3. Choose format from above steps.
  4. ISSUE: the drawing version will not fill out correctly because the drawing has not been saved yet and therefore does not have the necessary parameters.
  5. 20150120-084922.png
  6. Known workarounds: One is to manually add it back into the format. (Unacceptable, formats are supposed to save the engineer time and effort, not waste it.) Two: Save the drawing and Replace the format. Again, adds effort, and a point of failure.

Issue 2: New drawing using a Template

  1. Create template using format from above, and save.
  2. Create new drawing using template.
  3. Drawing version will be correct.
  4. Model version parameter has mysteriously turned into the the drawing format, &PTC_WM_VERSION:D
  5. 20150120-084420.png
    Note that the value displayed is exactly the same for both the drawing and the model. There is no model associated to the template, so where is this coming from? It is because it is using the drawing parameter instead of the model parameter, because the model parameter doesn't exist.
  6. Workarounds are: One, to manually modify the parameter back to what it should be. (Unacceptable, templates are supposed to save even more time than formats.) Or two, to save and then replace the format. (Added effort and a point of failure.)

The only course of action I can think of is to not use the Windchill parameters in the drawing because of these issues. One workaround to that is to strip out the titleblock from the format and have engineers add it after the drawing has been saved at least once. That is not a solution. Another workaround is to create the drawing, save and then replace the format. Works, but adds work to an already busy workload.

I did do some research into this and found this infuriating tech support case: CS145634 that states "Behavior is currently working as per specifications."

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS145634&posno=14&q=windchill%20version%20drawing&nav=&source=Search

I find it hard to believe that one, no one has found this before it even went into production, and two, that the specification is written that this is acceptable behavior.

-marc

CAD / PLM Systems Manager

1 ACCEPTED SOLUTION

Accepted Solutions
TomU
23-Emerald IV
(To:mdebower)

Marc DeBower‌,

Wanted to update you on this issue.  Starting in Creo 2.0 M150 and Creo 3.0 M040 parameter names in drawings can be appended with ":MDL" to force them to only look at the model's values.  With this suffix they will not revert to the drawing's value, even if the parameter is missing from the model. There is some weirdness where it doesn’t update once the parameter exists in the model unless re-typed into the drawing.  Unfortunately there is zero documentation available on this new feature right now.

View solution in original post

14 REPLIES 14
TomU
23-Emerald IV
(To:mdebower)

Marc,

I feel your pain. I went round and round with PTC on this same issue. It was like talking to a brick wall. There is a fundamental problem with having the same parameter name exist in both the drawing and the model. This is exasperated when connecting to Windchill where system parameters are instantly created as soon as the object is loaded into session.

One workaround that will keep model parameters from snapping to drawing parameters is to use a single cell repeat region on the format (or template) for each parameter. Set the cell value to &mdl.param.value and then create a filter specific to the parameter you want to display. For example, "&mdl.param.name == PTC_WM_REVISION".

12.PNG

Unfortunately this workaround doesn't help any with the drawing program. For that I've simply settled on a set of mapkeys.

My case history is attached if you feel like reading it. Be warned, it's long and frustrating!

Related Discussions

Marc,

We do a similar thing, but we don't have the issues you describe. When we create a new drawing, the &ptc_wm_revision is set to ".0" which changes to 1.1 on first upload to Windchill. This is regardless of whether the drawing has been created in a Windchill session or not.

I don't know this for sure, but I suspect the key lies in the way the start files are created. When I open our start .prt and drawing template file the &ptc_wm... parameters are all in there with &ptc_wm_created_on showing a date some years back. So when the start parts were created, whoever created them (that was before I joined the company) saved them in a workspace, or whatever it is you need to do to create those params. This would ensure they would always be present when creating new parts / drawings and avoiding the issue you're seeing.

Like I say, I can't be certain but that might be something to try. The only time I've seen this happen is when we're using really old files that precede the current CAD standards and putting them on new drawing formats. A history of corporate mergers etc means we have something of a mixture of parameters depending on the age of the part, and the older ones don't have the ptc_wm ones by default.

BenLoosli
23-Emerald II
(To:mdebower)

The Windchill parameters in the drawing (part, assembly) file are only created when you do a save to the file into Windchill. Therefore, your parameters will have no calue until you have done the save. We used to have designers who would go directly from creating the model into the drawing without saving first. When we implemented Windchill, we had to put in the documentation that they MUST save the model file before creating the drawing file. Still got calls for a few months from engineers complaining that their parameters weren't showing on their drawings.

Patriot_1776
22-Sapphire II
(To:mdebower)

I posted this exact thing in an earlier thread maybe a year ago.

Create an EMPTY dwg without the format (just choose the size). SAVE the dwg (this pings Windburn and inserts that parameter. THEN add your format. The format then looks for the paramater, and finds it, whereas until you save it, it doesn't exist, and it FUBAR's it. I think the reason a template works, is that it's been saved, basically as a dwg first, so it has the parameter. We don't use templates, we add the format.

It's a pretty easy fix, if a little frustrating to have to do it that way. You quickly get used to it and it has worked fine ever since.

TomU
23-Emerald IV
(To:mdebower)

Marc DeBower‌,

Wanted to update you on this issue.  Starting in Creo 2.0 M150 and Creo 3.0 M040 parameter names in drawings can be appended with ":MDL" to force them to only look at the model's values.  With this suffix they will not revert to the drawing's value, even if the parameter is missing from the model. There is some weirdness where it doesn’t update once the parameter exists in the model unless re-typed into the drawing.  Unfortunately there is zero documentation available on this new feature right now.

Thanks for the update Tom!

Looks like I will have to wait until we get migrated to Creo 3.0 later this year...

          ...maybe they will have some documentation by then.

Chris3
20-Turquoise
(To:mdebower)

Until then you can do the same thing David Cox‌ mentioned above. This is the same thing we do. Check your start part into PDMLink and then pull it back out. That will get you the parameters in all your new parts. They may be wrong but at least they will be there and then they will get updated when you check in.

TomU
23-Emerald IV
(To:Chris3)

Check your start part into PDMLink and then pull it back out. That will get you the parameters in all your new parts.

Again, this doesn't work for drawing templates.  Since the model isn't present, but the model parameter you want to reference is (it will exist in both the drawing and the part), any reference to the model parameter will immediately revert or snap back to the drawing's.  This suffix prevents that from happening.

Have you made sure you're using template mode in the Tools ribbon?  I think that prevents creo from reverting a parameter to parameter:d.

TomU
23-Emerald IV
(To:JimTVancouverCa)

Yep.  The issue isn't the creation of the template, it's the usage.  When Creo creates a new drawing from a template, behind the scenes it does a save-as, then loads the new drawing into session, then adds the appropriate model to it.  At step two, before the new model has been added yet, the note and table parameters will immediately snap to matching drawing parameters instead of waiting for the not-yet-added model's parameters.  This is what's so helpful about the new syntax.  It forces the drawing to not switch to the drawing's parameters, even if they exist with the same name.

I understand now.  I just tested and found the same behaviour, I had to check in and check out and reapply the format if I wanted to show &PTC_WM_VERSION:D.  Have to do the Creo 2 M160 or M170 now date code update and try :MDL.

hnielsen
6-Contributor
(To:mdebower)

All,

Just to clarify what exactly is happening.

When creating a new drawing with Windchill parameters if the parameter does not exist the parameter is change to text.

Example &PTC_WM_VERSION:D becomes PTC_WM_VERSION plain text.

options.

  1. Create templates. Don't confuse templates with formats they are not the same. A template uses an existing drawing and they are stored in windchill. so the parameter is already in the existing drawing used by the template
  2. Add the format after the drawing has been checked in.
  3. Replace the format after it has been checked in.
  4. Manually edit the text adding back the (&) at the front and the(:D)at the end.

Ref SPR 4995703. M050 may fix this issue

mender
6-Contributor
(To:hnielsen)

An enhancement was made in Creo 2 M160 (well, M150, but there was a bug in the implementation fixed in M160) and Creo 3 M040 relative to this:  where you can use ':D' to indicate the drawing, and ':#' to indicate a solid model by runtime id, you can now use ':MDL' to indicate the current solid model of the drawing.  You can also put such a note in a template drawing, and it will wait until there is a solid to resolve against.  Once the solid is identified, it will be a parametric callout using that model, using the ':#' syntax.

hnielsen
6-Contributor
(To:mdebower)

Can anyone confirm?

Have they fix the issue with parameters changing to text?


Example &PTC_WM_VERSION:D becomes PTC_WM_VERSION plain text.

Top Tags