×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Plot style table

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

RE: Plot style table

;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)
))

RE: Plot style table

(OP)
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

RE: Plot style table

(OP)
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.

RE: Plot style table

Well done. Maybe the results can become a FAQ useful to us all.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources