vba - Zoom on MTEXT object AutoCAD -
i got access database, contains records regarding objects have static location on our terrains can locate them querying db.
eg: code description location
"e1-050505" "concrete posts" "street #"
now struggle know go on our terrains (cause big), have refer autocad map, there check "street #" located searching text "e1-050505". have found vba code able open autocad file, document. found no way or command set focus on specific control or object.
the procedure this: click button on access form, vba launch cad file, search text "e1-050505" , set view visual location in autocad drawing of object.
i able search , find mtext object, haven't found way move "camera" or view focus it.
i need command or code move view mtext object.
you can use object option of zoom command:
acadapp.activedocument.sendcommand "_zoom" & vbcr & "_o" _ & vbcr & "(handent """ & mtext.handle & """)" & vbcr & vbcr
Comments
Post a Comment