Does anyone know of a lisp routine similar to mline, but allows you to draw 3 parallel lines offset different distances from each other?
Solved! Go to Solution.
Solved by Shneuph. Go to Solution.
Solved by hak_vz. Go to Solution.
@mpa-la ,
I can't think of one immediately, but I'm sure there is something similar on the forum somewhere.
What is wrong with using MLINE though? Can you give us more detail as to why you do not want to use MLINE?
Best,
~DD
Here is my code written to create set of parallel colored wires that I can modify if this is what you are looking for.
It creates something like this. Type CPL to run, and INIT to define offset. First create a polyline you will offset to a side.
Miljenko Hatlak
Yah, it's called MLINE. lol
Look at MLSTYLE
2 3 4 how many ?
https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiline-style/td-p/97966... got to post 16
@Sea-Haven wrote:
2 3 4 how many ?
[See the Topic title, and the description in Message 1.]
I would also make an MLINE, and then if it needs to be separate Lines, EXPLODE it.
@Kent1Cooper wrote:....
I would also make an MLINE, and then if it needs to be separate Lines, EXPLODE it.
That gives you the chance to have different spacings as requested in Message 1, whereas the code at Message 3 uses equal spacings. And without separate command definitions, you can draw it along either edge line or by the middle of the overall width. And you can have different linetypes and/or colors for the 3 if you like.
But it has the disadvantage that it can't involve arc segments. If you need those, something that has you draw a Polyline and then Offsets it twice would probably be needed. If that's how you want to go, would you always want to draw the middle one and have it Offset to both sides by different amounts, or would you want to draw one edge and have it Offset to the same side twice by different amounts?
Hey everybody, thanks for the input! A friend asked me to help him find a lisp that would do what I asked. I have only ever used mline to do two lines, I didn't even realize it could do more.
@mpa-la ,
Multilines can draw many lines in parallel, and you can even use custom line types to get some cool effects if necessary. I would suggest to you (or your friend) to read into them more and play with creating styles a bit before referring to a Lisp. Here's some more info:
About Multilines:
To Create a Multiline Style:
To Modify Multilines:
Best,
~DD
Like Kent you can have a multi offset pline, code is already out there already eg type 1,2,-1,-2 Four offsets are done or more as its csv input method, can be 1 or 8 etc. It is optional to delete the original pline as well.
Can't find what you're looking for? Ask the community or share your knowledge.