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

Teigha Blog

Find out what's new and more

Creating HoleChartOrigin in Teigha Mechanical

In Teigha Mechanical, HoleChartOrigin is a part of the HoleChart complex entity. Creation of HoleChartOrigin is the first thing to do to make all components of HoleChart work correctly.

mechanical getting started

Graphic System Overlays


Complex graphic scenes with a large number of elements are sometimes drawn slowly. In this case, dynamic graphic elements (such as cursors, grip/snap points, selection rectangles, user interface elements, and so on) are drawn slowly too because to correctly combine graphic scenes and dynamic graphic elements, the renderer must redraw all underlying scene elements.

rendering performance Example

Extracting Image Files from OdDbOle2Frame Entities

When trying to extract image files from OLE2 frame entities, OdDbOle2Frame has the getCompoundDocument() method to get the streamBuf, but this is a stream of compound documents and not an image.

Raster image Example

Two Ways to Work with Teigha BIM B-Reps

Many elements in Teigha BIM contain B-Rep geometries in GElement, which is a geometry cache of an element. However, B-Rep is not a universal format. Each product has a specific representation of B-Reps.

An overview of B-Reps and BIM specifics can be found in the documentation (login required).

rvt rfa Example

Hatch Types and Exporting to PDF

Sometimes ODA members ask about exporting hatches and why a resulting .pdf file is very slow to open or why the quality of exported hatches is poor. This article explains a few things about hatches and exporting them to PDF.

There are three main types of hatches in .dwg files:

export rendering

Creating ACIS Nurbs Surfaces using B-Rep Builder

With Teigha you can create ACIS nurbs surfaces using a B-Rep Builder interface. Currently Teigha has two B-Rep Builder implementations: one in Teigha Kernel named AcisBrepBuilder and the other in Teigha BIM named BmBrepBuilder.

Example b-rep

Teigha BIM: Introduction to FillPatterns [Part 2]


FillPattern rendering is performed when rendering a corresponding shell if the OdGiFill traits attribute is supplied.

rvt rfa Example

Creating Table Elements in .dgn Files

Table elements for .dgn files are supported by Bentley® MicroStation V8i Connect Edition and later. The structure and purpose of .dgn table elements are similar to .dwg table elements. A table is a set of cells arranged in rows and columns. The cells in a table are separated by gridlines, and .dgn table element cells can contain only text data.

To create a .dgn table element:

dgn getting started

Introduction to Bill of Materials in Teigha Mechanical

Teigha Mechanical has a service (service class) named BOM Manager that provides an interface for Bill of Materials tables, parts, and components in a drawing. BOM Manager also provides an interface for BOM rows and their data.

mechanical getting started

Attaching windows to walls

In Teigha Architecture, objects can be attached to other objects. Such connections are handled by special anchor objects which are stored in a .dwg file just like any other object. An anchor is represented by the base class AECDbAnchor. The meaning of the connection between objects can be different: for example, windows are inserted in a wall, or a schedule table is attached to an object.

Architecture Example