PDA

View Full Version : Storing point data in title block attributes


Mantisguy
2008-11-27, 03:14 PM
I have a number of client title blocks that I am attempting to customize under one lisp program. I wish to store the information in an attribute within a block which seems simple enough, but now when I retrieve it I run into extreme difficulty trying to get the data set as two points for my viewport window. I have tried placing it as a list, but upon retrieval it is a string, not a list of values. Using "CAR" etc doesn't seem to work on getting the data either. Any ideas?

kennet.sjoberg
2008-11-29, 03:55 PM
. . . but upon retrieval it is a string, not a list of values. . . . Any ideas?

Rewrite the string to a list.

: ) Happy Computing !

kennet

aaronic_abacus
2008-11-30, 05:01 AM
Post your code so we can help.

irneb
2008-12-01, 06:14 AM
To convert point data (a list of reals) to a string to place in an attribute as text, I'd suggest using (vl-prin1-to-string pt) where pt is the point data. Then you can use the (read str) function to convert it back to a list of reals.