🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

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

User: "alpha_21885"
Altair Community Member
Updated by alpha_21885

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.

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "tinh"
    Altair Community Member
    Updated by tinh

    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:


     

    User: "maysam"
    Altair Community Member
    Updated by maysam

    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!