Print Page | Close Window

Autolisp error message

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11624
Printed Date: 21.Apr.2026 at 06:26


Topic: Autolisp error message
Posted By: Cadman2014
Subject: Autolisp error message
Date Posted: 03.Feb.2016 at 19:09
I am getting an error message on a routine I am writing can anyone tell me where I am going wrong?
(defun c:STUD16 ( )
(setq PT1 (getpoint "\nPick start of wall....."))
(setq EPT (getpoint "\nPick end of wall....."))    I get error: bad argument type: 2D/3D point: nil  here
(setq Wallth (distance spt ept));length of wall
(setq Ceilinghgt 96.0)
(setq UnflrBeamhgt (+ Ceilinghgt 0.5));Gyproc thickness 0.5 off floor.
(setq Width 3.5)
I have tried localised variables and unlocalised still same error message?
If I replace the "getpoint" functions with actual start point (0,0,0) the program works fine.
Thanks



Print Page | Close Window