Looking for an ObjectARX API to work with the Live Maps functionality. I did a geomapimage and need to make adjustments to it programatically using ObjectARX. In order to find out what type of object it was (not selectable with acedEntSel), I had to use a database reactor objectAppended, then pull the class name using pEnt->isA()->name() . The resulting classes were AcDbGeoMapDef and AcDbGeoMap, there is absolutly no reference to these classes in the ARX SDK documentation or header files.
-Jamie
Hi Jamie,
The AcDbGeoMapDef is not part of the public API and is not documented.
But the AcDbGeoMap class is documented in arxdoc.chm.
At present, creating a geomap and manipulating it would require running the geomap command of AutoCAD to create it.
The last entity created would be the geomap entity and can be accessed by tracking the entity added to the database.
Kean's blog post uses this approach but the code is in .Net :
But it should be possible to do the same using ObjectARX API.
Regards,
Balaji
I'm aware of Kean's post on this, I am using a database reactor to aquire the entity as I stated in my post. This is how I discovered AcDbGeoMapDef. Also In Keans post he casts the object to GeomapImage. There are properties such as brightness, contrast, fade, resolution and MapType that are available on this class type. What would be the equivalent class in ObjectARX?
-Jamie
AcDbGeoMap is the ObjectARX equivalent of GeomapImage.
Regards,
Balaji
Thanks Baliji I just had to add AcGeolocationObj.lib to my build config. Is this class only available in 2015?
Yes.
The "GeoMap" AutoCAD command is available since 2014.
But the AcDbGeoMap class was exposed in public API in 2015.
Regards,
Balaji