All Frameworks  Object Hierarchy  This Framework  Previous  Next  Indexes  

StrObjectFactory (Object)

IUnknown
  |
  +---IDispatch
    |
    +---CATBaseUnknown
      |
      +---CATBaseDispatch
        |
        +---AnyObject
          |
          +---StrObjectFactory
 


Represents the factory object for all the structure objects.
The factory is retrieved using the Product.GetTechnologicalObject method of the product.
Example:
The following example retrieves the structure factory object from the oProduct Product.
 Dim oFactory as AnyObject
 Set oFactory = oProduct.GetTechnologicalObject("StructureObjectFactory")
 

Method Index

AddDefExtFromCoordinates
Creates a member extremity definition object from coordinates and an offset value.
AddDefExtFromReference
Creates a member extremity definition object from an existing object in the model and an offset value.
AddDefExtOnMember
Creates a member extremity definition object from another member object, its side, a distance on it and an offset.
AddDimMember
Creates a dimension member object from a point and a mathematical definition of a direction.
AddDimMemberOnPlane
Creates a dimension member object on a plane following a mathematical definition of a plane.
AddDimMemberPtPt
Creates a dimension member object from two given points.
AddDimMemberWithSupport
Creates a dimension member object using a support object.
AddMember
Creates a member object.
AddMemberFromDir
Creates a member object using a direction object as a line or a plane.
AddMemberFromMathDir
Creates a member object using a mathematical definition of the direction.
AddMemberFromMathPlane
Creates a member object from a mathematical definition of a plane.
AddMemberOnSupport
Creates a member object on a given support.
AddMemberOnSupportWithRef
Creates a member object on a given support object and a surface used to define the orientation of the section.
AddPlate
Creates a plate from a contour defined by coordinates.
AddRectangularEndPlate
Creates a rectangular end plate on an extremity of a given member.
AddSection
Creates a section object from part document.
AddSectionFromCatalog
Creates a section object from part document.
ExtendProductAsFoundation
Extend an assembly as a structure foundation assembly.

Methods


o Func AddDefExtFromCoordinates(CATSafeArrayVariant iCoord,
double iOffset) As CATIABase
Creates a member extremity definition object from coordinates and an offset value.
Parameters:
iCoord
The coordinates of the extremity
iOffset
The offset on this extremity
o Func AddDefExtFromReference(CATIAReference iReference,
double iOffset) As CATIABase
Creates a member extremity definition object from an existing object in the model and an offset value.
Parameters:
iReference
The reference object defining the extremity
iOffset
The offset on this extremity
o Func AddDefExtOnMember(CATIAStrMember iMember,
CatStrMemberExtremity iSide,
double iDistance,
double iOffset) As CATIABase
Creates a member extremity definition object from another member object, its side, a distance on it and an offset.
Parameters:
iMember
The member used to define the extremity
iSide
The side of the previous member used to define the distance along the member
iDistance
The distance along the selected member
iOffset
The offset on the extremity
o Func AddDimMember(CATIAStrSection iSection,
CATBSTR iAnchorName,
double iAngle,
CATIABase iDefExtr1,
CATSafeArrayVariant iMathDirection,
double iLength,
CATBSTR iType) As CATIAStrMember
Creates a dimension member object from a point and a mathematical definition of a direction.
Parameters:
iSection
The section object defining the profile for the member
iAnchorName
The name of the anchor point
iAngle
The orientation of the section on its support
iDefExtr1
The extremity object defining the start limit of the member
iMathDirection
The mathematical definition of the direction
iLength
The length of the member
iType
The type of the member. This type is user defined.
o Func AddDimMemberOnPlane(CATIAStrSection iSection,
CATBSTR iAnchorName,
double iAngle,
CATIABase iDefExtr1,
CATIABase iDefExtr2,
CATSafeArrayVariant iDirection,
CatStrPlaneMode iMode,
double iLength,
CATBSTR iType) As CATIAStrMember
Creates a dimension member object on a plane following a mathematical definition of a plane.
Parameters:
iSection
The section object defining the profile for the member
iAnchorName
The name of the anchor point
iAngle
The orientation of the section on its support
iDefExtr1
The extremity object defining the start limit of the member
iDefExtr2
The extremity object defining the end limit of the member
iDirection
The direction object. It can be a line or a plane
iMode
The way the member is created with respect to the direction plane. Useless if if the direction is not a plane.
iOrientation
The orientation of the member
iLength
The length of the member
iType
The type of the member. This type is user defined.
o Func AddDimMemberPtPt(CATIAStrSection iSection,
CATBSTR iAnchorName,
double iAngle,
CATIABase iDefExtr1,
CATIABase iDefExtr2,
double iLength,
CATBSTR iType) As CATIAStrMember
Creates a dimension member object from two given points.
Parameters:
iSection
The section object defining the profile for the member
iAnchorName
The name of the anchor point
iAngle
The orientation of the section on its support
iDefExtr1
The extremity object defining the start limit of the member
iDefExtr2
The extremity object defining the end limit of the member
iLength
The length of the member
iType
The type of the member. This type is user defined.
o Func AddDimMemberWithSupport(CATIAStrSection iSection,
CATBSTR iAnchorName,
double iAngle,
CATIABase iDefExtr1,
CATIABase iDefExtr2,
CATIAReference iDirection,
CatStrPlaneMode iMode,
CatStrMaterialOrientation iOrientation,
double iLength,
CATBSTR iType) As CATIAStrMember
Creates a dimension member object using a support object.
Parameters:
iSection
The section object defining the profile for the member
iAnchorName
The name of the anchor point
iAngle
The orientation of the section on its support
iDefExtr1
The extremity object defining the start limit of the member
iDefExtr2
The extremity object defining the end limit of the member. In case of line for a support, this parameter is not taking into account.
iDirection
The direction object. It can be a line or a plane
iMode
The way the member is created with respect to the direction plane. Useless if if the direction is not a plane.
iOrientation
The orientation of the member
iLength
The length of the member
iType
The type of the member
o Func AddMember(CATIAStrSection iSection,
CATBSTR iAnchorName,
double iAngle,
CATIABase iDefExtr1,
CATIABase iDefExtr2,
CATBSTR iType) As CATIAStrMember
Creates a member object.
Parameters:
iSection
The section object defining the profile for the member
iAnchorName
The name of the anchor point
iAngle
The orientation of the section on its support
iDefExtr1
The extremity object defining the start limit of the member
iDefExtr2
The extremity object defining the end limit of the member
iType
The type of the member. This type is user defined.
o Func AddMemberFromDir(CATIAStrSection iSection,
CATBSTR iAnchorName,
double iAngle,
CATIABase iDefExtr1,
CATIABase iDefExtr2,
CATIAReference iDirection,
CatStrPlaneMode iMode,
CATBSTR iType) As CATIAStrMember
Creates a member object using a direction object as a line or a plane.
Parameters:
iSection
The section object defining the profile for the member
iAnchorName
The name of the anchor point
iAngle
The orientation of the section on its support
iDefExtr1
The extremity object defining the start limit of the member
iDefExtr2
The extremity object defining the end limit of the member
iDirection
The direction object used to orientate the support. The direction object can be a plane or a line.
iMode
The way the member is created with respect to the direction plane. Useless if if the direction is not a plane.
iType
The type of the member. This type is user defined.
o Func AddMemberFromMathDir(CATIAStrSection iSection,
CATBSTR iAnchorName,
double iAngle,
CATIABase iDefExtr1,
CATIABase iDefExtr2,
CATSafeArrayVariant iDirection,
CATBSTR iType) As CATIAStrMember
Creates a member object using a mathematical definition of the direction.
Parameters:
iSection
The section object defining the profile for the member
iAnchorName
The name of the anchor point
iAngle
The orientation of the section on its support
iDefExtr1
The extremity object defining the start limit of the member
iDefExtr2
The extremity object defining the end limit of the member
iDirection
The mathematical definition of the direction
iType
The type of the member. This type is user defined.
o Func AddMemberFromMathPlane(CATIAStrSection iSection,
CATBSTR iAnchorName,
double iAngle,
CATIABase iDefExtr1,
CATIABase iDefExtr2,
CATSafeArrayVariant iPlane,
CatStrPlaneMode iPlaneMode,
CATBSTR iType) As CATIAStrMember
Creates a member object from a mathematical definition of a plane.
Parameters:
iSection
The section object defining the profile for the member
iAnchorName
The name of the anchor point
iAngle
The orientation of the section on its support
iDefExtr1
The extremity object defining the start limit of the member
iDefExtr2
The extremity object defining the end limit of the member
iDirection
The mathematical definition of a plane
iPlaneMode
The way the member is created with respect to the direction plane. Useless if if the direction is not a plane.
iType
The type of the member. This type is user defined.
o Func AddMemberOnSupport(CATIAStrSection iSection,
CATBSTR iAnchorName,
double iAngle,
CATIAReference iSupport,
CATIABase iDefExtr1,
CATIABase iDefExtr2,
CATBSTR iType) As CATIAStrMember
Creates a member object on a given support.
Parameters:
iSection
The section object defining the profile for the member
iAnchorName
The name of the anchor point
iAngle
The orientation of the section on its support
iSupport
The support for the member. The support can be a line or a curve
iDefExtr1
The extremity object defining the start limit of the member. It can be NULL.
iDefExtr2
The extremity object defining the end limit of the member. It can be NULL.
iType
The type of the member. This type is user defined.
o Func AddMemberOnSupportWithRef(CATIAStrSection iSection,
CATBSTR iAnchorName,
CATIAReference iSurfRef,
double iAngle,
CATIAReference iSupport,
CATIABase iDefExtr1,
CATIABase iDefExtr2,
CATBSTR iType) As CATIAStrMember
Creates a member object on a given support object and a surface used to define the orientation of the section. The surface reference defines the relative orientation on which you add an angle.
Parameters:
iSection
The section object defining the profile for the member
iAnchorName
The name of the anchor point
iReference
The reference to define the zero orientation of the section. The section follows this guide line along the support of the member.
iAngle
The orientation of the section on its support
iSupport
The support for the member. The support can be a line or a curve
iDefExtr1
The extremity object defining the start limit of the member. It can be NULL.
iDefExtr2
The extremity object defining the end limit of the member. It can be NULL.
iType
The type of the member. This type is user defined.
o Func AddPlate(CATIAReference iSupport,
double iThickness,
CatStrMaterialOrientation iOrientation,
CATSafeArrayVariant iContour,
double iOffset,
CATBSTR iType) As CATIAStrPlate
Creates a plate from a contour defined by coordinates.
Parameters:
iSupport
The plane defining the support of the plate
iThickness
The standard thickness of the plate. The thickness follows the standard orientation of the support
iOrientation
The material orientation of the plate
iContour
The array containing all objects defining the contour of the plate
iOffset
The offset applies to the support of the plate
iType
The type of the plate. This information is user defined. It is added as an attribute on the plate.
o Func AddRectangularEndPlate(CATIAStrMember iMember,
CatStrMemberExtremity iSide,
double iThickness,
double iHeight,
double iWidth,
CatStrMaterialOrientation iOrientation,
CATBSTR iType) As CATIAStrPlate
Creates a rectangular end plate on an extremity of a given member.
Parameters:
iMember
The member on which the end-plate will be created
iSide
The side of the selected member
iThickness
The standard thickness of the plate. The thickness follows the standard orientation of the support
iHeight
The height of the plate
iWidth
The width of the plate
iOrientation
The material orientation of the plate
iType
The type of the plate. This information is user defined. It is added as an attribute on the plate.
o Func AddSection(CATIADocument iPart) As CATIAStrSection
Creates a section object from part document. This part must aggregate a sketch object defining the contour of the section. The contour of the section have to be closed and may contain several domains.
Parameters:
iPart
The part document where the sketch of the section is defined
o Func AddSectionFromCatalog(CATIADocument iPart,
CATBSTR iCatalogName,
CATBSTR iFamilyName,
CATBSTR iSectionName) As CATIAStrSection
Creates a section object from part document. This part must aggregate a sketch object defining the contour of the section. This service gives you to define where the resolved part comes from to allow a replace mechanism. The contour of the section have to be closed and may contain several domains.
Parameters:
iCatalogName
The catalog name where the document comes from
iFamilyName
The family name where the document comes from
iSectionName
The section name where the document comes from
iPart
The part document where the sketch of the section is defined
o Func ExtendProductAsFoundation(CATBSTR iClass) As CATIAStrFoundation
Extend an assembly as a structure foundation assembly.
Parameters:
iClass
the name of the user class

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