Join us in Prague for TDC ’17, Sept. 11-12

Teigha Blog

Find out what's new and more

Working with raster image wrappers

Raster image wrappers provide a way to modify raster image data without modifying the original raster image. Each raster image wrapper stores a smart pointer to the original image and can get any data from the original image and return it with or without modifications. Actually, by using raster image wrappers we can construct a conveyor for multi-pass image processing.

Teigha Viewer: An Easy Way to Get Familiar with Teigha

If you are new to Teigha and want to try its features without a login and trial license agreement, you can download Teigha Viewer — a free application that illustrates Teigha features. Download Teigha Viewer from this page. Choose the version that fits your requirements (operating system, etc.).

Planar clipping sections generation for custom entities

Teigha vectorization framework provides ability to clip geometry inside rendered scene, using OdGiOrthoClipperEx conveyor node which is always available inside default geometry vectorization conveyor.

Using Teigha BIM and COLLADA to Examine Autodesk® Revit® File Geometry

If you're new to working with Autodesk® Revit® files, looking at a file's geometry can be a good place to start. The file is actually a set of elements that correspond to BIM components such as walls or dimensions.

Example rfa rvt

Notes about using xrefs

Xref (short for eXternal REFerence) is, as the name suggests, a reference to an external .dwg file. External references are often used to split big files into smaller ones; the smaller files are referenced by one “host” file, and the smaller files can be processed by different engineers independently and simultaneously. Other uses of external references are to make block libraries or underlays.

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:

Introducing Teigha Cloud Architecture

One of the new directions for Teigha is the cloud. With Teigha Cloud, people can work with drawings remotely from any place — home, office, restaurant.

Teigha Cloud consists of the following architecture:

Creating raster images from scratch

The OdGiRasterImage interface gives the ability to implement raster image creation from various types of source data in a few steps, and the resulting raster image will be accepted by all image processing functionality, similar to a raster image loaded from file source. In this article, we will create a gradient image from scratch.

Working with raster image files

A question we’re often asked is: How do I modify raster image data in Teigha? Sometimes a developer is confused by the absence of raster image editing functions in the OdGiRasterImage API, which contains only raster image data getters. This article shows how raster images can be modified after loading.

Exporting part of a CAD drawing to a .pdf file

Sometimes Teigha subscribers ask: How do I export to a .pdf file only a certain part of a drawing instead of the whole drawing? Maybe it is not obvious because there is a default option ZoomToExtents in the PDF Export settings, and the same option is set by default in the PDFExportDialog of the OdaMfcApp sample application.