Can't change the tags of the drawing

S

seaman

I am using a code which opens a drawing in AutoCAD 2002 and then changes the
tags inside the drawing to the calculated values in Access. It is not a
complex code, for example for ; "Acadcoll =
Acadobj.ActiveDocument.ModelSpace" ; and ; "tmpobj as object"; "Acadobj as
object" I use:

For Each tmpobj In Acadcoll
If tmpobj.EntityType = AcAttribute Then

If tmpobj.TagString = "B1" Then tmpobj.TagString = Forms![q1]![b1].Value

End If
Next

The problem is Acess opens the drawing but fails to write the value and
displays the tag (B1) instead.
I think it could have something to do with the preferences or options of
Access, because in the past I used this code without having any problems.

I will be grateful if you can help me about this issue
 
Top