Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
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
Here is some help information on the topic:
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):
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.
Seems to be doable with customization.
When I start a new activity plan the default is now 1.0 Hours rather than 1 day.
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.