Mechanical Modeler

Integrating Combined Curve to Knowledge

Implementing CATICkeFeature

Use Case

Abstract

This article shows how to implement CATICkeFeature.


What You Will Learn With This Use Case

This use case is intended to show you how to implement CATICkeFeature .

[Top]

The CAAMmrCombinedCurveCkeFeature Use Case

CAAMmrCombinedCurveCkeFeature is a use case of the CAAMechanicalModeler.edu framework that illustrates KnowledgeInterfaces  framework capabilities.

[Top]

What Does CAAMmrCombinedCurveCkeFeature Do

CAAMmrCombinedCurveCkeFeature implements the CATICkeFeature. Here is an example of the impact.

and click OK, points are created on the curve.

[Top]

How to Launch CAAMmrCombinedCurveCkeFeature

See the section entitled "How to Launch the Combined Curve Use Case" in the "Creating a New Geometrical Feature: The Combined Curve" use case for a detailed description of how this use case should be launched.

[Top]

Where to Find the CAAMmrCombinedCurveCkeFeature Code

The CAAMmrCombinedCurveCkeFeature use case is made one class, CAAEMmrCombCrvCkeFeature, located in the CAAMmrCombinedCurve.m module of the CAAMechanicalModeler.edu framework:

Windows InstallRootDirectory\CAAMechanicalModeler.edu\CAAMmrCombinedCurve.m\
Unix InstallRootDirectory/CAAMechanicalModeler.edu/CAAMmrCombinedCurve.m/

where InstallRootDirectory is the directory where the CAA CD-ROM is installed

[Top]

Step-by-Step

There are one logical step in CAAMmrCombinedCurveCkeFeature:

  1. Implementing the CATICkeFeature Interface

[Top]

Implementing the CATICkeFeature Interface

...
CATICkeType_var CAAEMmrCombCrvCkeFeature::GetType () const
{
    cout <<" CAAEMmrCombCrvCkeFeature" << endl;
	CATITypeDictionary_var TypeDic =  CATGlobalFunctions::GetTypeDictionary();
	if (TypeDic != NULL_var ) { 
		CATIType_var oType;  
		HRESULT rc = TypeDic ->FindTypeSafe("Curve","",oType );
		if (SUCCEEDED(rc))  { 
			return  oType ;
		}
	}
	return NULL_var ;
}
...

[Top]


In Short

Write here what the reader should remember when leaving the article.

[Top]


References

[1] Building and Launching a CAA V5 Use Case
[Top]

History

Version: 1 [Jan 2001] Document created
[Top]

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