iLogic code

iLogic code

Anonymous
Not applicable
362 Views
2 Replies
Message 1 of 3

iLogic code

Anonymous
Not applicable

Hi all,

  I'm a total newbie to iLogic, and I have a question. I use a lot of extrusions to build my models. So to make sure my BOM's are accurate, I must always make sure to completely fill out my description on the project tab of iProperties. This doesn't update automatically, so if I have to change an extruded length of a part, I have to make sure I go back and manually change that field. Is there a way to have iLogic fill out that part of iProperties automatically so that it updates when ever I have to change an extruded part length. I've gotten into the habit of naming my key descriptions for parameters as I create a part. (Length, Width, Height, Thickness, O_D, I_D) and also check the boxes for "Key" and "Export" in the Parameters dialog box. Would it be a good idea to do this in a template file?

     Any and all help is very much appreciated!

                              Thanks,

                                          Frank

0 Likes
363 Views
2 Replies
Replies (2)
Message 2 of 3

MechMachineMan
Advisor
Advisor

Yes, a template would also be a good idea.

 

Also, by using 

 

=<Length>

 

in an iProperty, such as description, it will automatically pull that parameter from the part.

 

You can also string those together, so something like: would work

 

=<Length>X<Width>X<Height> - 44W

 

Would be

 

=12X8X4 - 44W.

 

Although, how they show is up is dependant on how your parameter is formatted under "Custom Property Format".

 


--------------------------------------
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
Message 3 of 3

Curtis_Waguespack
Consultant
Consultant

Hi frank,

 

For existing parts that do not have the formula in them, you can add it to them from the assembly BOM, by usingt eh Create Expression button as shown. This will allow you to force the formula into all of the part files in the assembly.

 

 

 

 

 

The images above are from this link:

http://inventortrenches.blogspot.com/2011/03/understanding-autodesk-inventor-frame.html

 

...which describes using formulas in frame parts for part numbers.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature