Hi all,
I'm not sure if this concept will work, but I'd like to create a user interface that can modify model parameters, such as the height and width of a chair. So far, I have learned how to create parts using the Inventor API within iLogic rules as external rules. It seems that iLogic forms are used to set up custom interfaces for adjusting model parameters. I haven't delved into "forms" yet, but I'm curious if it's feasible to incorporate the form functionality within an iLogic rule. This way, once a part is created, the associated form for that part would also be generated.
If the concept above doesn't work, what is an alternative method or what is the recommended approach?
Unfortuantely there is no API access to generate forms by code. By code there is only limited access to open existing forms and with 2024 release to also close them. There maybe forum post in existence that would allow you to copy an existing form to a new part. Is this what you require? Can you share an image of what you want to achieve perhaps there is another built in method to achieve you goal.
When we create a part file with the API, there is an option to specify a specific template.
Would it work for you to have a form in the template, so that when you create the part, the form is already in place?
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Just another related option to consider. You could create a regular Windows Form, show it, interact with it, then get feedback from it, all from a single iLogic rule, instead of using an iLogic Form. This option is obviously much more complicated, especially if you are just getting into coding, but it could be something to learn about and consider for future projects. I have attached two PDF files showing a couple examples of this idea.
Wesley Crihfield
(Not an Autodesk Employee)
A big thank you to everyone for providing answers and suggestions on this post. I really appreciate all the great ideas you've shared!
Can't find what you're looking for? Ask the community or share your knowledge.