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: 

Add missing properties when copying form

1 REPLY 1
SOLVED
Reply
Message 1 of 2
christian.roy7TG6G
209 Views, 1 Reply

Add missing properties when copying form

Hi everybody

We updated some forms we are using and we need to copy from a "donor" part to "receiving" part. My issue is the new form asks for custom properties that are not present in the "receiving" part. When opening the form in the receiving part, some fields aren't accessible and the field description gets a strikethrough.  We can fix that by going to the part properties and manually adding the custom property that the form is requesting.

 

I've done a rule to add a specific custom property to the part file if it's not present but I would like to create a rule that goes over every parameter in the form and create that property if it's missing.

 

Do you guys have any idea how to do that?

 

Bonus points for making that automatic when copying a form from one part to another.

1 REPLY 1
Message 2 of 2

Hi @christian.roy7TG6G.  Unfortunately, I do not think we have that ability yet.  We have very little control over an iLogic Form from an iLogic rule, other than to show the form and get a very basic response of how it was closed (OK button, Cancel, clicked rule button, etc).  I have seen advanced, complex ways of digging into the specifications of iLogic forms, but there is no established or normal way to do it.  We would have more control over a form, if we actually created it by code, like a regular System.Windows.Forms.Form type object, which is possible to do, but also pretty advanced & complicated.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

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

Post to forums  

Autodesk Design & Make Report