Script to create center line for shape tube (Same radius)

alpha_21885
alpha_21885 Altair Community Member
edited September 2022 in Community Q&A

Hello everyone,

 

I am trying to create macro  to extract center lines of surface tube (then create 1D elements) but it works only for simple shape.

For the a bit complex shape, the center lines are not smooth at bending area.

 

Appreciate very much anyone can give some suggestion for this.

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited December 2016

    Hello

    I made it but rarely use

    Suggestion for you is not to use F9 create mid lines, you should create mid line by line drag a radial line along wire path

    line drag does not create a line but create a surf whose one edge is mid line

    in my macro I generate a thin surf (actually zero width) so it is a mid line!

     

    my macro:


     

  • maysam
    maysam Altair Community Member
    edited September 2022
    tinh said:

    Hello

    I made it but rarely use

    Suggestion for you is not to use F9 create mid lines, you should create mid line by line drag a radial line along wire path

    line drag does not create a line but create a surf whose one edge is mid line

    in my macro I generate a thin surf (actually zero width) so it is a mid line!

     

    my macro:


     

    Hi tinh,

    You referred to a script in this response but I only see a YT video.

    Could you please direct me to the script?

    Thanks!

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.