Does anyone out there have anything that they'ed be willing to share on creating feature edit dialogs? I currently have working program that creates a custom pocket/cavity but I'm having trouble with the User Interface and setting up a solid structure to handle events.
My goal is to mimick how the "add hole" dialog works by having the following attributes:
- Ribbon button to bring up dialog
- Dimensions update when the dialog text boxes are updated
- Right click menu to edit existing features
- Existing dimensions and other properties are loaded when the dialog is used to edit existing features
So far, I have my classes structured this way:
AddinServer (handles loading and unloading the command) ->
CavityCommand (defines the buttons and containes event handlers) ->
CavityFeature (wraps up multiple identicle cavities into one client feature) ->
Cavity defitions (draws individual cavities using more specific classes)
Hi
Here is a C# example of a custom client feature with edit dialogs, it's pretty complete:
http://adndevblog.typepad.com/manufacturing/2012/07/complete-clientfeature-example-in-c.html
Event handling is based on my AU material available here:
http://adndevblog.typepad.com/manufacturing/2013/02/design-patterns-applied-to-the-inventor-api.html
You can check also some various material about Inventor API from our latest DevCamp:
http://adndevblog.typepad.com/manufacturing/2012/06/autodesk-manufacturing-devcamp-material.html
I hope it helps,
Philippe.