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
Solved! Go to Solution.
Solved by _Tharwat. Go to Solution.
@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 ) .
@thavasi1982 wrote:
Thanks _Tharwat. Now it is solved. STM
You are most welcome anytime