Skip to main content
4-Participant
January 7, 2025
Question

How to set Duration attribute of Plan Activity to hours instead of days.

  • January 7, 2025
  • 2 replies
  • 777 views

Version: Windchill 12.1

 

Use Case: Want to change the unit of Duration attribute


Description:

Hi All,

I want to set Duration attribute of Plan Activity to hours instead of days. By default it is taking in days only.

Thanks

2 replies

avillanueva
23-Emerald I
23-Emerald I
January 7, 2025

Here is some help information on the topic:

https://support.ptc.com/help/wnc/r12.1.1.0/en/index.html#page/Windchill_Help_Center/planmgmt/PlanMgmtExampleCalculation.html#wwID0EQT6Z

I suspect that this is hardcoded to render days and there is some calculations going on here. I would this that decimal portions would work to get you hours but it would likely show a partial day. If you are looking to have it render hours, I might suggest a customization of a data utility to alter the display of the variable.  

Last thing you can try is see if it accepts a pure unit suffix (I doubt it):

https://support.ptc.com/help/wnc/r12.1.1.0/en/index.html#page/Windchill_Help_Center/typeattr/TypeMgrPureUnits.html

If you entered "8 h" or "8 hr", if it was supported, it would accept that as hours. This is how unit based IBAs work.

18-Opal
January 7, 2025

@VJ_12681392 

 

Seems to be doable with customization.

When I start a new activity plan the default is now 1.0 Hours rather than 1 day.

d_graham_0-1736274668394.png

 

4-Participant
January 8, 2025

Hello @d_graham 

How you have done this?