Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
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: 

Create a form using the Inventor API.

5 REPLIES 5
Reply
Message 1 of 6
ColdWatermelonJuice
1406 Views, 5 Replies

Create a form using the Inventor API.

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?

 

 

Labels (3)
5 REPLIES 5
Message 2 of 6

Hi @ColdWatermelonJuice 

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.   

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 3 of 6

Thank you for your reply. You bring up an interesting idea. Creating a form externally and then copying it into the created part as an "internal form" might work for me.

Today, I also tried iPart feature. But had a few issues. When creating an iPart using the user interface, all my model parameters were added automatically. However, when creating an iPart through the API method, none of the parameters were added. I'm unsure how to add a new column, as the help page doesn't provide much information on this topic.

Message 4 of 6

Hi @ColdWatermelonJuice 

 

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

Message 5 of 6

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

EESignature

(Not an Autodesk Employee)

Message 6 of 6

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.

Post to forums  

Autodesk Design & Make Report