ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Live Maps, GEOMAP customization

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
468 Views, 5 Replies

Live Maps, GEOMAP customization

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

5 REPLIES 5
Message 2 of 6
Balaji_Ram
in reply to: Anonymous

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 :

 

http://through-the-interface.typepad.com/through_the_interface/2014/07/embedding-a-map-image-in-an-a...

 

But it should be possible to do the same using ObjectARX API.

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

Message 3 of 6
Anonymous
in reply to: Balaji_Ram

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

Message 4 of 6
Balaji_Ram
in reply to: Anonymous

AcDbGeoMap is the ObjectARX equivalent of GeomapImage.

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

Message 5 of 6
Anonymous
in reply to: Balaji_Ram

Thanks Baliji I just had to add AcGeolocationObj.lib to my build config. Is this class only available in 2015?

Message 6 of 6
Balaji_Ram
in reply to: Anonymous

Yes.

 

The "GeoMap" AutoCAD command is available since 2014.

But the AcDbGeoMap class was exposed in public API in 2015. 

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost