Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Automated dimension in ilogic?

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
3199 Views, 7 Replies

Automated dimension in ilogic?

Hey buddies:

I am mechanical drawing and search a better way for the drawing generation. I have to learn some of VBA (or VBS?) for use Ilogic rules. My questions are:

 

1.- How learn or search more easily and faster the inventor objects for drawings and how to use this objects, undestanding the relationship between its function names and another properties for writing the correct mode in VB? I know some of VB buti see that the library objects from Inventor are "a lot of stuff".

 

2.- Is there a rule that can get, automatically, the centerlines from a drawing, when the drawings is generated in a idw file? (10 drawing in one idw file ).

 

thanks

 

Intel i7 2630 processor

6 Gb Ram

Nvidia GT350

7 REPLIES 7
Message 2 of 8
Vladimir.Ananyev
in reply to: Anonymous

This post is a good start point to learn drawing automation:

http://modthemachine.typepad.com/my_weblog/2009/10/drawing-automation.html

Cheers,


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Message 3 of 8
mrattray
in reply to: Anonymous

You might benefit from a perusal of this thread: http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/iLogic-Coding-to-Create-Automated-Draw...

Mike (not Matt) Rattray

Message 4 of 8
Anonymous
in reply to: mrattray

Thank you guys for the help. 

 

I already read some of that and it's very interesting. However, if anybody could be more exactly (and example) in the theme about understand how to use the PROGRAMIMING HELP and how yo apply (and to assembly these words in code VB) in a particular case. I think that with a example its be very instructive. Any example. But remember... how to use and mixing these "word codes" ( for example: ActveSheet.Sheet.Update or ActiveSheet.View, etc, etc, etc) I don't know how harded be this but if someone can be explaint this point iI would be very grateful for that help.

 

one of this days upload a part for a more especific question.

 

Thank you.

 

Message 5 of 8
xiaodong_liang
in reply to: Anonymous

Hi novi_dan,

 

I am not sure how far you have walked with Inventor API, but I'd recommend you take a look at the basic tutorials we have delivered. They are titled with "Introductory Inventor API_Module ***" . You can download here.

 

http://adndevblog.typepad.com/manufacturing/2013/05/api-webcast-archive.html

 

 

particually, for drawing document, the module is:

 

Introductory Inventor API_Module 7

 

hope this helps you to implement your project.

 

Message 6 of 8
ChrisAtherton
in reply to: Anonymous

Don't know if it will help anyone ... But here is a blog post showing one method of automating drawing dims: http://www.symetri.co.uk/blog/details/automating-dimensions-with-ilogic
Chris Atherton
IEng MIMechE BEng Hons
Design Automation Services Manager | Symetri
https://uk.linkedin.com/in/chrissoathe
Message 7 of 8
HvHelden
in reply to: ChrisAtherton

Hello all!

 

On my search for a useful method to place dimensions with iLogic, i found this tread. The method of Chris Atherton with Attributes sounds great for me, so i take that way. Now, i have have to change some lines in the rules, because in my assembly is one part that would be replaced by other parts (approx. 100 difference parts, all with same type of face on one end, and the dimension must attatch to that face (=edge on drawing view)).

 

So i think, i must place the attributes on each of the 100 different parts, and in the iLogic rule: search for part-attributes of the assembly of the the drawingview. (and i think that works for now).

But then, in the rule it became an error after the line with messagebox (wich i use for searching the line with the error by moving the messagebox downwards)

 

Can anybody see wat's wrong with my change in the rules?

I think its possible and a VERY useful type of programming the dimensions, but i have a little bug.

 

Any help is much appreciated!

 

Greets,

HvH

 

Message 8 of 8
kevinDMTWZ
in reply to: ChrisAtherton

Hi Chris, Just watched your blog post on automating dimensioning - really interesting andw ant to give it a go myself for a project I'm working on. Would it be possible to get a link to the ilogic code you use in the tutorial as there isn't one on the post itself.

 

May Thanks!

 

Kevin

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report