Teigha Blog

Find out what's new and more

Working with .sat and .sab Files in Teigha

Teigha uses .sat and .sab files to define 3D geometry of 3D entities (OdDbRegion, OdDbBody, OdDb3dSolid, OdDbSurface, etc.).

getting started geometry conversion

Converting code using OdString and OdAnsiString classes

Sometimes developers want to convert some text from multi-byte coding to Unicode or UTF and back. For this purpose, the OdString and OdAnsiString classes may be used. Starting with Teigha version 4.3.0, CP_UTF_8 coding was included in the supported coding list.

For example, the following array of characters in UTF-8 coding is “Test string” in Russian:

conversion Example