Mechanical Design

3D Functional Tolerancing & Annotation

Retrieving the Geometry Pointed to by an Annotation

Use Case

Abstract

This article discusses the CAAScdTpiObtainGeometry use case. This use case explains how to obtain the toleranced surface in a CATIA V5 document.

  1. What You Will Learn With This Use Case
  2. How To Get Toleranced Geometry (and display in a msgBox)

What You Will Learn With This Use Case
This use case is intended to help you to obtain the geometry which is specified by an annotation.

How To Get Toleranced Geometry
On an annotation, you must call the Count function, to know on how many surfaces the annotation is applied to.
Then, you get a complete path on the geometry.

     ###  How to get Annotations?  ###

Set annotation = annotations.Item(IdxAnnot)
SurfCount = annotation.GetSurfacesCount()

Dim enumValues () as Variant
ReDim enumValues (SurfCount - 1)
annotation.GetSurfaces(enumValues)
Dim Name As String

For i = LBound(enumValues) to UBound(enumValues)
    Name = enumValues(i)
    msgBox Name
Next

[Top]


History
Version: 1 [Feb 2003] Document created

[Top]


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