All Frameworks  Object Hierarchy  This Framework  Previous  Next  Indexes  

DMOOffsets (Collection)

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


Interface to access a CATIADMOOffsets and compute Offsets

Method Index

Add
Creates a new Offset and adds it to the DMOOffsets collection.
AddOffsetFromVectors
Creates a new Offset from a set of vectors, and adds it to the DMOOffsets collection.
CleanUp
Cleans up.
ComputeAnOffset
Compute a offset on the selected products.
ComputeAnOffsetFromVectors
Compute an offset on the selected products, according to some vectors
ComputeAnOffsetFromVectorsWithAReference
Compute an offset on the selected products, according to some vectors and a reference product.
ComputeAnOffsetWithAReference
Compute an offset on the selected products, according to a reference product.
OffsetShapeName
Returns the name of the associated shape.

Methods


o Func Add(CATIAProduct iProductToOffset,
double iOffset1,
long iUseConstraints,
CATSafeArrayVariant iConstraints,
CATBSTR iShapeName,
long iActivatedShape,
long iDefaultShape) As CATIADMOOffset
Creates a new Offset and adds it to the DMOOffsets collection. This function is deprecated.
Returns:
The created offset
Example:
The following example creates an offset newOffset in the Offset collection.
 Set newOffset = DMOOffsets.Add
 
o Func AddOffsetFromVectors(CATIAProduct iProductToOffset,
CATSafeArrayVariant iOffsetVectors,
CATSafeArrayVariant iOffsetValues,
CATBSTR iShapeName,
long iActivatedShape,
long iDefaultShape) As CATIADMOOffset
Creates a new Offset from a set of vectors, and adds it to the DMOOffsets collection. This function is deprecated.
Returns:
The created offset
Example:
The following example creates an offset newOffset in the Offset collection.
 Set newOffset = DMOOffsets.Add
 
o Sub CleanUp()
Cleans up.
o Func ComputeAnOffset(CATIAGroup GroupOfSelectedProducts,
double iOffset,
long iUseConstraints,
CATSafeArrayVariant iConstraints) As CATIADocument
Compute a offset on the selected products.
Parameters:
GroupOfSelectedProducts
The selected products on which you want to perform the offset.
iOffset
Offset value.
iUseConstraints
Do we use normals constraints or not ?
iConstraints
Constraints array.
Returns:
OffsetDocument: Document containing the result.
o Func ComputeAnOffsetFromVectors(CATIAGroup GroupOfSelectedProducts,
CATSafeArrayVariant iOffsetVectors,
CATSafeArrayVariant iOffsetValues) As CATIADocument
Compute an offset on the selected products, according to some vectors
Parameters:
GroupOfSelectedProducts
The selected products on which you want to perform the offset.
iOffsetVectors
Vectors taken into account for the computation
iOffsetValues
Offset values.
Returns:
OffsetDocument: Document containing the result.
o Func ComputeAnOffsetFromVectorsWithAReference(CATIAGroup iGroupOfSelectedProducts,
CATIAProduct iReferenceProduct,
CATSafeArrayVariant iOffsetVectors,
CATSafeArrayVariant iOffsetValues) As CATIADocument
Compute an offset on the selected products, according to some vectors and a reference product.
Parameters:
iGroupOfSelectedProducts
The selected products on which you want to perform the offset.
iReferenceProduct
The reference product.
iOffsetVectors
Vectors taken into account for the computation
iOffsetValues
Offset values.
Returns:
OffsetDocument: Document containing the result.
o Func ComputeAnOffsetWithAReference(CATIAGroup iGroupOfSelectedProducts,
CATIAProduct iReferenceProduct,
double iOffset,
long iUseConstraints,
CATSafeArrayVariant iConstraints) As CATIADocument
Compute an offset on the selected products, according to a reference product.
Parameters:
iGroupOfSelectedProducts
The selected products on which you want to perform the offset.
iReferenceProduct
The reference product.
iOffset
Offset value.
iUseConstraints
Do we use normals constraints or not ?
iConstraints
Constraints array.
Returns:
OffsetDocument: Document containing the result.
o Func OffsetShapeName() As CATBSTR
Returns the name of the associated shape.

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