I am looking to add an item to the “New” button on the status bar for Part Maintenance. After some digging I was able to accomplish adding a Memo button and memo functionality to the RMA module using “baseToolbarsManager.Tools[“MemoTool”].SharedProps.Enabled = true;”
I want to add an option to this list called “Add New Generated Part Number” that would call a bpm to generate a new formatted part number based on a post by @timshuwy.
Is this possible or should I be looking into a different option?
Thanks! This added the button to the Actions Menu which I didn’t originally think about doing. I still needed to add the following using statement in order for things to work properly:
Personally, I don’t like modifying the User Interface for this type of action ESPECIALLY because when you move to Kinetic in the future, you will need to re-think how this is done again. If you instead make this BPM triggered on a Method event, then it doesn’t matter what UI is running… Example:
Make a BPM on Part.GetNewPart (post processing) that auto-populates the part number with “NewSeqntialPart”.
make a second BPM so that it triggers on an Part.Update - have it look for “NewSequentialPart” in the part number… if there during an ADD, then have your BPM go get the next sequential part automatically.
If the user doesn’t want it to get the next sequential part, they can simply override the defaulted part with whatever part number they want.
coding done in BPMs should continue to upgrade unless you attach the BPM to a method that is deactivated. That said, most “normal” BPMs should not run into that problem.