SAJJAD Posted September 22, 2019 Share Posted September 22, 2019 HI I HAVE THE SAME PROBLEM BUT I WANT TO HAVE ALL MY BLOCK'S NAMES BESIDE THEM(AFTER SELECTING THEM USING QSELECT) CAN U TELL ME HOW TO DO THIS? Quote Link to comment Share on other sites More sharing options...
asos2000 Posted October 1, 2019 Share Posted October 1, 2019 This Lisp create a text with the block name in down right corner BlockName.lsp Quote Link to comment Share on other sites More sharing options...
Rain0923 Posted March 22, 2021 Share Posted March 22, 2021 Hi everyone, this code for a block How can I get multiple block name show on the block insertion point automotive? Everyone help Quote Link to comment Share on other sites More sharing options...
asos2000 Posted March 22, 2021 Share Posted March 22, 2021 This lisp do that Quote Link to comment Share on other sites More sharing options...
mhupp Posted March 23, 2021 Share Posted March 23, 2021 (edited) Here is what i came up with about a year ago. Change the TXTHT to what you need ;;;----------------------------------------------------- ;;; LABLE BLOCKS BY NAME MIDPOINT OF BOUNDINB BOX (defun C:NBLK (/ SS i nn obj LL UR MPT TXTHT) (vl-load-com) (setq SS (ssget '((0 . "INSERT")))) (setq i 0) (command "_.Undo" "Be") (repeat (sslength ss) (setq nn (cdr (assoc 2 (entget (ssname ss i))))) (setq obj (vlax-ename->vla-object (ssname ss i))) (vla-getboundingbox obj 'minpt 'maxpt) (setq LL (vlax-safearray->list minpt) UR (vlax-safearray->list maxpt) ) (setq MPT (polar LL (angle LL UR) (/ (distance LL UR) 2))) (setq TXTHT 0.250) ;;set text height (command ".TEXT" "J" "MC" MPT TXTHT "0" NN) (setq i (1+ i)) ) (command "_.Undo" "E") ) Edited March 24, 2021 by mhupp 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.