Table Exercise ILogic

Using ILogic for manipulate the model.
You can choose, length, table leg square or round, table plate fillet or not.
This with a simple table.
You will make the parts, the assembly, the table and the ILogic Rule.

Have some fun.

  1. Step 1: Starting a new part

    Just start a new part, and save it in a File called : Table

    This is because everything you make choold be in the same folder.

  2. Step 2: Table Legs.

    It is verry importend that you make the sketch just like in this example.

  3. Step 3: New assembly : Table

    Import the Table Plate.

    Place a Table Leg and see Iproperties ...

  4. Step 4: Change the posisions.

    Now setting the coördinates for the Table leg. Do not use constraints.

    Also rename the the imported leg in assembly explorer.

  5. Step 5: Pattern.

    Last picture is the table Parameters, it must be the same.

  6. Step 6: Drawing. idw

  7. Step 7: Forms. & ILogic

    First: parameters!

    ILogic Explorer

    This should appear.

  8. Step 8: After click the OK button.

    This is wat you must see.

  9. Step 9: Edit the form.

    When you select the form, right click, select edit.

    The form wil open in Edit mode.

  10. Step 10: Making the rule & Code.

    Make the new rule, and put the code in the rule.

    Try to work out why it does wat it does, so you understand the code.

    The code.

    This is the code that must you need in the rule.

    The green text is just comment.


    'Because you did make a parameter whit the name " Lenght " in this assembly,

    'and we are using that parameter in the Form,

    'we must be shure that parameter "TabelLength" in the part Tabel,

    'wil have the same value Of the Parameter " Length "

    Parameter("TablePlate:1", "TabelLength") = Length

    PatternLength = Length - 140

    If FilletTable = True Then

    Feature.IsActive("TablePlate:1", "Fillet2") = True


    Feature.IsActive("TablePlate:1", "Fillet2") = False

    End If

    'Here you can see why we had to change the name of the legs in the assembly explorer.

    If Straight Then

           Component.Replace("LegTable:1", "LegStraight.ipt", True)    


           Component.Replace("LegTable:1", "LegRound.ipt", True)

    End If 


    If you have done this without errors, you can use the form to adjust the table, square or round legs, rounding or not, and you can also determine the length.

    This is a very simple example of ILogic, but it might encourage you to use ILogic.

    Lots of fun.