What is a way that I can retrieve information about a specific object (specifically a block) within LISP?
What is a way that I can retrieve information about a specific object (specifically a block) within LISP?
Hi,
Have a look at the entget function and DXF codes in the help files for starters. Do you have a specific task in mind? There are a lot of people here that can help.
Tim CrearyS&DDILLIGAF
Dear Jseamons,Originally Posted by jseamons
Try:
Regards, J.AAIJCode:(vl-load-com) (setq BlkName "MyBlockName");Change this (setq ActDoc (vla-get-ActiveDocument (vlax-get-Acad-Object))) (setq BlkCol (vla-get-Blocks ActDoc)) (setq BlkSty (vla-Item BlkCol BlkName)) (setq BlkID (vla-get-ObjectID BlkSty))
See for Tables http://www.cadtutor.net/forum/viewto...ghlight=hofcad
[ Moderator Action = ON ] What are [ CODE ] tags... [ Moderator Action = OFF ]
Last edited by j.aaij; 2006-06-02 at 06:07 AM. Reason: [CODE] tags added, see moderator comment
Basically I am trying to get text attributes entered in a block and then use it in another block with a field. That way the second or third or so on is linked to the initial block. I have tried some of the suggestions but I get confused with some of the code. I haven't been able to spend the time I would like to figure it out yet but I thought I would try this great resource.
You may use nentselOriginally Posted by jseamons
(setq Txt (cdr (assoc 1 (entget (car (nentsel))))) )
: ) Happy Computing !
kennet