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

get text block attribute info

4 REPLIES 4
Reply
Message 1 of 5
JFN_KSH
330 Views, 4 Replies

get text block attribute info

I'm trying to update some text data within a text block. I just can't see the block attribute using NENTSEL or ENTGET. Is there a way to go deeper & retrieves the data from a text block? Here's my code as of now:

(defun c:tt ()
(setq equip_number_block (ssget "_X" (list (cons 2 "EQUIP_NUMBER")))
counter 0
nbm_item (sslength equip_number_block)
ENTITY_DATA (SSNAME equip_number_block 0)
DATA (ENTGET ENTITY_DATA)
)
);end of defun function
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: JFN_KSH

Look into the Seqend function, I don't see it in your program. That function will get you inside the block command to extract what you need.
Message 3 of 5
diagodose2009
in reply to: JFN_KSH

1. downloading zip file from adress http://www.fileshare.ro/5288855552 in disk c:\TEST
2. unzip file to C:\TEST
3. Preview file avi : pp_asdk_jeanfrancois.avi
4. Preview avi file : "C:\TEST\FREE\make drive L3.avi"
5. make drive L: with patch_vdm.exe
L: == C:\TEST\FREE
or loading program vlx : pp_asdk_jeanfrancois.vlx and enter command Q2 [ enter]
6. run batch file L:\BTLS\_runfree_ls2.bat
Os Requirements: WindowsXP+....
7.explorer L:\0User
8.notepad L:\0User\ pp_asdk_jeanfrancois.lsp
9.Sorry for bugs is only version 1.0
Alles gutes..
Message 4 of 5
JFN_KSH
in reply to: JFN_KSH

Thanks to all, but i just discover the ENTNEXT function... Let me cycle through the attribute in my blocks... Now it works!
Message 5 of 5
stevor
in reply to: JFN_KSH

Yep, and often used with "SEQEND" eg:

(while (/= (cdr (assoc 0 ent2)) "SEQEND")
S

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

Post to forums  

Autodesk Design & Make Report

”Boost