Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Plot style table 1

Status
Not open for further replies.

ChasRey

Civil/Environmental
Dec 21, 2001
5
Is there a way to access plot style names within a (STB based)drawing, similar to using TBLSEARCH for blocks, text styles, etc? This is to test a drawing for associated plot styles so that a plot style can be created (with the routine) if it does not exist.
Thanks
C.F. Reynolds
 
Replies continue below

Recommended for you

;To recover plot style names:
;They are not in Tables but hidden in dictionary objects!
;Pretty unintuitive of Autocad this. Took me a while to locate!
;Here is how to start but I did not work it out to the actual style names.
;please let us know if you manage to take it further

(defun C:plotdict()
(setq myplotdict (cdr (assoc -1 (dictsearch (namedobjdict) "ACAD_PLOTSTYLENAME"))))
(while (setq temp (dictnext myplotdict ) )
(print temp)
))
 
Much thanks for this information. I doubt, being the Lisp duffer that I am, that I would have came upon this answer. I was expecting something in the registry, accessible only by VisualLisp, or something of that nature.
I'll work with this and let you know the results.
C. Reynolds
 
To:tigrek
Re:plotstyle code

I managed to use your information to concoct at least a basic test for specified STB files in a drawing. I'll work more on it to come up with a solution a bit less awkward than I've got.
Thanks again.
 
Well done. Maybe the results can become a FAQ useful to us all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor