Macro to draw connecting lines between the Project Geometry lines

Macro to draw connecting lines between the Project Geometry lines

Anonymous
Not applicable
692 Views
5 Replies
Message 1 of 6

Macro to draw connecting lines between the Project Geometry lines

Anonymous
Not applicable

Hi All,

 

I am Harish, working has a design engineer and using Autodesk Inventor from past 3 years.

I am very glad to be a member of Autodesk Community, hope I will gain much more knowledge in Inventor by the experts in our community.

 

Regarding my post, I am working in a project, where in many cases we need to project the geometry and connect the profile with line (for closed loop) and remove the material by cutout in sheet metal.

My request is, is it possible to create a macro for drawing lines in sketch (Lines in Green in attached image) to connect the project geometries (Lines in Blue in attached image).

 

Kindly help me on this... this process is consuming lots of time in my project. Let me know if any more details required on the same for the solution.

 

Thanks,

Harish

 

 

0 Likes
693 Views
5 Replies
Replies (5)
Message 2 of 6

cbenner
Mentor
Mentor

@Anonymous

 

First of all, welcome to the Community!  

 

In your image:  Why draw a small line segment between the projected segments, when you can draw three lines from the beginning to the end of the chain?  Make your projected segments construction lines and use them as guide lines only to create the sketch.  Also. is this just an example, because this does not create a closed loop.

 

There may be a way to automate this with ilogic, but I have no expertise in that so I will let others give their opinions.

 

@Curtis_Waguespack ?

0 Likes
Message 3 of 6

Curtis_Waguespack
Consultant
Consultant

Hi hmanoharBYAYC and cbenner,

 

I'm going to defer to the experts on the Inventor Customization forum as this will require some advanced knowledge of the sketch tools API, which I don't do a great deal with:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

 

I've asked the DA to move this topic to that forum where it will get a better audience for the task.

 

Looks like an interesting challenge though!

 

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

 

 

EESignature

0 Likes
Message 4 of 6

johnsonshiue
Community Manager
Community Manager

Hi! I am not an API expert either. Here is what I find out from Inventor Customization forum. Below is a Macro to extract point coordinates and save to an Excel file.

 

https://forums.autodesk.com/t5/inventor-customization/unable-to-export-3d-point-co-ordinates-data-to...

 

After that, you can simply use Import Point workflow to create the lines automatically (assuming the points are in the right order). Create a 2D Sketch -> Import Point -> set Import Option to Create Lines.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 5 of 6

Anonymous
Not applicable

 

Hello sir,

 

Thank you for your suggestion..

 

Please find the attached image for more clarity on my macro requirement. ( Need macro to draw lines from one end of projected line to another).

 

Let me know if a VBA code can be written to this case.

 

Thank you..

 

Harish

 

 

0 Likes
Message 6 of 6

Anonymous
Not applicable

Hello Sir,

 

 

Thank you for your response and taking my request to next level.

Please find pic with more clarity on my requirement posted to Mr. Johnson Shiu reply.

 

Let me know your valuable suggestion..

 

Thank you..

Harish

 

0 Likes