Teigha Blog

Find out what's new and more

Using the New Measurement Functionality when Exporting to Adobe® .pdf Files

Teigha’s PDF Export functionality now supports accurate measurements of CAD data in exported .pdf files. Let’s look at how it can be used and how it looks in a .pdf file.

pdf Example export

Creating Textured Materials using Helper Classes for Assets in Teigha BIM

Teigha BIM supports fourteen default materials: Ceramic, Concrete, Generic, Glazing, Hardwood, MasonryCMU, Metal, MetallicPaint, Mirror, PlasticVinyl, SolidGlass, Stone, WallPaint and Water. Each material has a rendering asset, which contains material rendering properties, such as color, finishing style, bumping and so on. Textures can also be defined for a material.

Example rvt rfa

Using the OdPrcCreate Example

The main Teigha PRC example for “how to create” is the OdPrcCreate example located in the \Prc\Examples\OdPrcCreate folder. The release package includes a prebuilt OdPrcCreate.exe application in the “exe” folder. Also a project file is available in the release packages (for Microsoft® Windows®). So it is possible to start the prebuilt application or debug it using Microsoft Visual Studio.

prc Example

Attaching and Validating Digital Signatures for .dwg Files

With the new release of Teigha 4.3.1, you can attach digital signatures to your .dwg files and validate a .dwg file’s digital signature. A digital signature indicates who the file came from and the file’s state when the digital signature was created, and validation confirms this information.

getting started Example

Questions and Answers about PDF Export Settings and Plot Settings

There is often a misunderstanding between general plot settings and specific settings for exporting drawings to .pdf files. This can lead to a misunderstanding of how to implement a feature for exporting a drawing, and we also receive suggestions to add functionality to the PDF export settings when that functionality already exists in the general plot settings.

export pdf Example

Example of Using Multi-User Editing with OdaMfcApp

This article shows how to launch the "multi-user editor."

Note: The xml schema (TD.txds) must be in the same folder as OdaMfcApp.exe.

getting started Example

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

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