Basic iLogic question - ShowForm sequence

Basic iLogic question - ShowForm sequence

Anonymous
Not applicable
433 Views
2 Replies
Message 1 of 3

Basic iLogic question - ShowForm sequence

Anonymous
Not applicable

Hi.

 

I am new to iLogic (in Inventor 2018) and just going through a simple project to get started.  I have several blocks that make up an assembly.  Each of these blocks has either an optional length, optional bore or both.  In some blocks the bore is also tapered so I have Bore_1 and Bore_2.

 

At this stage I am just looking at this from a part perspective and not populating an assembly yet.

 

This is what I need to happen:

I open a part and the form appears to allow me to select Bore_1.

I select the value for Bore_1 on the (Global) form and then click OK.  The Bore_1 form closes.

I then want this to trigger the Bore_2 (Global) form.

When I complete the Bore_2 form, the Bore_2 form closes and I want the (Global) form for Length to appear.

(I don't want to put all into one form as different blocks will not have all options, so I have created external rules for "ShowForm" for the three options).

 

I created an external rule "ShowFormBore_1" and in Event triggers added this to "After Open Document".  This works fine.  I open the document and the form appears.  I fill in the value and the model updates.

 

Q.  What do I do to trigger a sequence of forms appearing in a selected order after each previous one closes?

 

Many thanks,

 

T

0 Likes
434 Views
2 Replies
Replies (2)
Message 2 of 3

philip1009
Advisor
Advisor

When making the form, instead of using a pre-defined button, you can create a button that will activate a rule, then have that rule update the model and then either use:

 

SyntaxEditor Code Snippet

iLogicForm.ShowGlobal("Form 1", FormMode.NonModal) ' Allows you to run other commands while this form is open.
iLogicForm.ShowGlobal("Form 1", FormMode.Modal) ' Doesn't allow you to run other commands while this form is open.

 Unfortunately there isn't a way to close the form with iLogic, so this method will leave you with a bunch of forms to close at the end.  I personally think it would be easier to have a form unique to each part, then with a standard form there's an option to show the form whenever that component is placed in an assembly.

 

Philip Martick
Inventor 2018 Pro, AutoCAD 2018, Autodesk Vault Basic 2018
Windows 10 Pro
2X Intel Xeon E5-2630 v4 @ 2.20GHz
16.00 GB of RAM
NVIDIA Quadro M2000

0 Likes
Message 3 of 3

Anonymous
Not applicable

Thanks very much for your reply.

 

I will have a look at this and let you know how it works out.

 

Cheers,

 

T

0 Likes