how to divide a line into three unequal segments
how to divide a line into three unequal segments
(OP)
I try to divide a line into three unequal segments. The ratio is 0.1, 0.8, 0.1. Is there any way of doing it in one command instead of dividing the line by two times. New lines after the old line is divided.
Since I have to perform this operation on many lines, it will greatly simplify my model construction.
Thanks in advance.





RE: how to divide a line into three unequal segments
RE: how to divide a line into three unequal segments
Thank you for the reply.
I don't know how to write a macro for this. I use APDL. Everytime I divide a line into two lines, the new line will be given a new number. It is not possible to get the line No of many lines. I can not get the line number to write APDL code. "*do loop" is not working for this.
RE: how to divide a line into three unequal segments
RE: how to divide a line into three unequal segments
lsel,none
lsel,s,[original line]
ldiv...
L1=lsnext(0)
L2=lsnext(L1)
and then you know the line numbers of the new lines.
RE: how to divide a line into three unequal segments
thank you for the reply.
Actually, I have more than one hundred lines to divide to three segments. If I don't change the number of the original line, I will get a new number of the new line. Then, I can divide the new line into two.
What does "L1=lsnext(0)" mean? Is there any way I can assign new numbers to the lines after division?