• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

insert a regular set of points on a polyline

  • Thread starter Thread starter Sandra_ME30
  • Start date Start date

Sandra_ME30

Guest
bitcad 15.12.15 16:39

Hello.
would you tell me how to insert a regular set of points on a polyline?
I do not need to use the autocad divide command as the command marks a point with a prefixed step. instead in an external program calculation of the points that I then have to mark on the polylinea. being a large number of points, I wanted to automate the system by providing a list to autocad. supposed to have a polylinea, with irregular pattern, I would like to score a first point 10 meters from the beginning, then 53 meters, 123 meters, 131 etc..
 
sadan 17:29

with the standard controls of autocad you don't make it... you need to make a program lisp or vba
 
bitcad 15.12.15 17:49

I know, in fact, I hope some luminaires of lisp can give me some useful advice.
 
god 16.12.15 12:25
originally written by bitcad view message
Hello.
would you tell me how to insert a regular set of points on a polyline?
I do not need to use the autocad divide command as the command marks a point with a prefixed step. instead in an external program calculation of the points that I then have to mark on the polylinea. being a large number of points, I wanted to automate the system by providing a list to autocad. supposed to have a polylinea, with irregular pattern, I would like to score a first point 10 meters from the beginning, then 53 meters, 123 meters, 131 etc..
If you agree to put a circle instead of the point and specify the distances once at a time you can use my stad.lsp
find it at the end of this page http://www.domenicoieva.com/alisp.htm
 
rpor66 16.12.15 14:44

create the listpt variable containing the list of partial distances, I added an example in the attached file.
through the dislistapt command, select polylinea and the points will be drawn from the beginning of the polylinea itself.

bye
 
bitcad 18.12.15 10:03

rpor66 thanks endless for the solution, it works perfectly. I noticed it works with any object.
thanks also because I discovered through its code other functions made available to autodesk without having to go mad in the mean of a database cad.
 
from command line (the one below on the autocad scheme) you must write:
(loading)
and press forward.
you will be answered:
c: slistapt

If so it is not, it means that you did not find the file, then you have to put it in a folder between those recognized by autocad or create a folder in a "comfort" place for e.g.:\mieilisp, put the file in it, then open the autocad options (right mouse button, last command at the bottom of the list, or type command line options), then click on the file folder and click next to " awards then apply ok go out and go back to autocad. Now that folder is recognized by autocad, so the lisp you put in it you can upload it with a (load"programname") and launch them.
to launch a lisp you must type the name that appears to you after the c:, in response to loading: in the previous example you must type dislistapt.
the command to type for launch is what appears after (defun c:...
then opening the lisp with notes block, you will see what is the command to use.
if performing the command you do not see the points appear on the selected polyline, it is only because the points are a dot and not a crucible: try to change point style (from command line type pdmode and value 2 or 3).
 
thanks "x11start"
the problem is another, I can load in autocad the lisp, but then after the selection of the requested polylinea I get the following message: error: no function definition: vlax-ename->vla-object
 
Unfortunately I'm not experienced vlax commands.... (!), so I can't answer. . .
is the first line (vl-load-com) present? without that vl commands... they don't work.
You have complete autocad, don't autocad lt, do you? Lisp does not work on lt.
I'm sorry, but the more I can't tell you...
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
ciao
Back
Top