Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I'm working on upgrading our RealDWG library from r2022 to r2023. However, we ran into a regression with setting the coordinate system using the AcDbGeoData setCoordinateSystem() method when writing a DWG file.
I was able to reproduce this in the CreateNT sample as well. Using r2022, it would work without issues. But running the same code in r2023, the method returns eNotApplicable instead.
Is there something that needs to be done differently in r2023?
AcDbGeoData* pGeoData = new AcDbGeoData;
pGeoData->setBlockTableRecordId(modelSpaceId);
pGeoData->postToDb(geoDataObjId);
// returns eOk in 2022, but eNotApplicable in 2023
pGeoData->setCoordinateSystem(AcString(L"UTM83-10"));
Solved! Go to Solution.