iLogic

iLogic

Anonymous
Not applicable
476 Views
6 Replies
Message 1 of 7

iLogic

Anonymous
Not applicable

Hello,

 

I am new to iLogic and how to use it.  I have done some very simple things with it, and I am now looking to do something very complex (to me anyways) and need some help.

 

I have a Cylindrical Part that will have a certain number of "Instances" along the length of the cylinder, and the number of instances is a Unitless User Parameter that I created.  Each Instance will have a Work Plane, Sketch A and Sketch B.  Using the parameters I can create Instance#1 that consists of WorkPlane#1, SketchA#1, and SketchB#1. 

 

I want to create a iLogic Rule that Creates a work plane offset of WorkPlane#1, Names it WorkPlane#2 and copies SketchA#1 and SketchB#1 and renames them SketchA#2 and SketchB#2 respectively.  I want it to continue to do this the total Number of Instances so if I have 43 Instances I will have WorkPlane#43, SketchA#43 and SketchB#43.

 

Thanks!!

0 Likes
477 Views
6 Replies
Replies (6)
Message 2 of 7

LukeDavenport
Collaborator
Collaborator
Hi,
Is there a reason why you can't do this with a normal feature pattern,
controlled by the parameter you mention?
Luke
0 Likes
Message 3 of 7

Anonymous
Not applicable

Yes, because I will have parts that will have different amounts of instances.  One part could have 21 another could have 55, etc.  And I want to have the making of the part be automatic to reduce my workload and the workload of my coworkers.

 

Thanks,

Kyle

0 Likes
Message 4 of 7

Anonymous
Not applicable

Also, this is just the beginning of the part for me.  I am going to have multiple posts in order to create this part.  So it is a little more complex than just workplanes and sketches.

 

 

0 Likes
Message 5 of 7

LukeDavenport
Collaborator
Collaborator
If you want to be able to create different variations of the same part
(based on a parameter that controls the number of feature instances), then
there are lots of options available. You could:

a) create an iPart with a row for each variation. Edit with Excel and you
can easily create an iPart with hundreds of variations.
b) use a master part that you configure (by changing parameter) using
iLogic and then perform a 'Save-As' to a new independent part file if
required.
c) use the 'Place iLogic Component' standard Inventor tool to automatically
create a copy of the part and set the parameter value you need on placement
into an assembly. Due to the limitations with file naming for this I prefer
option b).

Don't complicate it further unless you need to.
HTH, Luke
0 Likes
Message 6 of 7

Anonymous
Not applicable

I am more looking for commands to use in order to do this.  I have not really used iLogic before and I do not have the best understanding of the commands, etc.

 

Thanks!!

0 Likes
Message 7 of 7

MechMachineMan
Advisor
Advisor

That's where the programming help accessible through inventor is great. It outlines the object model, has overview articles, and has samples for many issues.

 

Once you can read and understand the samples as well as learn how to use the resource to find the objects you are looking for, you should be very capable of solving problems yourself.

 

Seeing as 'iLogic' is directly related to vb.net/vba, reading up on those 2 languages will also help you significantly. Googling 'msdn + vba' is a good resource for that, or just google in general.


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes