Hi. The Windchill out-of-the-box install provides the user with the ability to add various new objects into a folder via the "Actions" menu (such as creating a "New Document", "New Part", "New Note" etc...). Windchill makes use of many more object types outside of the objects listed in the "Actions" menu I've referred to above. Is it possible, via the GUI, to add other object types in?
A bit of background to this question:
I am looking to add a new object type in to Windchill that will be used to represent warehouse locations that parts are stored at. These warehouse locations are likely to be associated with its own attribute set and it's possible they will need to be assigned to their own lifecycle to manage changes to the locations. Consequently, I may have to represent them by a custom object type and associate these location object to the parts they contain. It would be nice to create a new object type to represent my "locations" and to be able to add these into Windchill via the GUI. However, I can't see a way of doing this unless I make the new type a sub-type of a part, document or a note for example. Is this the case?
Yes, this can be done, but creating an entirely new object type is usually not the best approach. Defining a brand-new type (derived fromWTObject) requires Java development and is significantly more complex.
A much simpler and more common approach is tocreate a subtype of an existing object, such asPart or Document, depending on your use case. With subtypes, you can:
Hide unwanted attributes. If some attributes are required, you can prepopulate them usingObject Initialization Rules (OIRs)and then hide them from the UI.
Customize the user interfaceby creating new layouts for create, view, and info pages. For example, if your use case doesn't need files or viewables, you can hide those features.
This approach avoids the complexity of coding and is far easier to maintain.
If you want your new type to appear in toolbars or action menus, you’ll need to use theAction Framework. Here’s a good starting point in the PTC Help Center: Action Framework for Windchill Client Architecture
Alternatively, you can skip modifying the action framework entirely by having users create anew Partornew Document, then select the appropriate subtype from the list.
Thank you very much Adam. I think I'll create a sub-type of the objects mentioned to achieve what I'm looking for and explore the "Action Framework" to see if I can include this directly in the action menu.