Teigha Blog

Find out what's new and more

Using SpaModeler

This article describes how to create the SpaModeler module and use it in the ODAMfcApp sample application.

Example getting started

Creating 3D Views in Teigha BIM Using Commands

In Teigha BIM source code, commands are implemented in the form of a container and usually a separate project. At this point in Teigha BIM there is a TB_DevGuideCommands project for this. The project is built into a file with the extension ".tx".

rfa rvt Example

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