Skip to main content
13-Aquamarine
October 28, 2024
Question

How to add Custom Parameters on Title block of 2D Drawings Format or in Parameter section

  • October 28, 2024
  • 3 replies
  • 984 views

Version: Windchill 12.1

 

Use Case: Add Custom Parameters on 2D Drawings format or template


Description:

Hi Everyone , I am working of  automation of title block and I want to add  custom parameters on 2D Drawings like ECN Number, TASK Assignee , Task Reviewer, Task Assigned Date and Reviewed Date etc. So currently I have one delegate which gives me the required parameters but that is executing When I add any drawing in Workspace .
So is there any other workaround to add custom Parameters on drawing format or in Parameters Section of Creo at the the time of upload or save or Check In from  WS or anything else .

 

Please suggest me 

3 replies

avillanueva
23-Emerald I
23-Emerald I
October 28, 2024

When you say delegate, you are saying you have a customization that pulls these parameters from related objects and links them to the CAD object on add? Stepping back, I would caution this whole approach. You are essentially saving in dynamic information that can change at any time into the drawing or CAD object file. This information can be changed with the drawing checked in and not modified leading to a situation where the data becomes out of sync. You also have a case where the drawing needs to be touched again after these tasks are complete to get the date fields of those events. Are you also carrying these IBAs on the CAD objects?

Have you looked at a check-in listener?

@_164713-AquamarineAuthor
13-Aquamarine
October 29, 2024

Hi Avillanueva,

Thank you for the information.

Yes it is correct that data will be unsynchronized but in our custom logic we have added some validation.

 

Example : If .drw In RELEASE state only that time parameters will get added or that particular line of code will get execute else it won't,

So I think here we can control dynamic data.

 

And I will try to create one of checkin listener so will check it will execute or not.

 

And can you help about this configuration 

https://support.ptc.com/help/windchill/r13.0.1.0/en/index.html#page/Windchill_Help_Center/customization/WCCG_ProEWCIntegCustDwnldServiceParamCust.html

Because I have added this value as it is to preference but on download no any parameters are getting added.

 

 

Regards 

Vipul

 

joe_morton
18-Opal
18-Opal
October 28, 2024

I agree with @avillanueva, I wouldn't recommend this approach. It would be better to not store this info directly on the drawing as it can get out of sync. If you do need some info on the drawing, you could look into watermarking as a way to add dynamic information as part of PDF publishing. 

@_164713-AquamarineAuthor
13-Aquamarine
November 4, 2024

Hi joe_morton,

 

We are trying to achieve this functionality but we don't want dependency of creo parametric for delegate we need a Creo Parametric.

 

But our thinking and requirement is  User/Reviewer can use CREO VIEW to check or review the drawing.

 

So Is there any way to update the drawing template or format dynamically from workflow only , on the basis of state change or something else. ??

 

We can achieve this by using watermarking on representation on publish event but that is last option and we want drawing format should get updated dynamically .

 

 

OliverDroop
15-Moonstone
March 11, 2026

I guess you have solved your issue meanwhile. Adding new parameters to the file is only possible during download! https://www.ptc.com/en/support/article/CS285001.
Best practice is to have all parameters already defined in a cad template but I do understand if you have existing data and this is an additional feature which you add this might not apply.

Setting attributes on checkin is possible by customization as well but not suiteable for "Release Attributes"