It aggregates all the objects making up an analysis document.
Properties
- Property AnalysisModels() As (Read Only)
-
Returns the analysis model collection from the current analysis manager.
- Example:
- The following example returns from RootAnalysis the root analysis
object of the active document, assumed to be an Analysis document, the
collection of analysis models.
Dim AnalysisDocument As Document Set AnalysisDocument = CATIA.ActiveDocument Dim RootAnalysis As AnalysisManager Set RootAnalysis = AnalysisDocument.Analysis Dim analysisModels As AnalysisModels Set analysisModels = RootAnalysis.AnalysisModels
- Property AnalysisSets() As (Read Only)
-
Returns the analysis sets collection associated with an analysis manager.
This collection allows to access the Analysis Connection Manager that aggregates the Analysis Connection features.
- Returns:
- a collection of CATIAAnalysisSets. dd>
- Property LinkedDocuments() As (Read Only)
-
Returns the collection containing the documents linked to analysis document.
All the CATIA documents that are linked to the different
objects (like AnalysisMeshPart of Analysis Entity) might be accessed thru that collection.
- Example:
- The following example returns in documents the linked documents
of the AnalysisDocument :
Dim AnalysisDocument As Document Set AnalysisDocument = CATIA.ActiveDocument Dim RootAnalysis As AnalysisManager Set RootAnalysis = AnalysisDocument.Analysis Dim Documents As AnalysisLinkedDocuments Set Documents = RootAnalysis.LinkedDocuments
- Property Parameters() As (Read Only)
-
Returns the collection object containing the analysis parameters.
All the parameters that are defined in analysis objects might be accessed thru that collection.
- Example:
- The following example returns in params the parameters
of the RootAnalysis from the AnalysisDocument document:
Dim AnalysisDocument As Document Set AnalysisDocument = CATIA.ActiveDocument Dim RootAnalysis As AnalysisManager Set RootAnalysis = AnalysisDocument.Analysis Dim params As CATIAParameters Set params = RootAnalysis.Parameters
- Property Relations() As (Read Only)
-
Returns the collection object containing the analysis relations.
All the relations that are defined in analysis objects might be accessed thru that collection.
- Example:
- The following example returns in relation the relations
of the RootAnalysis from the AnalysisDocument document:
Dim AnalysisDocument As Document Set AnalysisDocument = CATIA.ActiveDocument Dim RootAnalysis As AnalysisManager Set RootAnalysis = AnalysisDocument.Analysis Dim relation As CATIARelations Set relation = RootAnalysis.Relations
Methods
- Func CreateReferenceFromGeometry( iProduct, iGeometry) As
-
Creates a reference from a geometry.
This geometry must in defined in a document rerecened in the CATIAAnalysisLinkedDocuments collection.
- Parameters:
-
- iProduct
- The product of the geometry to be referenced that defines the instance of the geometry. dd>
- iGeometry
- The geometry to be referenced. As a reference, it can be an CATIABoundary object of a mechanical feature. dd>
- Returns:
- a reference of the couple (iProduct, iGeometry). dd>
- Func CreateReferenceFromObject( iObject) As
-
Creates a reference from an analysis object.
Use of reference allows a uniform handling of anay objects.
- Parameters:
-
- iObject
- The analysis object to be referenced. It can be an AnalysisEntity or an AnalysisSet dd>
- Returns:
- The reference to the object. dd>
- Sub Import( iDocumentToImport)
-
Import an existing document in an analysis document .
This document can of any type that implement the CATIADocument interface.
This is implemented for internal document formats. (like Part or Product documents).
- Example:
- The following example imports an opened CATPart document
Dim AnalysisDocument As Document Dim PartDocument As Document Set AnalysisDocument = CATIA.ActiveDocument Dim RootAnalysis As AnalysisManager Set RootAnalysis = AnalysisDocument.Analysis RootAnalysis.Import(PartDocument)
- Sub ImportDefineFile( iDocumentPath, iTypeLate, iValues)
-
Import an existing document in an analysis document.
This document can of any type that is managed by the CATISamImportDefine interface.
- Example:
- The following example imports an CATPart document stored as FileToOpen file.
This example is also use the CATAnalysisImport Object. This object allow to import Part, Product or Analysis documents.
As of today no parameters are mandatory for this object.
Dim arrayOfVariant(0) FileToOpen = "e:\users\Parts\ThisIsANicePart.CATPart" ObjectForImport = "CATAnalysisImport" Dim AnalysisDocument As Document Set AnalysisDocument = CATIA.ActiveDocument Dim RootAnalysis As AnalysisManager Set RootAnalysis = AnalysisDocument.Analysis RootAnalysis.ImportDefineFile(FileToOpen,CATAnalysisImport,arrayOfVariant)
- Sub ImportFile( iDocumentPath)
-
Import an existing document in an analysis document.
- Deprecated:
- V5R15 use ImportDefineFile instead.
This document can of any type that implement the CATISamImportDefine interface.
- Example:
- The following example imports an CATPart document stored as FileToOpen file.
FileToOpen = "e:\users\Parts\ThisIsANicePart.CATPart" Dim AnalysisDocument As Document Set AnalysisDocument = CATIA.ActiveDocument Dim RootAnalysis As AnalysisManager Set RootAnalysis = AnalysisDocument.Analysis RootAnalysis.ImportFile(FileToOpen)