iLogic Coding for the Face Frame Count
The iLogic code for what we need to do in today’s post in this Blogtorial Series is relatively simple. The code will use the state of the Multi-Value parameter Intermediate_Rail_Count count to suppress or unsuppress the features that make up the solid bodies that represent the rails of our face frame.
In the iLogic browser, Double-click on the Main Rule. We have already used this parameter to define the spacing of the sketch geometry, so some of the work is done already. All we need to do is add the suppression information to the If, Else If statements already present.
So-far, each rail is comprised of two features. Because Inventor does not allow the suppression of an entire Solid Body, we will need to suppress both features for each solid. If any more features are added or subtracted later, we will need to include/exclude them from the code as well or we will get an error.
In this post we will add the rest of the current parameters to the iLogic’s Form Editor so that we may blast through the rest of the min/max iLogic code. I’ll make this one as short as possible as I think you may have it down-pat by now. If not, use the comment box at the end of the post to get clarification.
To begin this iLogic code writting session, we will go to the Forms Tab on the iLogic Browser, and right click on the Form 1 form we created in the last installment. Choose Edit, which will bring up the iLogic Form Editor. First thing to do here is drag all of the rest of the parameters over to the form. When that is done, grab a Tab Group tool from the Toolbox in the lower left, and place it at the top of the list of parameters you just dragged over. Now add another one somewhere in the middle of the pack. Now click on the Label 1 text and change it to Shaker Table. Now change the names of the tabs you just created to Main and Secondary. Now its just a matter of dragging the parameters and dropping them on top of whichever tab they will belong on…
I left off in the last iLogic code post with the code that limits the Shaker Table’s apron to a minimum of two inches. Today’s post will cover the apron’s maximum width code as well as the min/max for the thickness.
But first, I promised to show how to make the model semi-transparent. It is not at all necessary to do so, but I like to use the technique when adding and testing iLogic code so that I can get an x-ray view as to what is going on in my model. I have posted the How-To under the title iLogic Code Writing and Testing in a Semi-Transparent Model
When writing iLogic code in Autodesk Inventor, you need to test the code constantly to assure that it is behaving as expected in your model. Some of what is happening would normally be hidden from view. The answer to that problem is to have a semi-transparent model while testing. Here’s how to do it….
For this tutorial on iLogic code I have used the table from the Shaker Table Tutorial for this how-to, but any part with multiple solid bodies will do.
iLogic Tutorial – 09 – Creating the Cutter Planes
Now we need to create some planes for the sketches that will represent the front and back of the cutter. Grab the Plane tool from the Work Features panel, and click on the line down the center of the cutter that has the Cut_Depth parameter associated with it, then click on the end of the line towards the front of the box (the longer vertical line)…
..and a plane should appear perpendicular to the line at the end of the line.
Now do the same at the back of the cutter using the same line…
…then rename the planes Cutter Front Plane and Cutter Back Plane and make the planes invisible by selecting both, right clicking, and deselecting Visibility as shown in the image to the right.
- iLogic Tutorial fot the iDrawer Navigation -
Intro – 1 – 2 – 3 – 4 – 5 – 6 – 7 – 8 – 9 – 10 – 11 – 12 – 13 – 14 – 15 – 16 – 17 – 18 – 19