Display full version of the post: Autolisp error message

Cadman2014
03.02.2016, 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