-
Thanks for all the replies,
Ok thats weird, I sent this code to a co-worker yesterday and it worked on his computer so I just re-typed that line this morning and no more error there.
md, the obj2 is trying to look for Mtext inside the title block.
Tommy, yes the block ("tbD2") is only "referenced" once in a drawing and it will now read that block.
sca67can, I changed AcDbBlockReference to AcadBlockReference because it gave me a compile error "user-defined type not defined" on that TypeOf. It now tells me a run time error "object doesn't support this property or method." My code gives me the same error on the >>> For Each obj2 in obj <<<< line (I tried to change obj to --> obj.entity still nothing)
It will scan through the blocks and it will find "tbD2" but I guess it does not like how I am looking for the Mtext inside that block. Any suggestions to fix these errors and to get the Mtext inside the Block?
Thanks for all the help so far and for future help, I really appreciate it!
Regards,
S_H
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules