rodrigo_sjc_sp Posted April 8, 2013 Share Posted April 8, 2013 How to draw a rectangle to make a frame on a block. I already have the information in this block - ssname and entget (setq pline_ent (ssname selpline i)) (setq lis_ent (entget pline_ent)) i try , but not work (setq valor2 (cdr(assoc 10 (entget pline_ent)))) pmin = ???? pmax = ???? (setq oldosmode (getvar "osmode")) (setvar "osmode" 0) (command "_rectangle" "_from" pmin "@3,-3" "_from" pmax "@-3,3") (setvar "osmode" oldosmode) (princ) How to determine the values of Pmin and PMax? Based on the selected block, or have to make a rectangle on the block, like a frame. Thanks Quote Link to comment Share on other sites More sharing options...
marko_ribar Posted April 8, 2013 Share Posted April 8, 2013 Look into (vla-get-boundingbox) function applied to block VLA-Object to obtain pmin and pmax... Quote Link to comment Share on other sites More sharing options...
rodrigo_sjc_sp Posted April 8, 2013 Author Share Posted April 8, 2013 (edited) Marko , Thanks for the tip! I found this Post http://www.cadtutor.net/forum/showthread.php?54046-Bounding-Box-LISP and it worked Thank you Edited April 8, 2013 by rodrigo_sjc_sp Quote Link to comment Share on other sites More sharing options...
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.