Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
567 Views, 4 Replies

Change ReadOnly in Form with iLogic

     I have a bunch of components that have forms in them. Not global forms, but forms in the document. I would like to replace these forms via ilogic with a new version. The intent is to iterate over the documents and subdocuments and check the value of an iproperty. if iprop value = x then delete embedded form/s, and copy new from this template... We have a system of components driven by forms, for example, a glass part contains a form called "glass definition" that is supposed to interact with the part ion specific ways. as this part gets copied and made into new versions, the forms get "tweaked" over time. This is BAD.... I need to be able to go into an assembly and reform (pun intended) the "tweaked" forms back to a consistent interface. I cant open every part and delete, copy, & paste. I only have a couple of thousand suspect parts... Thanks in advance for whatever help you can Provide!

 

Thanks,

 

Tom Ruscher 

wayne.brill
in reply to: Anonymous

Hi Tom,

 

I do not see a way to automate this and asked a colleague in Inventor Engineering about this. Here is an excerpt of their reply:

 

>> >>

The API doesn’t provide functions to copy forms.

 

But it sounds like global forms might be a better solution in this case, because he hasn’t said that he needs a different form in each part.

<< <<

 

You could request this on the Inventor Idea station:

 

http://forums.autodesk.com/t5/inventor-ideastation/idb-p/v1232/tab/most-recent

 

Thanks,

Wayne

 



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Anonymous
in reply to: wayne.brill

Well, unfortunately, I do need different forms based on class on part... So there is no way do this? 

wayne.brill
in reply to: Anonymous

Hi,

 

Yes this statement was from the Engineer who was the main architect and developer on iLogic:

"The API doesn’t provide functions to copy forms"

 

So currently there is not a way to do this.

 

Thanks,

Wayne



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Curtis_Waguespack
in reply to: Anonymous


@Anonymous wrote:

Well, unfortunately, I do need different forms based on class on part... So there is no way do this? 


Hi truscher,

 

So would you not just create different global forms for this then? 

 

It sounds like external rules and global forms are the correct long term solution for you.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com