Check box in visual basic form to suppress part?

Check box in visual basic form to suppress part?

Anonymous
Not applicable
618 Views
2 Replies
Message 1 of 3

Check box in visual basic form to suppress part?

Anonymous
Not applicable

I am creating a form in visual basic and  will use a dll file as a reference in inventor to control an assembly with one easy form. I have only used combo boxes and text boxes up to this point and everything is working, but now I would like to use 3 check boxes on the form to control the suppression of varies parts with in my assembly.  I have 3 parts in my assembly that will be optional parts per the clients request.  I would like to use 3 check boxes one for each part and if the box is check that parts will be active in the assembly and if unchecked the parts will be inactive; however I do not know how create the syntax for this in visual basic or incorporate it into inventor.  Can any one please help me or point me to where I may find some help in how to achieve my goal. Thanks.

0 Likes
619 Views
2 Replies
Replies (2)
Message 2 of 3

philippe.leefsma
Alumni
Alumni

Hi

 

That sounds like you are asking people to write code for your app. It's pretty unlikely you are going to find code that does exactly what you are looking for somewhere. If you need help in writting the UI part, I suggest you take a look at the numerous VB tutorials you can find all over the web. Concerning the Inventor part, you can suppress/unsuppress occurrences in an assembly using "ComponentOccurrence.Suppressed" property. Take a look on our blog or in the API Help files, you should be able to find plenty of examples on how to work with occurrences:

 

http://adndevblog.typepad.com/manufacturing/

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 3

Anonymous
Not applicable

Thank you for your response and I have been searching the forums for information but I have not been able to find anything that has helped me with what  I would like to do yet. 

0 Likes