Message 1 of 1
Error in adding of query branch in Visual Basic
Not applicable
06-13-2004
03:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I try to build a query in VB as it described in the Help:
Set acadDoc = AcadApp.ActiveDocument
Set prj = amap.Projects(acadDoc)
Set atdr = prj.DrawingSet.Add()
Set qry = prj.CurrQuery
qry.Clear
Set mainqrybr = qry.QueryBranch
Set andqrybr = mainqrybr.Add(kQueryBranch, kOperatorAnd)
On the last operation I get notoriously known message
"Visual Basic encountered a problem and need to close..."
So all is gone. Can somebody explain me what is a problem? May thede
operations work only in VBA of AutoCADMap, not in VB?
Evgeny