PDA

View Full Version : Routine use to work in ADT 3.3 but no longer works in ADT 2006 - numberp: nil


jyamasaki
2007-03-02, 06:07 PM
I have a lisp routine that I used in ADT33 and have moved up to ADT2006. It no longer works and since I am a beginner at best with lisp I find myself unable to get it to work. My error message is

Command:
Select objects: 1 found

Select objects:
Segment from point: _cen of
to point: _cen of
Divide segment or Space objects <S>: D

How many segments: 5
*Cancel*
bad argument type: numberp: nil

Any help would be appreciated
TIA
John Y.

kennet.sjoberg
2007-03-02, 07:39 PM
It is the copy command that is modified in 2006 to always be used as multiple.
Here is my workaround, add nil last in your copy lines (command "COPY" . . . . . nil )
You have tree of them.

: ) Happy Computing !

kennet

jyamasaki
2007-03-05, 06:31 PM
I tried adding nil to the end of the copy command but still get the same error message.

kennet.sjoberg
2007-03-05, 07:03 PM
I tried adding nil to the end of the copy command but still get the same error message.
OK, when I was debugging the code I did it more readable for me, I even tuned it up and maked it more secure, sorry for all that. The modified code is attached.


Happy Computing !

kennet