Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LISP or TAG leader to invoke block text

3 REPLIES 3
Reply
Message 1 of 4
ACADManager
711 Views, 3 Replies

LISP or TAG leader to invoke block text

Hello,

I want to be able to add a leader or tage that will invoke text/description from a block. For instance, if I have a block that shows a 6x6 post with a dashed rec footing, I want to be able to insert the block, do a leader and invoke a custom description embedded in a block, something like: "P.T. 6x6 POST W/ CONC. FOOTING"

 

Is this possible?

 

Muchos Thanks!

 

RT

3 REPLIES 3
Message 2 of 4
dbroad
in reply to: ACADManager

Yes. It is possible. Are you expecting a completed program or help programming it yourself?

 

The block description is accessible to lisp or vba programs as the comments property.  It is a property of the block definition.  This should get you started.

 

(defun getdesc (bname )
  (if (tblsearch "block" bname)
    (vla-get-comments
      (vla-item	(vla-get-blocks
		  (vla-get-activedocument
		    (vlax-get-acad-object)
		  ))
		bname
      ))))

 

Architect, Registered NC, VA, SC, & GA.
Message 3 of 4
ACADManager
in reply to: dbroad

I don't know LSP or VBA programming other than simple script routines etc...

What I want to accomplish requires a program?

I use Autocad Architecture, I thought it would be similar to tagging AEC doors or windows

Thanks

Raul
Message 4 of 4
dbroad
in reply to: ACADManager

If you use AutoCAD Architecture, put your blocks into mvblocks and then use the AEC tagging system.  ACA can really tag anything but it works best if the blocks you place are mvblocks.

Architect, Registered NC, VA, SC, & GA.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost