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

Aceessing Attributes without open the drawing

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
thavasi1982
576 Views, 3 Replies

Aceessing Attributes without open the drawing

Dear all,
 Is there any way to access the attribute text string in a drawing without open
the drawing? I have tried like this.

 

(setq dDbx (vla-getinterfaceobject (vlax-get-acad-object) "ObjectDBX.AxDbDocument.18"))
(setq cFile (getfiled "Select *.dwg file" "t:\\" "dwg" 4))
(vlax-invoke-method dDBX 'Open cFile)
(vla-get-textstring (vla-item (vla-item (vla-get-blocks dDBx) 5) 70))


But it returns the default value of attribute definition. Please help in this.
Thanks in advance

 

STM

3 REPLIES 3
Message 2 of 4
_Tharwat
in reply to: thavasi1982


@thavasi1982 wrote:

turns the default value of attribute definition. Please help in this.

 


That is because you are getting the value from the Block table and not from the space where the block is located ( insereted ) .

 

 

Message 3 of 4
thavasi1982
in reply to: _Tharwat

Thanks _Tharwat. Now it is solved. STM
Message 4 of 4
_Tharwat
in reply to: thavasi1982


@thavasi1982 wrote:
Thanks _Tharwat. Now it is solved. STM

You are most welcome anytime Smiley Happy

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

Post to forums  

Autodesk Design & Make Report

”Boost