CAD Forums


Reply
Thread Tools Display Modes

error: bad argument type: 2D/3D point: nil

 
coachball8
Guest
Posts: n/a
 
      03-24-2005
P1 is established by user selection, then
(setq locw (getreal "\nEnter location in from lower left corner: "))
(setq locd (getreal "\nEnter location back from lower left corner: "))
(setq d6 (* locw 12)) ;convert inches to feet
(setq d7 (* locd 12)) ;convert inches to feet
(setq insn(getpoint(polar p1(DTR 0.0)d6))) ;establish point in 'x coord
(setq sp(getpoint(polar d6(DTR 90.0)d7))) ;establish actual start point
This returns the error "; error: bad argument type: 2D/3D point: nil".
Can someone tell me what I'm doing wrong? TIA
 
Reply With Quote
 
 
 
 
ECCAD
Guest
Posts: n/a
 
      03-24-2005
Do you have the DTR function loaded ?
If not, just include these:
;; Degrees to Radians, Radians to Degrees
(defun dtr (d) (* pi (/ d 180.0)))
(defun rtd (r) (* 180.0 (/ r pi)))

Bob
 
Reply With Quote
 
 
 
 
coachball8
Guest
Posts: n/a
 
      03-24-2005
Yes I do. It's loaded at the start. Thanks for the reply. Does it look like this should work?
 
Reply With Quote
 
ECCAD
Guest
Posts: n/a
 
      03-24-2005
Look at P1 (2d point, with x,y,z),
in this line:
(setq insn(getpoint(polar p1(DTR 0.0)d6)))

then check d6 in this line:
(setq sp(getpoint(polar d6(DTR 90.0)d7)))

Maybe d6 needs to be a (list..
Hint
Bob
 
Reply With Quote
 
coachball8
Guest
Posts: n/a
 
      03-24-2005
I think I'm confused.........Do I not need to establish a point in the 0 coord at a given distance of d6, then move in the 90 the distance of d7 to locate my starting point? Thanks again.
 
Reply With Quote
 
ECCAD
Guest
Posts: n/a
 
      03-24-2005
Well,
I don't know - depends on what you are trying to do.
But, you need a (point) not a 'distance' in this line:
(setq sp(getpoint(polar d6(DTR 90.0)d7)))
The d6 has (so far) been set to a 'real', not a point.
You can 'create' the point list like:
(setq P2 (list d6 d7 0.0))
Then use P2 like:
(setq sp(getpoint(polar P2(DTR 90.0)d7)))

Bob
 
Reply With Quote
 
Joe Burke
Guest
Posts: n/a
 
      03-24-2005
Maybe I'm mistaken... but getpoint combined with polar makes no sense on my end.

Joe Burke


> Look at P1 (2d point, with x,y,z),
> in this line:
> (setq insn(getpoint(polar p1(DTR 0.0)d6)))
>
> then check d6 in this line:
> (setq sp(getpoint(polar d6(DTR 90.0)d7)))
>
> Maybe d6 needs to be a (list..
> Hint
> Bob



 
Reply With Quote
 
James Allen
Guest
Posts: n/a
 
      03-24-2005
(polar d6(DTR 90.0)d7); <---d6 should be a point
--
James Allen, EIT
Malicoat-Winslow Engineers, P.C.
Columbia, MO


"coachball8" <(E-Mail Removed)> wrote in message
news:12011314.1111671678074.JavaMail.jive@jiveforu m2.autodesk.com...
> P1 is established by user selection, then
> (setq locw (getreal "\nEnter location in from lower left corner: "))
> (setq locd (getreal "\nEnter location back from lower left corner: "))
> (setq d6 (* locw 12)) ;convert inches to feet
> (setq d7 (* locd 12)) ;convert inches to feet
> (setq insn(getpoint(polar p1(DTR 0.0)d6))) ;establish point in 'x coord
> (setq sp(getpoint(polar d6(DTR 90.0)d7))) ;establish actual start point
> This returns the error "; error: bad argument type: 2D/3D point: nil".
> Can someone tell me what I'm doing wrong? TIA



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
*Error* ddGetObjReadPath: argument #1 should be a ddUserType rover8898 Cadence 1 12-31-2008 09:40 AM
"*Error* length: argument must be a list or an array mekhail Cadence 4 06-09-2005 11:10 PM
; error: bad argument type: output-streamp: todbarrett AutoCAD Customization 3 02-10-2005 12:14 AM
error: bad argument value Adesu AutoCAD Customization 4 05-26-2004 03:53 AM
Error, bad arguement type: 2d/3d point pi AutoCAD Customization 1 07-19-2003 12:29 PM


All times are GMT. The time now is 07:54 AM.