Custom Feature Dialog

Custom Feature Dialog

Anonymous
Not applicable
798 Views
1 Reply
Message 1 of 2

Custom Feature Dialog

Anonymous
Not applicable

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)

0 Likes
799 Views
1 Reply
Reply (1)
Message 2 of 2

philippe.leefsma
Alumni
Alumni

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.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes