Can we inject code in model which will re-run if certain geometry changes?

Can we inject code in model which will re-run if certain geometry changes?

Anonymous
Not applicable
482 Views
2 Replies
Message 1 of 3

Can we inject code in model which will re-run if certain geometry changes?

Anonymous
Not applicable

Let's say that we have the following model:

  • Extrusion 1
  • Extrusion 2 //it can be Revolve or anything else, of course.
  • Extrusion 3
  • Extrusion 4
  • etc.

I want to execute code after Extrusion 4 and I want to base the Extrusion 5 upon the results of Extrusion 4.

I want to re-run the code above each time when the geometry defined by Extrusion 4 is modified.

 

Is this possible?

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

cshunt
Enthusiast
Enthusiast

There a some options on the ilogic "event triggers" that will allow you to run rules when parameters in a model change. Under the assemblies tab, "Any Model Parameter Change" can be used as a trigger.

 

Some of these are easier to use and then call a vba macro from ilogic, de-bugging is easier in vba than ilogic.

0 Likes
Message 3 of 3

R.Mabery
Advocate
Advocate

I'm not entirely sure I follow...maybe more explanation would help?

 

iLogic rules don't really run at a specific point in your model browser.  They can change features, parameters, etc of the part based on other parameters or user selections etc.

 

As earlier stated, you could setup an Event Trigger to run a specific rule and inside that rule, possibly check to see if you need to make changes.

 

Without more information, I'm afraid I'm just taking stabs in the dark.

 

 


Thanks,
Randy Mabery
Applications Expert
IMAGINiT Technologies
0 Likes