Message 1 of 3
MapQuery in Visual Basic
Not applicable
10-09-2002
01:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
i've opened a new drawing and I want to attach DWG's and do a query...then i
want to save this in DWF....
but my problem is...i can't get the Autodesk Map-Object
If i get the Map-Object in Visual Basic then everything will be ok !!!
Thank you for help
Here is my code....
Dim acad_object As New AcadApplication
Dim acad_doc As AcadDocument
Dim amap As AcadMap
Dim prj As Project
Dim qry As Query
Set acad_doc = acad_object.ActiveDocument
acad_object.Visible = True
'Get Autodesk Map and Project Objects
Set amap =
acad_object.Application.GetInterfaceObject("AutoCADMap.Application")
Set prj = amap.Projects(acad_object)
Thanks, Jochen
i've opened a new drawing and I want to attach DWG's and do a query...then i
want to save this in DWF....
but my problem is...i can't get the Autodesk Map-Object
If i get the Map-Object in Visual Basic then everything will be ok !!!
Thank you for help
Here is my code....
Dim acad_object As New AcadApplication
Dim acad_doc As AcadDocument
Dim amap As AcadMap
Dim prj As Project
Dim qry As Query
Set acad_doc = acad_object.ActiveDocument
acad_object.Visible = True
'Get Autodesk Map and Project Objects
Set amap =
acad_object.Application.GetInterfaceObject("AutoCADMap.Application")
Set prj = amap.Projects(acad_object)
Thanks, Jochen