I would like to produce a scatter plot. Is there a way to either read in the points from an Excel file, or run a script? I've used a script for drawing a spline, so I'd imagine it's possible to do the same for a scatter plot.
I would like to produce a scatter plot. Is there a way to either read in the points from an Excel file, or run a script? I've used a script for drawing a spline, so I'd imagine it's possible to do the same for a scatter plot.
Hi
Can you please explain "scatter plot" to me as I don't understand what you mean by that phrase.
+
Take a look at the following thread -
Excel X,Y Coordinates -->AutoCad????
Have a good one, Mike
I'm referring to a 2-d plot of x,y data points, with no lines connecting them. Sorry for the confusion.
The info in that past post helps, except that I don't want the lines. I'm guessing the answer is simply using a different header (e.g., "points" instead of "line") at the start of the script file -- so now I just need to find the magic word....
Thanks.
--------------
.......Writing "point" at the start of the file gets the first point plotted, but then the script stops running due to a command error (it is looking for a command on the following line, which is another data point). So it seems I need to re-format the script file, but I'm not sure how yet...
Last edited by ftjaa; 2005-02-03 at 11:17 AM. Reason: new info
Hi
Command ._Point
Also look at the system variable PDMODE (Command ._DDPType)
Have a good one, Mike
HiOriginally Posted by ftjaa
The Point command works differently to the Line command, therefore you will need to adjust the script file accordingly.
Hint - Look at how the line command runs within AutoCAD, then look at how the Point commands runs within AutoCAD.
Have a good one, Mike
Looks like I just missed your message -- see above for the edit to my last message. I'm not sure of how to format the script file so that ACAD will continue reading in the points after the first one.
------------------------------
....... OK, just tried inserting a line w/ "point" after each data-point line in the script file, and that works. I have ~ 2000 data point, though, so this could take awhile. There must be a more efficient method.....
Last edited by ftjaa; 2005-02-03 at 11:31 AM. Reason: new info