Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom Feature Dialog

1 REPLY 1
Reply
Message 1 of 2
tneff2
535 Views, 1 Reply

Custom Feature Dialog

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)

1 REPLY 1
Message 2 of 2
philippe.leefsma
in reply to: tneff2

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report