& Construction

Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing

Professional CAD/CAM tools built on Inventor and AutoCAD
Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
Professional CAD/CAM tools built on Inventor and AutoCAD
Transcript
00:09
In this lesson, we're going to explore the uses of iLogic and how incorporating iLogic into your asset development,
00:16
can generate assets that are even more intelligent and easier to use.
00:22
In this lesson, our general objectives are to discover how iLogic rules can enhance our parametric designs, making them even more intelligent.
00:31
We'll look at adding forms to our asset for easy use and we'll finish by taking a quick look at how anyone can create a simple rule with iLogic.
00:42
The parametric functionality that can be established for an asset is considerable,
00:46
but there are situations that require a more robust and complex set of controls.
00:51
Some modeling features require a logical argument,
00:54
or an if this then this manner of control, this functionality is available to Inventor's iLogic environment.
01:01
The iLogic environment allows designers to include coded functionality into an Inventor model or asset.
01:09
This section will demonstrate a few simple iLogic codes that deliver functionality often required in asset design.
01:15
The overall objective of this section is not to deliver an in-depth instruction on the use of logic.
01:21
This section will simply provide examples of how iLogic can be used to deliver model functionality that is often required for asset design.
01:32
One of the simplest examples of iLogic use is seen in creating forms.
01:37
A form allows asset designers to develop a custom user interface specifically designed to provide easy interaction with unique asset requirements.
01:47
Any parametric part can utilize a form, iLogic rules are not necessary.
01:55
I've opened up the Fanuc M-710 robot that we used in an earlier presentation.
02:01
This particular asset has a form that I want to show you.
02:05
Before I show you the form though, I want to give the author of this asset all the credit that's due.
02:13
The author of this asset is Daniel Lutz.
02:16
This is an amazing asset.
02:18
It's included in your dataset.
02:20
And I would encourage you to look through this asset to see how it was created.
02:27
As I mentioned, this asset has a form built into it.
02:30
To access the form, we're going to come to the browser and either activate your iLogic tab or use the plus sign to activate your iLogic tab.
02:40
On the iLogic tab, I'm going to come over to the forms tab and here you'll see the form that was created for this robot.
02:48
I'm going to select it and you can see the custom user interface that was created.
02:54
This interface allows me to easily manipulate the position of the robot to suit the unique requirements for this placed asset.
03:14
Forms are not that difficult to create.
03:18
I'm going to right click on this form and select "Edit".
03:21
Here, you see the dialogue box that you use to create your form.
03:25
Now we don't have time to explore this entire process, but it is actually pretty easy.
03:31
All of your named or key parameters are going to be listed over here.
03:34
And if you'd like to include them in the user interface, you simply drag them over and drop them off.
03:42
I can select this particular parameter and come down and take a look at its display properties.
03:50
Here, you can see the current control type is set to a text box.
03:54
I want to change that to a slider.
03:57
I can expand the slider properties and I can fill in the desired values.
04:10
Now when I click the form, I have this new entry and I can test out its functionality very easily.
04:22
iLogic may seem intimidating or impossible to understand.
04:26
But there are simple, easy to use rules that anyone can utilize.
04:30
You can easily add logical control for part color, iProperty values, feature suppression, and multi parameter control.
04:39
I've opened up Inventor and I've inserted an asset called race car hauler.
04:44
This is one that I generated a few years ago and it has a couple of iLogic rules that help control the color of the vehicle.
04:53
I'm going to double click the component basically that activates it.
04:57
And then I can come in and take a look at the iLogic rules.
05:01
I have a rule for the truck color.
05:03
A rule for the color of the text and a rule for the accent color.
05:13
When I select the asset the factory properties palette allows me to modify anything I have defined as a key parameter.
05:20
So, here's the body color.
05:23
I have a drop-down list. I'll set that to orange, the accent color, and the text color. I'm going to set for white.
05:34
And for the sponsor, I'm going to change the parameter for the text to factory design utilities.
05:44
When I click the "Update" button, the asset updates to the colors that I defined.
05:50
I hope you see how adding these simple little iLogic rules makes this asset much more versatile and easy to use.
05:59
In this brief demonstration, we will review the basics of how iLogic can enhance our assets.
06:05
We will create two simple rules to control the color of the shelves,
06:08
and the suppression of the uprights needed when multiple shelves are strung together.
06:14
It is important to note that additional training is necessary to take full advantage of iLogic and all of its capabilities.
06:21
This demonstration is just intended to provide a short introduction to the use of iLogic for factory asset design.
06:30
Back in Inventor, I've opened up the shelf heavy duty example that we showed you earlier.
06:36
I've already added two rules to the functionality of this particular component.
06:42
Let me show you what those rules do.
06:48
I've added rules for body color.
06:51
So down here, I have a user parameter called body color.
06:55
I've set it to multi value and I have different color values listed here.
07:02
You can see that whatever a color I choose from the drop-down list affects the color of the model.
07:08
I also have a rule that turns off the uprights.
07:12
There are times where we're going to put these shelves together, we're actually going to connect them and make a string of shelves.
07:19
And when we do that, we may need to turn off the left set of uprights or the right set of uprights.
07:25
Now, right now, for the parameter called uprights, I have it set to both.
07:30
But if I want just the right uprights, I can click right and the left uprights will disappear,
07:37
or I can click left and the right set of uprights will disappear.
07:48
Let me show you how those two rules were created.
07:52
Back over in the browser I'm going to activate my iLogic tab and on the rules tab, you'll see the two rules that I have created.
08:00
Let's take a look at the color rule first.
08:05
The color rule was created with a simple select case format.
08:09
Let me show you how easily you can create an iLogic rule.
08:15
I'm going to close this one and start a new one.
08:18
I'm just going to call it color2.
08:21
We're not going to finish it.
08:25
We'll just use it as an example.
08:28
You start off a rule with a blank slate and you can easily choose the form you want.
08:35
In this case, I'm going to use a select case form, click "Select Case" under "Keywords".
08:41
I'll put a space here and then for my user parameters, I'm going to select body color.
08:51
I'm going to hit the next line and then I'm going to go back to keywords and select "Case".
08:56
Now, the case here is the value that you're going to choose from the parameter drop down.
09:02
So, what were our parameter drop down values?
09:04
Well, if I hover over body color, I can see that they were black, blue, gray, green, orange, red, and yellow.
09:10
So, I'm going to type in black here.
09:14
All right. So, if the case is black, what do I want to happen?
09:17
I'll hit the next line and now I want to control the part color.
09:25
I'm going to go to this snippet for iProperties.
09:29
Underneath of that snippet, I'll find the part color control.
09:34
I'm going double click that.
09:36
Here is the code I need to control the part color.
09:41
I'm going to put an equal sign behind this.
09:43
And then in parentheses again, I have to type in exactly the name of the color I want.
09:50
It has to be correct as far as spelling goes, but also capitalization,
10:02
that's really it.
10:03
Once I have this set up, I can right click and copy it, add another line and paste it.
10:14
You can choose to format your code any way you want.
10:17
To be consistent I'll just back up a space there.
10:24
All right. Now, for the color blue, the name of the color is actually called smooth navy.
10:32
Here we go.
10:34
Now, I could keep going down the list and picking setting up cases for each of the color options I have listed in the original text parameter.
10:44
To finish up the string, I can go back and hit the "Enter" button.
10:48
And under "Keywords", I can select "End Case".
10:52
That's all you need to set up that functionality.
10:56
Now, I'm going to cancel this because I already have it set up in my color rule.
11:08
Let's take a look at the uprights rule.
11:10
Now, before I look at the rule, let's go back over to the model browser.
11:19
On the model browser, you'll see that I have two suppression features here.
11:24
One suppression feature turns off the right leg, the other turns off the left leg.
11:29
Now, right now they're both suppressed.
11:33
Back in iLogic, I'm going to activate my uprights rule.
11:38
This rule is written in a simple if then, else if then format.
11:44
Basically, it says, if the parameter upright is set to both, then the snippet for feature is active.
11:53
We set that to the same name we had in the browser, right leg and left leg, and we set it both to faults.
11:60
So, if I want both of them, then I both of those suppression features are faults.
12:06
If I want the right leg, then the suppression for the left leg is true.
12:11
And if I want the left leg, then the suppression for the right leg is true.
12:17
Just like the previous example, you have to end this with an "end if" statement.
12:30
Well, we've reached the end of our little iLogic exploration.
12:34
And I hope you've seen how adding some simple iLogic rules can really enhance the overall functionality of your asset.
Video transcript
00:09
In this lesson, we're going to explore the uses of iLogic and how incorporating iLogic into your asset development,
00:16
can generate assets that are even more intelligent and easier to use.
00:22
In this lesson, our general objectives are to discover how iLogic rules can enhance our parametric designs, making them even more intelligent.
00:31
We'll look at adding forms to our asset for easy use and we'll finish by taking a quick look at how anyone can create a simple rule with iLogic.
00:42
The parametric functionality that can be established for an asset is considerable,
00:46
but there are situations that require a more robust and complex set of controls.
00:51
Some modeling features require a logical argument,
00:54
or an if this then this manner of control, this functionality is available to Inventor's iLogic environment.
01:01
The iLogic environment allows designers to include coded functionality into an Inventor model or asset.
01:09
This section will demonstrate a few simple iLogic codes that deliver functionality often required in asset design.
01:15
The overall objective of this section is not to deliver an in-depth instruction on the use of logic.
01:21
This section will simply provide examples of how iLogic can be used to deliver model functionality that is often required for asset design.
01:32
One of the simplest examples of iLogic use is seen in creating forms.
01:37
A form allows asset designers to develop a custom user interface specifically designed to provide easy interaction with unique asset requirements.
01:47
Any parametric part can utilize a form, iLogic rules are not necessary.
01:55
I've opened up the Fanuc M-710 robot that we used in an earlier presentation.
02:01
This particular asset has a form that I want to show you.
02:05
Before I show you the form though, I want to give the author of this asset all the credit that's due.
02:13
The author of this asset is Daniel Lutz.
02:16
This is an amazing asset.
02:18
It's included in your dataset.
02:20
And I would encourage you to look through this asset to see how it was created.
02:27
As I mentioned, this asset has a form built into it.
02:30
To access the form, we're going to come to the browser and either activate your iLogic tab or use the plus sign to activate your iLogic tab.
02:40
On the iLogic tab, I'm going to come over to the forms tab and here you'll see the form that was created for this robot.
02:48
I'm going to select it and you can see the custom user interface that was created.
02:54
This interface allows me to easily manipulate the position of the robot to suit the unique requirements for this placed asset.
03:14
Forms are not that difficult to create.
03:18
I'm going to right click on this form and select "Edit".
03:21
Here, you see the dialogue box that you use to create your form.
03:25
Now we don't have time to explore this entire process, but it is actually pretty easy.
03:31
All of your named or key parameters are going to be listed over here.
03:34
And if you'd like to include them in the user interface, you simply drag them over and drop them off.
03:42
I can select this particular parameter and come down and take a look at its display properties.
03:50
Here, you can see the current control type is set to a text box.
03:54
I want to change that to a slider.
03:57
I can expand the slider properties and I can fill in the desired values.
04:10
Now when I click the form, I have this new entry and I can test out its functionality very easily.
04:22
iLogic may seem intimidating or impossible to understand.
04:26
But there are simple, easy to use rules that anyone can utilize.
04:30
You can easily add logical control for part color, iProperty values, feature suppression, and multi parameter control.
04:39
I've opened up Inventor and I've inserted an asset called race car hauler.
04:44
This is one that I generated a few years ago and it has a couple of iLogic rules that help control the color of the vehicle.
04:53
I'm going to double click the component basically that activates it.
04:57
And then I can come in and take a look at the iLogic rules.
05:01
I have a rule for the truck color.
05:03
A rule for the color of the text and a rule for the accent color.
05:13
When I select the asset the factory properties palette allows me to modify anything I have defined as a key parameter.
05:20
So, here's the body color.
05:23
I have a drop-down list. I'll set that to orange, the accent color, and the text color. I'm going to set for white.
05:34
And for the sponsor, I'm going to change the parameter for the text to factory design utilities.
05:44
When I click the "Update" button, the asset updates to the colors that I defined.
05:50
I hope you see how adding these simple little iLogic rules makes this asset much more versatile and easy to use.
05:59
In this brief demonstration, we will review the basics of how iLogic can enhance our assets.
06:05
We will create two simple rules to control the color of the shelves,
06:08
and the suppression of the uprights needed when multiple shelves are strung together.
06:14
It is important to note that additional training is necessary to take full advantage of iLogic and all of its capabilities.
06:21
This demonstration is just intended to provide a short introduction to the use of iLogic for factory asset design.
06:30
Back in Inventor, I've opened up the shelf heavy duty example that we showed you earlier.
06:36
I've already added two rules to the functionality of this particular component.
06:42
Let me show you what those rules do.
06:48
I've added rules for body color.
06:51
So down here, I have a user parameter called body color.
06:55
I've set it to multi value and I have different color values listed here.
07:02
You can see that whatever a color I choose from the drop-down list affects the color of the model.
07:08
I also have a rule that turns off the uprights.
07:12
There are times where we're going to put these shelves together, we're actually going to connect them and make a string of shelves.
07:19
And when we do that, we may need to turn off the left set of uprights or the right set of uprights.
07:25
Now, right now, for the parameter called uprights, I have it set to both.
07:30
But if I want just the right uprights, I can click right and the left uprights will disappear,
07:37
or I can click left and the right set of uprights will disappear.
07:48
Let me show you how those two rules were created.
07:52
Back over in the browser I'm going to activate my iLogic tab and on the rules tab, you'll see the two rules that I have created.
08:00
Let's take a look at the color rule first.
08:05
The color rule was created with a simple select case format.
08:09
Let me show you how easily you can create an iLogic rule.
08:15
I'm going to close this one and start a new one.
08:18
I'm just going to call it color2.
08:21
We're not going to finish it.
08:25
We'll just use it as an example.
08:28
You start off a rule with a blank slate and you can easily choose the form you want.
08:35
In this case, I'm going to use a select case form, click "Select Case" under "Keywords".
08:41
I'll put a space here and then for my user parameters, I'm going to select body color.
08:51
I'm going to hit the next line and then I'm going to go back to keywords and select "Case".
08:56
Now, the case here is the value that you're going to choose from the parameter drop down.
09:02
So, what were our parameter drop down values?
09:04
Well, if I hover over body color, I can see that they were black, blue, gray, green, orange, red, and yellow.
09:10
So, I'm going to type in black here.
09:14
All right. So, if the case is black, what do I want to happen?
09:17
I'll hit the next line and now I want to control the part color.
09:25
I'm going to go to this snippet for iProperties.
09:29
Underneath of that snippet, I'll find the part color control.
09:34
I'm going double click that.
09:36
Here is the code I need to control the part color.
09:41
I'm going to put an equal sign behind this.
09:43
And then in parentheses again, I have to type in exactly the name of the color I want.
09:50
It has to be correct as far as spelling goes, but also capitalization,
10:02
that's really it.
10:03
Once I have this set up, I can right click and copy it, add another line and paste it.
10:14
You can choose to format your code any way you want.
10:17
To be consistent I'll just back up a space there.
10:24
All right. Now, for the color blue, the name of the color is actually called smooth navy.
10:32
Here we go.
10:34
Now, I could keep going down the list and picking setting up cases for each of the color options I have listed in the original text parameter.
10:44
To finish up the string, I can go back and hit the "Enter" button.
10:48
And under "Keywords", I can select "End Case".
10:52
That's all you need to set up that functionality.
10:56
Now, I'm going to cancel this because I already have it set up in my color rule.
11:08
Let's take a look at the uprights rule.
11:10
Now, before I look at the rule, let's go back over to the model browser.
11:19
On the model browser, you'll see that I have two suppression features here.
11:24
One suppression feature turns off the right leg, the other turns off the left leg.
11:29
Now, right now they're both suppressed.
11:33
Back in iLogic, I'm going to activate my uprights rule.
11:38
This rule is written in a simple if then, else if then format.
11:44
Basically, it says, if the parameter upright is set to both, then the snippet for feature is active.
11:53
We set that to the same name we had in the browser, right leg and left leg, and we set it both to faults.
11:60
So, if I want both of them, then I both of those suppression features are faults.
12:06
If I want the right leg, then the suppression for the left leg is true.
12:11
And if I want the left leg, then the suppression for the right leg is true.
12:17
Just like the previous example, you have to end this with an "end if" statement.
12:30
Well, we've reached the end of our little iLogic exploration.
12:34
And I hope you've seen how adding some simple iLogic rules can really enhance the overall functionality of your asset.
How to buy
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved
Sign in to start learning
Sign in for unlimited free access to all learning content.Save your progress
Take assessments
Receive personalized recommendations
May we collect and use your data?
Learn more about the Third Party Services we use and our Privacy Statement.May we collect and use your data to tailor your experience?
Explore the benefits of a customized experience by managing your privacy settings for this site or visit our Privacy Statement to learn more about your options.