To iLogic or not to iLogic – Drawings

To iLogic or not to iLogic – Drawings

Let’s take a look at what we can do with drawings in iLogic.

If you insert a few views into an Inventor drawing and dimension it, it looks neat and tidy. What happens when we change the model through the iLogic rules?

The model might move. So how do we stop this?

We can use iLogic rules to make sure that the position of the lower left hand view is always a certain distance from the bottom left hand corner or 0,0.

In the left hand column, scroll down and you will see drawing. Click on the + button to open up the drop down. These are the snippets that we will use in our 2d drawings.

Below we will see the command we will be using to anchor a particular view a certain distance from the bottom left of the page (0,0) to the centre of the view we specify.

iLogic-Rules1 To iLogic or not to iLogic  - Drawings

Below you will see the view being placed at the top of the page and once the rule has been run you will see that it jumps to the bottom of the page.

iLogic-Rules-moving-view-rule-300x191 To iLogic or not to iLogic  - Drawings iLogic-Rules-moving-view-300x191 To iLogic or not to iLogic  - Drawings

If I change the length parameter to 1400 mm you can see that the chamfer has been added. Please note that the chamfer note needs to be put in. It will not insert itself automatically but once you have it, it will display for all the models that have a chamfer.

iLogic-Chamfer To iLogic or not to iLogic  - Drawings

If I change the length parameter to 2000 mm you can see that the fillet has now been added and the chamfer and chamfer note has disappeared. Once again I have included the radius dimension. You only need to do this once and it will occur for all the other models that have a radius. My next problem is that the top right view is too big so we have to scale it down.

iLogic-Chamfer-View To iLogic or not to iLogic  - Drawings

I am going to write a rule that states the following:

If the length is equal to and greater than 1000 mm and less than, but not equal to 1800 mm then the scale is x. Anything else the scale is y.

The code looks like this.

iLogic-Rules-Coding To iLogic or not to iLogic  - Drawings

After the rule runs you get the following.

Running-iLogic-Rules To iLogic or not to iLogic  - Drawings

So with just these 2 rules we can greatly control exactly what our model is doing in the 2d drawing environment even though the model undergoes changes.

In conclusion with just these few iLogic commands, we have greatly increased the power and versatility of Inventor.

I will keep on posting about iLogic as I go along and learn more but to answer the question – to iLogic or not to iLogic?

Me thinks – ILOGIC!

 

By |2017-05-24T12:12:55+00:00January 27th, 2015|

About the Author:

I am an Autodesk Application Engineer in the manufacturing space for a Gold Autodesk Reseller in South Africa called Micrographics. My role is to focus on support and training. My speciality is Inventor, Autodesk Vault and AutoCAD. Over the last 16 years in the Autodesk Channel I have also added AutoCAD Electrical, AutoCAD Mechanical, AutoCAD Plant and iLogic to my support and training portfolio. -Solutions Consultant/Engineer-