Plot style table
Plot style table
(OP)
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
Thanks
C.F. Reynolds





RE: Plot style table
;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)
))
RE: Plot style table
I'll work with this and let you know the results.
C. Reynolds
RE: Plot style table
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.
RE: Plot style table