CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 9386
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedAutolisp error message

 Post Reply Post Reply
Author
Cadman2014 View Drop Down
Newbie
Newbie


Joined: 05.Apr.2014
Location: Canada
Using: acad 2008
Status: Offline
Points: 5
Direct Link To This Post Topic: Autolisp error message
    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
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,363 seconds.