I need help with ilogic.

I need help with ilogic.

Anonymous
Not applicable
641 Views
7 Replies
Message 1 of 8

I need help with ilogic.

Anonymous
Not applicable

hi,

im working in ilogic and it anoy's me that my part updates with evry change in dimention, is there a way to add a button into the ilogic interface that lets me manualy update all of my dementions in one go?

0 Likes
Accepted solutions (2)
642 Views
7 Replies
Replies (7)
Message 2 of 8

mcgyvr
Consultant
Consultant

Something may be possible..

Can you share your code/ipt files,etc... so we can see the details of what you are working on?

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 3 of 8

tobias_wiesendanger
Advocate
Advocate
Accepted solution

If you are using a ilogic form to edit dimensions, you could change the type.

 

 

2020-03-11 13_46_59-Window.png

You then have to click apply or Ok. Otherwise nothing updates.

 

regards

 

Tobias

0 Likes
Message 4 of 8

Anonymous
Not applicable

yes i know how to make it a button but i dont know how to stop the automatic update and start a manual update.

id like to know how i do that.

 

0 Likes
Message 5 of 8

Curtis_Waguespack
Consultant
Consultant

Hi @Anonymous 

 

Welcome to the Inventor community.

 

Note that programming questions of this type are better asked on the Inventor Customization forum :
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

 

I've asked the moderators to move this topic to that forum.

 

As for you question, if your rule is local, meaning stored in the file rather than in an external folder, which I'm guessing it is... then you can likely remedy this by enclosing the parameter names as shown below:

 

This rule will trigger anytime Length or Width is changed

Length = Width *2

 

This rule will only trigger with Width is changed

Parameter("Length") = Width *2

 

Often I like to define the "blue" parameters as triggers as in this example,  so that I can glance at the top of the rule and know what will trigger the rule to run. Note that the oTrigger variable is a throw away and is not really doing anything, it's just getting the parameter value as a way to call the local parameter to trigger the rule... its the unenclosed blue parameter that is doing calling the rule to run.

'define the parameters that will trigger the rule
oTrigger = Length
oTrigger = Diameter
If Parameter("Length") > Parameter("Box_Length") Then Parameter("Length") = Parameter("Width") Else Parameter("Length") = Parameter("Box_Length")- 2 End If

Parameter("HolePattern") = Parameter("Diameter") +2

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

EESignature

Message 6 of 8

Anonymous
Not applicable

thank you for the eplanation but it didnt anser my question.

i might just be saying it wrong.

so here is a second try.

in i logic if you change a parameter (example:from 100 to 260) in in the form section, it will automaticaly update from 100 to 260. i would like to change that. i would like to change more parameters in one go and update them at the same time. 

Id like the activation to be a button.

i hope this helps

 

0 Likes
Message 7 of 8

tobias_wiesendanger
Advocate
Advocate

So thats what you want?

 

https://youtu.be/QCmvnDgeevQ 

 

If not you should post your files, so we can have a look.

Message 8 of 8

Curtis_Waguespack
Consultant
Consultant
Accepted solution

@Anonymous wrote:

thank you for the eplanation but it didnt anser my question.

i might just be saying it wrong.

so here is a second try.

in i logic if you change a parameter (example:from 100 to 260) in in the form section, it will automaticaly update from 100 to 260. i would like to change that. i would like to change more parameters in one go and update them at the same time. 

Id like the activation to be a button.

i hope this helps

 


Hi @Anonymous 

 

I think tobias.wiesendanger answered your question then, if you set the form to use the OK Cancel Apply then you can choose when to update the model after the parameters have been changed in the form

 

Here I have a form with two model parameters named Count1 and Count2

 

image.png

 

When I open the the form the buttons are grayed out:

image.png

 

When I change Count1 and then click on Count2 (or use the tab key) the buttons become active, but the model does not update

 

At this point I can choose to click Apply to update the model  or I can choose not to click any buttons...

image.png..

 

If I choose not to click any buttons, I can change Count2, and then when I click either the Apply or OK buttons both parameters will be updated and the model will change.

 

image.png

If this still doesn't answer your questions, then providing an example file or example code to help understand your issue is likely the next step.

 

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

EESignature