ccowgill Posted March 25, 2011 Posted March 25, 2011 Does anyone know how to create extra plug-ins for the standards checker. Currently AutoCAD only ships with 4 plug-ins: Layers Dimstyles Textstyles and linetypes I'd like to add a plugin at our office to also check table styles, multileader styles, and possibly other things such as making sure our title blocks are at the proper location, or that nothing is drawn on the layer 0 (unless in a block). Quote
SLW210 Posted March 25, 2011 Posted March 25, 2011 If anyone has created any new plug-ins, they are keeping them to themselves. I have seen several sites discussing how to create them, so you are not alone in wanting different plug-ins. If you or someone you know can do .NET try this article....AutoCAD Standards Checker Plug-In Quote
BIGAL Posted March 28, 2011 Posted March 28, 2011 (edited) Regarding move your title blocks I take it you mean in layout tabs this is a work in progress but it does just that moves title block. Needs a couple of extras added will do today if I am lucky. (PROMPT ".....now moving dwgs....") (setq doc (vla-get-activedocument (vlax-get-acad-object))) (vlax-for lay (vla-get-Layouts doc) (setq plotabs (cons (vla-get-name lay) plotabs)) ) (setq plottablist (acad_strlsort plotabs)) (setq len (length plottablist)) (setvar "osmode" 0) (setq K 0) (repeat len (setq name (nth K plottablist)) (princ name) (if (/= name "Model") (progn (setvar "ctab" name) (command "zoom" "E") (setq minxy (getvar "extmin")) (setq maxxy (getvar "extmax")) (SETQ X (car minxy)) (SETQ y (cadr minxy)) (setq en (entsel "Pick Title Block:")) (setq ed (entget (car en))) (setq ss (ssget "_X" (list (cons 0 "INSERT") (cons 410 name) (cons 2 (cdr (assoc 2 ed))) ) )) (setq n (sslength ss)) (setq en (ssname ss 0)) (setq el (entget en)) (setq xy (assoc 10 el)) ; insertion pt (command "move" "w" minxy maxxy "" xy "0,0") (command "zoom" "E") ) ;end progn ) ; end if (setq K (+ K 1)) (setq ss '()) ) ; end repeat (princ) Edited March 29, 2011 by BIGAL version 2 Quote
ccowgill Posted March 28, 2011 Author Posted March 28, 2011 not so much, it was more of an example. Currently I have built into our plotting routine a check that will pop up a warning message if the title block isnt at 0,0, or on layer 0. That way, it wont autoplot to file if the drawing is in the wrong location (nothing more annoying than blank plots because you assume someone did it correctly). 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.