iLogic Tutorial – Derived Block Library – 12

iLogic Tutorial –  12 –  Continuing to Write the iLogic Rules

iLogic Tutorial Derived Block Library Page Twelve Image 01 - iLogic Rule Name Dialog Box    To begin writing the rules, select the Add Rule icon tool from the iLogic Panel of the Manage Tab. Name the rule Profiles as shown below…

The iLogic rule for this panel is very straight forward. The iLogic Profile parameter we just created was a string parameter with six values that correspond to the six available sweep features in the model. So we will need six code blocks, one for each of the values, that unsuppress their corresponding sweep and suppress all others.

The first block will be for the 54115 profile, and we will simply make the declaration that If the parameter Profile is set to the 54115 value, Then do the following: unsuppress the 54115 Cut sweep by making it Active, and leave all of the others suppressed by stating that the Active state for them are False.

If Profile = “54115″ Then
Feature.IsActive(“54115 Cut”) = True
Feature.IsActive(“54116 Cut”) = False
Feature.IsActive(“54117 Cut”) = False
Feature.IsActive(“54118 Cut”) = False
Feature.IsActive(“54119 Cut”) = False
Feature.IsActive(“54121 Cut”) = False

The next block of code deals with the next Profile, and differs from the first in that it starts with ElseIf. What this means is that  if the code was not set to the previous value, check to see If the Profile parameter is set to 54116. If it is, Then execute the following code.

ElseIf Profile = “54116″ Then
Feature.IsActive(“54115 Cut”) = False
Feature.IsActive(“54116 Cut”) = True
Feature.IsActive(“54117 Cut”) = False
Feature.IsActive(“54118 Cut”) = False
Feature.IsActive(“54119 Cut”) = False
Feature.IsActive(“54121 Cut”) = False

If the parameter was not set to the 54116 stated in the code above, the program keeps looking until it finds an ElseIf variable that matches the parameter setting, so we create blocks of code for the rest of the variables in the same manor as the block of code above…

ElseIf Profile = “54117″ Then
Feature.IsActive(“54115 Cut”) = False
Feature.IsActive(“54116 Cut”) = False
Feature.IsActive(“54117 Cut”) = True
Feature.IsActive(“54118 Cut”) = False
Feature.IsActive(“54119 Cut”) = False
Feature.IsActive(“54121 Cut”) = False
ElseIf Profile = “54118″ Then
Feature.IsActive(“54115 Cut”) = False
Feature.IsActive(“54116 Cut”) = False
Feature.IsActive(“54117 Cut”) = False
Feature.IsActive(“54118 Cut”) = True
Feature.IsActive(“54119 Cut”) = False
Feature.IsActive(“54121 Cut”) = False
ElseIf Profile = “54119″ Then
Feature.IsActive(“54115 Cut”) = False
Feature.IsActive(“54116 Cut”) = False
Feature.IsActive(“54117 Cut”) = False
Feature.IsActive(“54118 Cut”) = False
Feature.IsActive(“54119 Cut”) = True
Feature.IsActive(“54121 Cut”) = False
ElseIf Profile = “54121″ Then
Feature.IsActive(“54115 Cut”) = False
Feature.IsActive(“54116 Cut”) = False
Feature.IsActive(“54117 Cut”) = False
Feature.IsActive(“54118 Cut”) = False
Feature.IsActive(“54119 Cut”) = False
Feature.IsActive(“54121 Cut”) = True
EndIf

As you can see, all of the blocks are identical except for the variable they are looking for, and the true statement that activates the feature if said variable is found. The EndIf declaration stops the program from going further, but in reality, it will stop before that because all of the variables are present, and it will stop and execute one before then. When done click the OK button. The program will immediately execute whatever variable the iLogic parameter was set to. The code can be found here: Profiles_Ilogic_Code.txt

 

 

 

 

- iLogic Tutorial for the Derived Block Library -

 

Intro12345678910111213

 






iLogic Tutorial – Derived Block Library – 09

iLogic Tutorial –  09 –  More Cutting of the Profiles

Now connect the block to the projected point by either using a Coincident constraint between the two points shown below, or grab the block by the junction point (1) and drag it to the projected point (2).

 

iLogic Tutorial Derived Block Library Page Nine Image 01 - Place The Sketch Block

When you see the Coincident Constraint glyph and the green dot, click to accept.

 

iLogic Tutorial Derived Block Library Page Nine Image 02 - Drag The Sketch Block

The sketch should now be fully constrained. Now turn the visibilty of the Profile Path back on, finish the sketch, and save.

 

 

 

 

iLogic Tutorial Derived Block Library Page Nine Image 03 - Finished Panel

The part should now look like the image above with the path visible around the upper edge and the profile buried in the part. Now we can cut the first profile.

 

- iLogic Tutorial for the Derived Block Library -

 

Intro12345678910111213

 






iLogic Tutorial – Derived Block Library – 08

iLogic Tutorial –  08 –  Cutting the Profiles

Now you can unsuppress the Panel extrusion and create the first profile. Get the Create 2D Sketch tool from the Sketch panel and either click on the Profile Plane in the browser or in the workspace. Name the new sketch  54115 Cut, then right click and select Slice Graphics, then turn off the visibility of the Profile Plane. Now project the intersection of the two lines as a point onto the new sketch as shown below…

 

iLogic Tutorial Derived Block Library Page Eight Image 01 - Slice Graphics

Now shut the visibility of the Profile Path Sketch and zoom in on the point. Click on the Amana 54115 block in the Blocks folder, and drag the block into the workspace. You may or may not have what is shown below…

 

iLogic Tutorial Derived Block Library Page Eight Image 02 - Turn Off Visibility

…I say that because I’ve done this part twice, exactly the same, and the blocks come in oriented different on each one. Whatever…

No matter what orientation they come in at, they need to be constrained, which will rotate the block in this case. Grab the Vertical constraint from the Constrain panel and click the left line in the image above, which represents the top of the cutter.

 

 

 

iLogic Tutorial Derived Block Library Page Eight Image 03 - Constrain the Sketch Block

The block should now be oriented as shown above. If it started with this orientation, you still need to apply the Vertical constraint to that same line, or the block will be under constrained, and will have the ability to rotate around the next constraint…

 

- iLogic Tutorial for the Derived Block Library -

 

Intro12345678910111213

 






iLogic Tutorial – Derived Block Library – 07

iLogic Tutorial –  07 –  Creating the Profile Path

Now grab the Look At tool from the floating View toolbar below the View Cube, and click on the XZ Plane in the Origin folder to rotate and center the drawing normal to the screen.

Grab the Line tool from the Draw Panel and connect the points to create a rectangle, making the right hand line in two segments. Use the Equal Constraint tool to make the two segments that make up the right hand line equal in length, and finish and save the part.

 

 iLogic Tutorial Derived Block Library Page Seven Image 01 - Create Rectangle

Now rotate the part to get an isometric view, and get the Plane tool from the Work Features Panel. Select one of the right hand line segments, then the intersection between the segments. A preview of the plane will show as seen below…

 

iLogic Tutorial Derived Block Library Page Seven Image 02 - Rotate to Isometric

Click to accept, and you will have a plane tangent to the line segments as shown in the image below…

 

 

 

 

iLogic Tutorial Derived Block Library Page Seven Image 03 - Create Work  Plane

…name the new plane Profile Plane and save the part.

 

- iLogic Tutorial for the Derived Block Library -

 

Intro12345678910111213

 






iLogic Tutorial – Derived Block Library – 05

iLogic Tutorial –  05 –  Creating the Panel Part

iLogic Tutorial Derived Block Library Page Five Image 01 - the Autodesk Inventor Derive Part Dialog

 

 

Create a new part, and save it right away as Panel.ipt. Saving will exit you from the sketch environment which is where you want to be. Switch to the Manage Tab and select the Derive tool from the Insert Panel. An Open dialog box will open up, where you need to find the Amana_Raised_Panel.ipt part you just made, and double click it.

 

 

 

 iLogic Tutorial Derived Block Library Page Five Image 02 - the Inventor Feature Browser

 

If you expand the Blocks folder, you should see all of the blocks represented there. You will need to uncheck the parameters as they will not be needed, and at any rate can be added later if there ever is a need. Click OK.

 

 

 

iLogic Tutorial Derived Block Library Page Five Image 03 - Centerpoint

 

 

You will now have the Amana_Raised_Panel library derivative in your part, and a Blocks folder that contains all of the blocks contained therein. Now to create the panel. Switch to the Model Tab and grab the Create 2D Sketch tool from the Sketch panel. Click on the XZ Plane to start the sketch. Grab the Look At tool and click on the same plane to make it normal to the screen.

 

 

 

You should now have the centerpoint visible in the center of your screen. Get the Two Point Rectangle tool from the Draw panel and draw a rectangle around the point as shown to the right….

Now we need to create the parameters for the panel. fire up the Parameter Editor and add the following parameters…

 

 

 

 

 

iLogic Tutorial Derived Block Library Page Five Image 04 - Autodesk Inventor Parameter Editor

Now get the dimension tool and dimension the width and length as shown below…

 

iLogic Tutorial Derived Block Library Page Five Image 04 - The Dimensioned Sketch

You will notice that the centerpoint is not centered, and the sketch is not constrained, we will take care of that in the next step…

 

- iLogic Tutorial for the Derived Block Library -

 

Intro12345678910111213

 






iLogic Tutorial – Derived Block Library – 01

iLogic Tutorial – 01 – Creating the Library Sketches

This tutorial will not cover the basics. If you need the basics, check out the iDoor tutorial first. What we will cover in this tutorial will be the creation of a sketch block library that can be derived into parts.

What this does is it provides a centralized source for full block libraries of things such as cutters, extrusion profiles, or any other kind of 2D profile that will be reused in multi-solid parts designs or in kinematic studies. When deriving these libraries into a new design, any or all of the blocks can be brought into the design, and the initial decision can be added to or subtracted from at any time.

To begin with, I made a simple grid to hold the six raised panel router profiles made by Amana Tool. I choose Amana because it was the first router bit manufacturer that had dimensions on their website — although some were less than complete.

 

iLogic Tutorial Derived Block Library Page One Image 01 - The Gridwork

To create the grid, I drew a two point rectangle starting on the centerpoint on a sketch created on the XZ Origin Plane. I choose this plane to make life easier down the road as there will be no rotating or mirroring of the block later on. I added the little division at the bottom, added the two dimensions and an equal constraint between the dimensioned vertical (right) and top lines. Once all this is done (15 seconds or so), create a rectangular pattern selecting the three horizontal lines and the left vertical as shown below….

 

 

 

 

 

iLogic Tutorial Derived Block Library Page One Image 02 - Pattern the sketch

For the direction, select the bottom line and flip the direction if necessary to have the green arrow pointing left. Set the number of instances to six, then highlight the distance number, and select the 3″ dimension created earlier. This last one should show up as d0 or d1 as show below….

iLogic Tutorial Derived Block Library Page One Image 03 - The settings

When your settings look like the dialog box above. Click OK to accept the values.

 

- iLogic Tutorial for the Derived Block Library -

 

Intro12345678910111213