Jump to content

Load Plot Style Names


parkerdepriest

Recommended Posts

I am trying to write a routine to load a new Plot Style Table, and then set a certain Plot Style Name to all layers.

 

Here is the code I use to set the new Plot Style Table, and it works fine:

 

(vla-put-StyleSheet
   (vla-get-ActiveLayout
 	(vla-get-ActiveDocument (vlax-get-acad-object))
   )
   "BCR Plot Style.stb"
 )

 

My problem is that it seems like the Plot Style Names have to be "loaded" manually. When I run

(dictsearch (namedobjdict) "ACAD_PLOTSTYLENAME")

 

it *should* show me the new plot style names, but it doesn't, not until I've gone into the Layer Property Manager and changed a layer to each of the new Plot Style Names once.

 

Please help!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...