Pop-up an iLogic form when a part is inserted to assmebly

Pop-up an iLogic form when a part is inserted to assmebly

Anonymous
Not applicable
2,098 Views
4 Replies
Message 1 of 5

Pop-up an iLogic form when a part is inserted to assmebly

Anonymous
Not applicable

Hello.

 

Could you tell me if below 'scenario' is achievable using only iLogic?

 

1. I have a component (sub-assembly) which I want to insert into a main assembly.

2. When I insert this component into main assembly an iLogic form will be immediately displayed. In this form I can configure my component (length, width etc.). Then I click on Next button and another iLogic form will be displayed.

3. On the second form I have also ability to configure my component, but this time the parameters which I can configure depends on values which I specified in previous step.

4. When I click OK in the second form configuration of my component is finished and all iLogic form will be closed.

 

In other words I need ability to run iLogic form in assembly when new, specific component is added (only for this component, not for every component), to configure it in first form, to send information from first form to second one and to finally finish configuration in second form.

 

Is it possible using only iLogic? Or I will need to program it externally. For now I am collecting general ideas and guidelines, so I will be thankful for any help with this problem.

0 Likes
2,099 Views
4 Replies
Replies (4)
Message 2 of 5

Xun.Zhang
Alumni
Alumni

Hi Marcinbaron,

Yes, iLogic is the most powerful weapon, it can be done with iLogic and event toggle together, you have to create two rules, one is in the assembly as place the iLogic part and the other one is located in the part with parameter driven.

Please refer to a sample below -

https://forums.autodesk.com/t5/inventor-forum/ilogic-part-insertion/m-p/3667380#M451815

https://forums.autodesk.com/t5/inventor-forum/ilogic-part-insertion/td-p/3666746

https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/Inventor-Help/files/G...

Hope it helps!


Xun
Message 3 of 5

philip1009
Advisor
Advisor

if you already have the iLogic code and the Forms already created to your needs, then right-click your form and click edit. In your main form configuration window (top-right) make sure that the top item is highlighted.  In the window below you see the Properties of that form item.  Scroll all the way down and under the Behavior tab is an item labeled "Show on Place Component", change this to True to make that form pop up when ever you place this part or assembly in an assembly.

Message 4 of 5

Anonymous
Not applicable

@philip1009 I tried your suggestion and it works but only for first instance of my component in .iam file. I mean that only when I for the first time placed the component in assembly the form was opened, when I tried to add another instance of this component in this same assembly the form didn't opened. And when I created new assembly file and again placed this component to it the form opened only for the first instance.

 

Do you know where could be a problem?

0 Likes
Message 5 of 5

philip1009
Advisor
Advisor

If you're entering the same instance of a part, then all repeats of that same part will be the same.  I'm guessing what you want to do is insert the same part, and each one be different every time you insert it.  

 

How much customization is involved with each occurrence?  Are there only a few differences that can be managed in an Excel table of a few dozen different parts for example, or are there enough differences to generate hundreds of different parts and can't be easily managed in a table?

 

If it's the former, then I would suggest getting into iParts and iAssemblies, it's a simple tool to manage part and assembly libraries with an Excel like table, and every time you insert the master iPart or iAssembly, a form will pop up.

 

If it's the latter, then the code workflow could simply be:

1. Insert master part, the form pops up, input your options, then click Apply or similar button on the form.

2. The code saves a copy of that inserted master part into a specific folder with a specific name/number.

3. Then the code does a Component Replace of the inserted master part with the now custom part.

 

Then rinse and repeat with every inserted master part.

 

Let me know if this is what you're looking for.