3dwannab Posted 7 hours ago Posted 7 hours ago Hi all, Here's a function that doesn't work to set the plot styles for all open drawings. Is there something I'm missing? (defun set-pstyles (showBool / app docs orgDoc) (setq showBool (if showBool :vlax-true :vlax-false)) (setq app (vlax-get-acad-object)) (setq docs (vla-get-Documents app)) (setq orgDoc (vla-get-ActiveDocument app)) ; store the original (vlax-for d docs (vla-Activate d) (vla-put-ShowPlotStyles (vla-get-ActiveLayout d) showBool) (vla-Regen d acActiveViewport) ) (vla-Activate orgDoc) ) (set-pstyles T) ; (set-pstyles nil) Quote
Steven P Posted 5 hours ago Posted 5 hours ago So where is it going wrong? Is it switching between drawings or just switching to one drawing and then stopping? Quote
mhupp Posted 1 hour ago Posted 1 hour ago 6 hours ago, 3dwannab said: Is there something I'm missing? AutoCAD doesn't like multiple drawings. you will either have to do scripts or maybe vl-propagate ? Quote
Recommended Posts
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.