I want to write a macro that automatically creates a tube function

Hello, the goal, is from a sketch (skeleton made of lines), to build a tubular chassis.

I wish the sketch was present on the screen but not active

1) Preselect 1 line and 1 point, by graphic selection and launch the macro.

The macro must then create the plan, use a predefined sketch in the macro, the user enters the important dimensions, the macro creates the revol

or 2) it is the macro that asks the user to select the line and the point by graphic selection

I achieve a certain result by memorizing the actions in a macro and modifying the macro with each build,

My question to start with would be how to recall in the macro the line and the preset point

Thank you

Hello 

The cross-section and thickness are defined according to the sketch??? Will the macro need to have a function to choose the sketch???

Via this welded construction it's exactly the same principle

You create your sketch which gives a wireframe of your construction 

You select lines assign them a NE profile sketch via your personal preference library

and regulates the connections to the nodes of these dis-tubes

@+

 

3 Likes

Good lour and thank you for your interest,

For "cobra": the sketch  of a rectangle is integrated into the macro, the dimensions are requested during the macro.

I know how to do that, but how do I get the name of the pre-selected point and line ?

There is less creativity, but in the meantime I will test what "gt22" offers

Hello

Thanks to gt 22,  the welded construction meets 100% my need.

For other macros, I still need to retrieve the names of the pre-selected elements in the sketch.

I'm going to do another specific tutorial.

See you soon

1 Like

What is this souk

I am told that my answer has been defined as the best answer

You helped reynald.marinpache, a member of Lynkoa, by correctly answering his question I want to write a macro that automatically creates a tube function.

November 9, 2016 - 08:51 AM

and that's not my poster answer since 1 minute later 

NOTIFICATIONDATE

Your answer to the question I want to write a macro that automatically creates a tube function. has changed its status

November 9, 2016 - 08:52 AM

Nothing to understand ;-(

it's getting worse and worse and on this one completely unjustified since it doesn't answer the question at all it asks another one

@+

1 Like

Hello

I must have made a wrong maneuver? that now my question appears 2 times

Excuse me

1 Like

and well try to rectify for the good readability of the forum

and for your question in duplicate delete where creates another question 

or ask the comunity manager to fix the error ;-)

@+

Hello

And thank you to you 2 for the -1. I don't even understand why???

1 Like

Hi @ Cobra........... I put you -1

since in no case is the answer presented as better

solves the problem posed

I also put you -1 for the same reason that you put it on me...

@ Cobra have you read the entire communication thread

I find for my part coherent my approach

but hey you don't seem to agree

Do you need a point? ;-)

No, not at all!!! For the pts.... For my part, I asked a question for the macro and I didn't give myself the pts in any way and moreover it should have been the questioner who should have had the -1s because my question doesn't solve his problem in any way. If I had answered anything I would have understood; but there it was just a question to better understand her need.... And the worst thing is that the one who validated me puts me -1.....