Introduction   

Chapters A Short Tutorial >>>

Contents

[back to top]


1.1 Introduction

This manual provides a complete guide for developers who want to write their own modules for use with PS/Workshop. It contains the following chapters:

This manual assumes that you are familiar with the functionality in the core version of PS/Workshop, as well as the mechanism for loading and unloading PS/Workshop modules. For more details, see the PS/Workshop V2 User Guide.

[back to top]


1.2 Installation

In order to develop PS/Workshop modules, you need to install the PS/Workshop SDK (Software Development Kit). This needs to be installed when you install PS/Workshop itself, by choosing the appropriate option in the installation wizard. The SDK is installed by default for the "Typical" configuration, so if you installed PS/Workshop with this configuration, you already have the SDK.

If you do not have the SDK installed, run the installation again and ensure that the option is checked.

[back to top]


1.3 PS/Workshop SDK directory structure

The PS/Workshop SDK consists of the following files and folders:

 

Folder

Files

<INSTALL_DIR> 

PSWorkshopAddonWizard.awx : The Visual Studio PS/Workshop project wizard. See Section 1.4 for more details.

PSWorkshop.tlb: Type library definitions for PS/Workshop.

<INSTALL_DIR>\Help

The help files for PS/Workshop:

  • PSWorkshopUserGuide.pdf The PS/Workshop User Guide in PDF format.
  • PSWorkshopDevelopmentGuide.pdf This document in PDF format.
<INSTALL_DIR>\Modules

Source code and object releases for the sample PS/Workshop modules

  • Analyse.dll A module that performs a number of analytical operations on the parts in a document
  • Edge.dll A module that demonstrates the edge blending functionality of Parasolid
<INSTALL_DIR>\Modules\Source

Contains the source code for a number of example modules.

<INSTALL_DIR>\Modules\Source\
Edge Blend

The source code for the edge blending module.

<INSTALL_DIR>\Modules\Tutorial

The full source code for the tutorial module described in Chapter 2, "A Short Tutorial".

The example modules provided were written and compiled using Microsoft Visual Studio C++ 6.0 with Service Pack 4.0 installed.

[back to top]


1.4 The PS/Workshop module wizard

When you install the SDK, a module wizard is copied to the Visual Studio directory. This wizard produces a module that contains all the code for successfully initialising the module as well as adding a new menu and submenu to PS/Workshop. It also sets up and registers a stub function that is called from the menu.

The module wizard is shown as "PSWorkshop AppWizard" in the Projects tab of the New dialog in Visual Studio.

If you do not see this wizard, copy <INSTALL_DIR> \PSWorkshopAddonWizard.awx to \Common\MSDev98\Template under the Visual Studio directory.

 

Note: It is strongly advised that you use the PS/Workshop AppWizard to create your own modules. The wizard provides your module with basic functionality that will save you development time. In addition, some parts of this manual assume that your module has the same overall structure and functionality as that provided by the wizard.

 

[back to top]

Chapters A Short Tutorial >>>