Good morning everyone,
Been a while since I created any iLogic driven forms and I struggling a bit.
Basically I have a parent file the has several user parameters driven through a Form.
I need to take the same Parent file and insert it into a subassembly; while in the subassembly state drive the user parameters in the Parent file through a new form in the subassembly.
This is currently being attempted in 2019, is this even possible?
A little more detail:
Parent assembly simple lathe setup with three (3) User defined parameters
This Parent Assembly is then used to create a new Assembly for users to finish added various parts and subassemblies to illustrate various setups.
What we are looking for is a way for the user parameters to be editable in the new assembly. The thought process is the Parent file can be updated and trickle down through all the variations.
Is there a way to parse the equation in the subassembly User Assembly that will allow the user to set up each newly created file.
Hi @Formsprag
I might be missing something in the workflow. But I think you might just need to create 2 new rules, one in the subassembly to open the form, and one in the top level assembly (or as an external rule) to run the rule in the sub assembly to open the form.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
After some thought the better workflow may be to open the "Parent" File (Form triggers upon opening). Have the user fill in all the variables and "Apply" the settings.
iLogic would then run to apply all settings and create a new .iam with the "Parent" being the first Subassembly in the newly created file.
The problem I have with this work flow is how to "Stick" those user settings without reverting back to the "Parent".
Thanks for your input Curtis, I'm trying your workflow now.
Hi @Formsprag ,
My apologies for the confusion, my example was only correct if the assembly is in use as a subassembly by the assembly the rule is in.
For example, in your screen shot the subassembly occurrence called test:1, we could run a rule within it called ShowForm, by using either of these lines:
iLogicVb.RunRule("test:1", "ShowForm")
or
iLogicVb.RunRule("test.iam", "ShowForm")
From the error, I'm guessing the subassemly was not present in the top level assembly?
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Can't find what you're looking for? Ask the community or share your knowledge.