Sunday, April 3, 2005

AutoCAD 2006 and image frames

AutoCAD 2006 made a change to the command IMAGEFRAME. Before it could be On or Off. To display and plot the images or not. Now there are three states 0, 1 or 2 so you can show the image but not having it plotted. This command is saving the value in the drawing in the dictionary ACAD_IMAGE_VARS. Observere that AutoCAD 2006 has three states now 0, 1 or 2 but the dictionary value is 0, 1 or 3 A simple way to retrieve the value is:
(defun imageframe ()
  (setq dict (dictsearch (namedobjdict) "ACAD_IMAGE_VARS"))
  (if (not dict) 
    0 
    (cdr (assoc 70 dict))
  ) 
)

No comments:

Post a Comment

Some of the latest blog posts

Subscribe to RSS headline updates from:
Powered by FeedBurner

Contact Us | About JTB World | Website General Terms of Use | Privacy Policy
^ Top of page

© 2004- JTB World. All rights reserved.