Using the OdPrcCreate Example

Alex Rumjantsev
September 19, 2017

Tags: prc 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.

Additional information about OdPrcCreate is here (login required)

OdPrcExCommands module example

One more interesting example is the OdPrcExCommands.tx extension module. This module contains a set of example commands. All example cases from the OdPrcCreate example are included as commands in the OdPrcExCommands module. So it is possible to load this module and use OdPrcCreate example cases as commands in an application. Source files for OdPrcExCommands is in the Prc\Examples\OdPrcExCommands\ folder, and a prebuilt version with the project file is also available in the release packages.

OdaPrcApp Windows viewer application

OdaPrcApp is a PRC file viewer for Windows. Source files are in the Prc\Examples\win\OdaPrcApp\ folder. A prebuilt version and the project file are included in the release packages. The main advantages of OdaPrcApp is its user interface and its support of all major Teigha PRC features. With OdaPrcApp you can load, create, save, and render PRC files. Also it supports loading of .tx modules and execution of commands.


  1. Start OdaPrcApp image1


  2. Create a new file image2


  3. Choose Tools => Load application image3


  4. Find and load OdPrcExCommands.tx
  5. Choose Edit => Registered commands => PRC create example image4


  6. Call vectorization to check the results image5


All posts