Equipment & Systems

Schematics Platform Modeler

Creating Schematic Application Sample "StartUp" objects

Working with Schematic Components
Use Case

Abstract

This article discusses the CAASchAppCreateCATfct use case.


What You Will Learn With This Use Case

This use case is intended to help you understand how to create the "base features", or StartUps, of a typical schematic application. They are the base objects of schematic feature extensions used in sample programs to illustrate the implementations of schematic platform interfaces in this Framework.

[Top]

The CAASchAppCreateCATfct Use Case

CAASchAppCreateCATfct is a use case of the CAASchPlatformModeler.edu framework that illustrates the procedures to define "base feature" classes and their attributes.

[Top]

What Does CAASchAppCreateCATfct Do

The sample takes an input ".CATfct" file that contains the basic classes ASMPRODUCT, CONNECTOR, and CONNECTION. It then adds new sample schematic application classes (which are derived from the basic classes and shown in light blue in the diagram below) and attributes to the file and saves all the modification to a directory specified by the user.

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

[Top]

How to Launch CAASchAppCreateCATfct

To launch CAASchAppCreateCATfct, you will need to set up the build time environment, then compile CAASchAppCreateCATfct 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 CAASchAppCreateCATfct Code

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

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

where InstallRootDirectory is the root directory of your CAA V5 installation. The name of the source file is CAASchAppCreateCATfctMain.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 CAASchAppCreateCATfct:

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

[Top]

Prolog

In this use case, we open an input "CATfct" that contains the basic classes that our sample classes are to be derived from. Initializing the environment involves the following:

[Top]

Adding new classes and attributes

Method CAACreateBaseFeatureSU is the main method that creates new classes 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 classes 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 [April 2004] Document created
[Top]

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