Aceessing Attributes without open the drawing

Aceessing Attributes without open the drawing

Anonymous
Not applicable
800 Views
3 Replies
Message 1 of 4

Aceessing Attributes without open the drawing

Anonymous
Not applicable

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

0 Likes
Accepted solutions (1)
801 Views
3 Replies
Replies (3)
Message 2 of 4

_Tharwat
Advisor
Advisor
Accepted solution

@Anonymous 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

Anonymous
Not applicable
Thanks _Tharwat. Now it is solved. STM
0 Likes
Message 4 of 4

_Tharwat
Advisor
Advisor

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

You are most welcome anytime Smiley Happy

0 Likes