Equipment & Systems

Schematics Platform Modeler

Extending Schematic Application Sample "StartUp" objects

Working with Schematic Components
Use Case

Abstract

This article discusses the CAASchAppExtendCATfct use case.


What You Will Learn With This Use Case

This use case is intended to illustrate how to extend an existing schematic application "CATfct" file with new StartUp classes. Please refer to Creating StartUp Objects use case for more information.

[Top]

The CAASchAppExtendCATfct Use Case

CAASchAppExtendCATfct is a use case of the CAASchPlatformModeler.edu framework that illustrates the procedures to extend "base feature" schematic application classes and their attributes.

[Top]

What Does CAASchAppExtendCATfct Do

The sample takes an input ".CATfct" file, created by CAASchAppCreateCATfct use case, containing the schematic StartUp objects Connector, Connection, FuncPart, FuncString, etc. (shown in light blue in the diagram below). It then adds new sample schematic application subclasses (shown in orange in the diagram below) to the FuncPart class, adds the attribute to the existing Connector class, and saves all the modification in the new file to a directory specified by the user.

Fig.1: Class hierarchy defined in the output CATfct file.

[Top]

How to Launch CAASchAppExtendCATfct

To launch CAASchAppExtendCATfct, you will need to set up the build time environment, then compile CAASchAppExtendCATfct along with its prerequisites, set up the run time environment, and then execute the sample. This is fully described in the referenced article [1]. When launching the use case, you must pass the following arguments:

[Top]

Where to Find the CAASchAppExtendCATfct Code

CAASchAppExtendCATfct code is located in the CAASchAppExtendCATfct.m use case module of the CAASchPlatformModeler.edu framework:

Windows InstallRootDirectory\CAASchPlatformModeler.edu\CAASchAppExtendCATfct.m
Unix InstallRootDirectory/CAASchPlatformModeler.edu/CAASchAppExtendCATfct.m

where InstallRootDirectory is the root directory of your CAA V5 installation. The name of the source file is CAASchAppExtendCATfctMain.cpp.

Additional prerequisite code is located in the CAASchAppUtilities.m  module of the same framework.

[Top]

Step-by-Step

There are 3 logical steps in CAASchAppExtendCATfct:

  1. Prolog
  2. Add new subclasses and attributes 
  3. Epilog

[Top]

Prolog

In this use case, we open an input "CATfct" that already has schematic StartUp objects that further subclasses are to be derived from.  Initializing the environment involves the following:

[Top]

Adding new subclasses and attributes

Method CAAExtendBaseFeatureSU is the main method that creates new subclasses and attributes for the sample application. The code can be divided into the following steps:

[Top]

Epilog

The following steps conclude the use case:

[Top]


In Short

This use case has demonstrated how to define new subclasses and attributes for a typical schematic application.

[Top]


References

[1] Building and Launching a CAA V5 Use Case
[2] Loading a Document

History

Version: 1 [March 2005] Document created
[Top]

Copyright © 2000, Dassault Systèmes. All rights reserved.