Lisp to array one line on a path

Lisp to array one line on a path

Anonymous
Not applicable
2,861 Views
11 Replies
Message 1 of 12

Lisp to array one line on a path

Anonymous
Not applicable

Please,

 

I have a path, polyline with curves and straight lines.

I have one line perpendicular to the path at the beginning of the path.

 

 

I want to put this line at one distance, given by me, of the origin of the path

 

I have cents of distances to introduce because this I need this lisp.

 

Thanks in advance,

 

Luis

0 Likes
2,862 Views
11 Replies
Replies (11)
Message 2 of 12

chriscowgill7373
Advisor
Advisor

Does the ARRAY command with path option not work for you? Can you provide some screenshots of what you want to accomplish?


Christopher T. Cowgill, P.E.

AutoCAD Certified Professional
Civil 3D Certified Professional
Civil 3D 2024 on Windows 10

Please select the Accept as Solution button if my post solves your issue or answers your question.

Message 3 of 12

Anonymous
Not applicable

Hello,

 

Thanks for your reply,

 

Yes work but I have cents of distances to introduce.

 

I only want place the first yellow line one distance given by me from the beginning of the path. If can read the distance from a txt or csv file better.

 

Thank you.

 

Luis

 

teste.jpg

0 Likes
Message 4 of 12

doaiena
Collaborator
Collaborator

You might want to take a look at Alan J. Thompson's "CopyAlongCurve" program.

http://www.cadtutor.net/forum/showthread.php?46309-CopyAlongCurve.LSP-Divide-Measure-Dynamic&highlig...

Message 5 of 12

Anonymous
Not applicable

Many Thanks

 

I tested the lisp you told me.
The "Dynamic" option does what I want, but does not line up perpendicular to the path.

I used the two options align and not align and both did not.

 

What have I done wrong?

 

Luistest1.jpg

0 Likes
Message 6 of 12

doaiena
Collaborator
Collaborator

Could you upload a dwg so that i can test the program in a real world example.

0 Likes
Message 7 of 12

Anonymous
Not applicable

Please, find attached the file.

 

Thanks

 

Luis

 

 

0 Likes
Message 8 of 12

doaiena
Collaborator
Collaborator

It works. First i aligned the line with the Y axis on the WCS and then i used it.

 

Message 9 of 12

Anonymous
Not applicable

Thanks, for your help. Work very well. But,

 

I have cents of distances to introduce and all the time I need to click three times, one for the object, one for the origin and one for the path.

And again, and again 🙂

 

because of this for me, it's better one single lisp that reminds the object and path and asks for the distance, read a txt file. 🙂

 

Is it possible?

 

Sorry for the insistence.

 

 

0 Likes
Message 10 of 12

stevor
Collaborator
Collaborator

For 'reminds the object and path and asks for the distance, read a txt file '

 

1. Show the lisp code that you wish to modify to do that.

 

2. Show an example of the 'txt file' that you wat to read.

 

As a start.

S
0 Likes
Message 11 of 12

Anonymous
Not applicable

@stevor Thank you for your reply

 

I don't have anyone lisp. 🙂

 

The txt file could be sequential, incremental or both.

Please take a look at the attached files.

 

Many thanks,

 

Luis

0 Likes
Message 12 of 12

Anonymous
Not applicable

Dear All,

 

With the "Record" command and option "Stop for the user input" already solve the "problem" regarding "memorize the path an object".

 

But, as I said, I have hundreds of distance to enter and it is very fastidious and time-consuming to manually enter the distances.

 

Because of this, the lisp will be greatly appreciated.

 

Many thanks for all.

 

Luis

0 Likes