All Frameworks  Object Hierarchy  This Framework  Previous  Indexes  

UserSurfaces (Collection)

IUnknown
  |
  +---IDispatch
    |
    +---CATBaseUnknown
      |
      +---CATBaseDispatch
        |
        +---Collection
          |
          +---UserSurfaces
 




Method Index

Generate
Use this method in a Part.
GenerateInAProductCtx
Use this method in a Product.
Item
Find a user surface inside the collection.
MakeUserSurfaceNode
Usefull to create a User Surface Node from two others User Surface.
MakeUserSurfaceNode2
Usefull to create a User Surface Node from a list of User Surfaces.

Methods


o Func Generate(CATIAReference iSupport) As CATIAUserSurface
Use this method in a Part. Creates a new user surface and adds it to the Surfaces collection.
Parameters:
iSupport
The first reference that will support the user surface
Returns:
The created user surface
Example:
The following example creates a user surface names NewUserSurf from the reference Ref in the Surfaces collection of the rootPart part in the partDoc part document.
 Set rootPart = partDoc.Part
 Set NewUserSurf = rootPart.UserSurfaces.Add(Ref)
 
o Func GenerateInAProductCtx(CATIAProduct iProduct,
CATIAProduct iProdInst,
CATIAReference iSupport) As CATIAUserSurface
Use this method in a Product. Creates a new user surface and adds it to the Surfaces collection.
Parameters:
iProduct
The level on which you want to create annotation (part or product).
iProdInst
The product instance where there is the geometry.
iSupport
The first reference that will support the user surface
Returns:
The created user surface
o Func Item(CATVariant iIndex) As CATIAUserSurface
Find a user surface inside the collection.
Parameters:
iIndex
The position of the users surface in the collection
Returns:
The user surface that is in the iIndex position in the collection
o Func MakeUserSurfaceNode(CATIAUserSurface iFirstUserSurf,
CATIAUserSurface iSecondUserSurf) As CATIAUserSurface
Usefull to create a User Surface Node from two others User Surface. Creates a new user surface and adds it to the Surfaces collection.
Parameters:
iFirstUserSurf
The first User Surface to use.
iSecondUserSurf
The second User Surface to use.
Returns:
The created user surface
o Func MakeUserSurfaceNode2(CATSafeArrayVariant iListOfUserSurfaces) As CATIAUserSurface
Usefull to create a User Surface Node from a list of User Surfaces. Creates a new user surface and adds it to the Surfaces collection.
Parameters:
iListOfUserSurfaces
The list User Surfaces to use.
Returns:
The created user surface

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