Autodesk Inventor iLogic code for adding dimensions automatically

Autodesk Inventor iLogic code for adding dimensions automatically

nuwul
Advocate Advocate
944 Views
3 Replies
Message 1 of 4

Autodesk Inventor iLogic code for adding dimensions automatically

nuwul
Advocate
Advocate

Hi. Is there a way to automatically adding dimensions in Inventor drawing using iLogic? a code which is similar like Retrieve Dimension but...you know... much better function since we have iLogic in Inventor? 

 

i read other posts in the forum, but most of it using VB code which i am totally not familiar with. Try to just copy & paste the code in the rules editor but its not working (only for me). maybe there's a parameter or code that not yet included.

 

is there an easy code which i can just copy & paste into the rules?

even if it is a VB code, can anyone suggest what should i do to make it work?

 

Thanks

0 Likes
Accepted solutions (1)
945 Views
3 Replies
Replies (3)
Message 2 of 4

Jef_E
Collaborator
Collaborator

I think no code will ever be copy paste & then just let it work.. creating dimensions is used in compliance with attributes (i think, i'm also fairly new to this).

But I guess it could work from iLogic.

 

Here's my take on how this works..

 

Imagine you have a rectangle box where the two parallel sides each have a attribute called A & B. Then you will add a dimension with code from edge A to edge B.

 

I hope that this is correct? If not please correct me!



Please kudo if this post was helpfull
Please accept as solution if your problem was solved

Inventor 2014 SP2
0 Likes
Message 3 of 4

nuwul
Advocate
Advocate

Jef_E - do you mean insert the dimension first then replace value to any alphabet as identifier. then in ilogic rules, use that to show correct value once run the rules?

 

my situation is like this... let say if i have a standard part A ( a rectangle box). after creating the model, i would like to add all dimensions (linear &radius) of the model into the drawing. is it possible to add it all using ilogic?

0 Likes
Message 4 of 4

MechMachineMan
Advisor
Advisor
Accepted solution
Not without writing a huge program with a complicated algorithm.

How would the program know which 2 points you want to dimension between out of ALL of the possible points on the drawing?

It's a very complicated process which is why it is often left to draftsmen to dimension drawings.

--------------------------------------
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