Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Script Problem

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
363 Views, 6 Replies

Script Problem

Ok, I tried to make a simple upside down parabola in CAD by the equation y=-x^2. So I follow the intructions and did all the stuff in Excel and Word and the script file even ran, but it comes out different every time I run it. Sometimes it will not pass through the origin even though there is a point 0,0 in it or sometimes it seems like it will just skip points all together. Here is a condensed version of what I have:

pline
-5,-25
-4,-16
-3.-9
-2.-4
-1,-1
0,0
1,1
2,-4
3,-9
4,-16
5,-25

Does anyone have any ideas about what may be going on? Please help.

Thanks
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: Anonymous

First, try posting in the Customization group, where things like scripts and
LISP are discussed on a regular basis.

Second, no one will be able to offer a lot of help unless you post at least
the important portions of your script.
___

"knaq1553" wrote in message
news:f1a35c5.-1@WebX.maYIadrTaRb...
> Ok, I wanted to draw a pline using the equation y=-x^2, so I followed the
instructions and used excel and then word to create the script file and that
is all fine, but when I run it, I can tell that the lines are not where they
are supposed to be. No line even passes through the origin even though when
I look at the script file in the command line, there is a 0,0 point. Plus, I
thought it should look like a mirror image, but some lines are longer than
others, and they dont end together. Can anyone please help?
> Thnaks
>
Message 3 of 7
H.vanZeeland
in reply to: Anonymous

coordinates separate by comma

and osnap set to none (osmode 0)
Message 4 of 7
GvHerk
in reply to: Anonymous

can you give us de scr-file
Message 5 of 7
Anonymous
in reply to: Anonymous

Here is my script file. I would think it is pretty simple.
Message 6 of 7
Anonymous
in reply to: Anonymous

Well, that did it, thank you very much. What about osnap made it mess up like that, I dont understand. If it has all the points it seems like osnap shoulnd't matter. Can you explain?
Message 7 of 7
H.vanZeeland
in reply to: Anonymous

with no osnap to 0

use this one

(command "_.pline" "none" "-5,-25""none" "-4,-16" "none" "-3,-9" "none" "-2,-4" "none" "-1,-1" "none" "0,0" "none" "1,-1" "none" "2,-4" "none" "3,-9" "none" "4,-16" "none" "5,-25" "")

for each coordinate you give none witch snaps none

it's a overide of osnap

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Customer Advisory Groups


Autodesk Design & Make Report