AutoCAD/Methods

Advertisement


Question
Which method lets you retrieve the value of an AutoCAD system variable?
What is the variable type returned by the GetPoint Method?
I am looking for these answers for notes and cannot find them.
Thank you!

Answer
Your first question can be addressed using core commands like SETVAR.  But your second question looks like a LISP issue.  So, I'm going to assume your first question is a LISP issue as well.

To retrive the value of an AutoCAD system variable in LISP:
(getvar "osmode") Getvar is the command and the argument is a string that matches the system variables supplied by Autodesk.

Getpoint returns a list of coordinates for X, Y, and Z.  This list of three coordinates make up a point that is relative to 0,0,0 in the current UCS.

Bill DeShawn
http://my.sterling.net/~bdeshawn

AutoCAD

All Answers


Answers by Expert:


Ask Experts

Volunteer


Bill DeShawn

Expertise

I can address all 2-D questions and some 3-D questions. I do programming in AutoLISP if it doesn`t involve solid modeling. I can also address menu customization issues and can help you find answers to questions I can`t answer by taking your question directly to Autodesk via their newsgroups.

Experience

I used to do electronic and mechanical design for a flat panel monitor manufacturer, and now I do architectural drafting for an architect. I did and do AutoLISP and menu customization and take pride in making my lisp routines to do the work exactly the way the client likes them done.

Publications
I had a routine published in CADENCE magazine (no longer in publication and taken over by CADALYST). Some of my routines are published on my website at http://my.sterling.net/~bdeshawn

©2012 About.com, a part of The New York Times Company. All rights reserved.