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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Translate the entire conversation x

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

VJ_12681392
4-Participant

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

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

4 REPLIES 4
avillanueva
22-Sapphire III
(To:VJ_12681392)

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.

@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

 

VJ_12681392
4-Participant
(To:d_graham)

Hello @d_graham 

How you have done this?

 

I got curious and dug a bit deeper.

Seems it very doable to set default values and units for both Duration and Work.

As an example, I set the default values to 0 and units to weeks for Duration and months for Work.

It's certainly possible to set other defaults values.  For example maybe you want Constraint to be "Must Finish On" rather than "As Soon As Possible".

Likewise, a default Activity Name could also be filled in automatically.

Probably a fringe need for this but good to know it's doable.

d_graham_0-1736376810789.png

 

Announcements

Top Tags