Tutorial 2 ILogic Basic Tutorial
Tutorial 2 ILogic Basic Tutorial
Part 2 of the iLogic Vessel Tutorial will guide you through the steps required in
developing an iLogic vessel in Inventor 2011, focusing on Head Development.
The objective will be to create heads that can be controlled through simple
iLogic code. Once complete, you will understand how to use parameters,
dimensions and feature names to create intelligent iLogic components for use
in vessel assemblies. The seven head types you will create are
Conical Head
Diffuser Head
Ellipsoidal Head
Flat Head
Hemispherical Head
You can download the files here. Extract the contents to the iLogicTutorial
workspace.
iii. Unit/Type: in
iv. Equation: 1
v. Key: Unchecked
v. Key: Unchecked
Page 2 of 13
Head Parameter Configuration
v. Key: Unchecked
d. Click Done.
Your Parameters Dialog box should look like the one in the diagram.
Page 3 of 13
Define Vessel Head Features
Conical
1. Rename Sketch1 to skConical
7. Rename them
both Vessel
8. Suppress the
Conical Feature
Page 4 of 13
Define Vessel Head Features
Diffuser
1. Create a new sketch on the XY Plane
6. Place two Opposed Insert iMates on the weld face of the head
Page 5 of 13
Define Vessel Head Features
Ellipsoidal
1. Create a new sketch on the XY Plane
6. Place two Opposed Insert iMates on the weld face of the head
Page 6 of 13
Define Vessel Head Features
Flat
1. Create a new sketch on the XY Plane
6. Place two Opposed Insert iMates on the weld face of the head
Page 7 of 13
Define Vessel Head Features
Hemispherical
1. Create a new sketch on the XY Plane
6. Place two Opposed Insert iMates on the weld face of the head
Page 8 of 13
Define Vessel Head Features
Torispherical
1. Create a new sketch on the XY Plane
6. Place two Opposed Insert iMates on the weld face of the head
Page 9 of 13
iLogic Code
iLogic Code
We are now ready to write the iLogic code for the head.
i. The interface
Page 10 of 13
iLogic Code
Page 11 of 13
iLogic Code
This can easily be done by clicking the feature in the model tree and selecting Capture
Current State. Keep only the Feature.IsActive(<FeatureName>) = False lines.
(2) Unsuppress Selected Head Type and set required parameters
If <Property> = "<FeatureName>" then
‘set <FeatureName> IsActive property to true
‘set required dimensional properties
‘set Part Number Prefix, optional
‘set Part Description Text, optional
ElseIf … then
…
ElseIf … then
…
End If
This concludes the Head Development tutorial. In Part Three, we will design
the Shell.
Page 12 of 13
iLogic Code
End If
iProperties.Value("Project", "Part Number") = PNP & OD & THK
iProperties.Value("Project", "Description") = "HEAD " & PDT & " " &
OD & Chr(34) & " x " & THK & Chr(34)
Page 13 of 13