pycatia.analysis_interfaces.analysis_manager¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.analysis_interfaces.analysis_manager.AnalysisManager(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectAnalysisManagerRepresents the root object inside an analysis document.It aggregates all the objects making up an analysis document.- property analysis_models: AnalysisModels¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property AnalysisModels() As AnalysisModels (Read Only)Returns the analysis model collection from the current analysismanager.Example:The following example returns from RootAnalysis the root analysisobject of the active document, assumed to be an Analysis document, thecollection of analysis models.Dim AnalysisDocument As DocumentSet AnalysisDocument = CATIA.ActiveDocumentDim RootAnalysis As AnalysisManagerSet RootAnalysis = AnalysisDocument.AnalysisDim analysisModels As AnalysisModelsSet analysisModels = RootAnalysis.AnalysisModels
- Return type:
- property analysis_sets: AnalysisSets¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property AnalysisSets() As AnalysisSets (Read Only)Returns the analysis sets collection associated with an analysis manager.This collection allows to access the Analysis Connection Manager thataggregates the Analysis Connection features.Returns:a collection of CATIAAnalysisSets.
- Return type:
- create_reference_from_geometry(i_product: Product, i_geometry: Reference) Reference ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateReferenceFromGeometry(Product iProduct,Reference iGeometry) As ReferenceCreates a reference from a geometry. This geometry must in defined in adocument rerecened in the CATIAAnalysisLinkedDocumentscollection.Parameters:iProductThe product of the geometry to be referenced that defines theinstance of the geometry.iGeometryThe geometry to be referenced. As a reference, it can be anCATIABoundary object of a mechanical feature.Returns:a reference of the couple (iProduct, iGeometry).
- create_reference_from_object(i_object: AnyObject) Reference ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateReferenceFromObject(AnyObject iObject) AsReferenceCreates a reference from an analysis object. Use of reference allows auniform handling of anay objects.Parameters:iObjectThe analysis object to be referenced. It can be an AnalysisEntityor an AnalysisSetReturns:The reference to the object.
- import_(i_document_to_import: Document) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Import(Document iDocumentToImport)Import an existing document in an analysis document . This document can ofany type that implement the CATIADocument interface. This is implemented forinternal document formats. (like Part or Productdocuments).Example:The following example imports an opened CATPartdocumentDim AnalysisDocument As DocumentDim PartDocument As DocumentSet AnalysisDocument = CATIA.ActiveDocumentDim RootAnalysis As AnalysisManagerSet RootAnalysis = AnalysisDocument.AnalysisRootAnalysis.Import(PartDocument)
- Parameters:
i_document_to_import (Document) –
- Return type:
None
- import_define_file(i_document_path: str, i_type_late: str, i_values: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ImportDefineFile(CATBSTR iDocumentPath,CATBSTR iTypeLate,CATSafeArrayVariant iValues)Import an existing document in an analysis document. This document can ofany type that is managed by the CATISamImportDefineinterface.Example:The following example imports an CATPart document stored as FileToOpenfile. This example is also use the CATAnalysisImport Object. This object allowto import Part, Product or Analysis documents. As of today no parameters aremandatory for this object.Dim arrayOfVariant(0)FileToOpen = “e:/users/Parts/ThisIsANicePart.CATPart”ObjectForImport = “CATAnalysisImport”Dim AnalysisDocument As DocumentSet AnalysisDocument = CATIA.ActiveDocumentDim RootAnalysis As AnalysisManagerSet RootAnalysis = AnalysisDocument.AnalysisRootAnalysis.ImportDefineFile(FileToOpen,CATAnalysisImport,arrayOfVariant)
- Parameters:
i_document_path (str) –
i_type_late (str) –
i_values (tuple) –
- Return type:
None
- import_file(i_document_path: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ImportFile(CATBSTR iDocumentPath)Import an existing document in an analysis document.Deprecated:V5R15 use ImportDefineFile instead. This document can of any type thatimplement the CATISamImportDefine interface.Example:The following example imports an CATPart document stored asFileToOpen file.FileToOpen = “e:/users/Parts/ThisIsANicePart.CATPart”Dim AnalysisDocument As DocumentSet AnalysisDocument = CATIA.ActiveDocumentDim RootAnalysis As AnalysisManagerSet RootAnalysis = AnalysisDocument.AnalysisRootAnalysis.ImportFile(FileToOpen)
- Parameters:
i_document_path (str) –
- Return type:
None
- property linked_documents: AnalysisLinkedDocuments¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property LinkedDocuments() As AnalysisLinkedDocuments (ReadOnly)Returns the collection containing the documents linked to analysisdocument. All the CATIA documents that are linked to the different objects(like AnalysisMeshPart of Analysis Entity) might be accessed thru thatcollection.Example:The following example returns in documents the linked documents of theAnalysisDocument :Dim AnalysisDocument As DocumentSet AnalysisDocument = CATIA.ActiveDocumentDim RootAnalysis As AnalysisManagerSet RootAnalysis = AnalysisDocument.AnalysisDim Documents As AnalysisLinkedDocumentsSet Documents = RootAnalysis.LinkedDocuments
- Return type:
- property parameters: Parameters¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Parameters() As Parameters (Read Only)Returns the collection object containing the analysis parameters. All theparameters that are defined in analysis objects might be accessed thru thatcollection.Example:The following example returns in params the parameters of theRootAnalysis from the AnalysisDocument document:Dim AnalysisDocument As DocumentSet AnalysisDocument = CATIA.ActiveDocumentDim RootAnalysis As AnalysisManagerSet RootAnalysis = AnalysisDocument.AnalysisDim params As CATIAParametersSet params = RootAnalysis.Parameters
- Return type:
- property relations: Relations¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Relations() As Relations (Read Only)Returns the collection object containing the analysis relations. All therelations that are defined in analysis objects might be accessed thru thatcollection.Example:The following example returns in relation the relations of theRootAnalysis from the AnalysisDocument document:Dim AnalysisDocument As DocumentSet AnalysisDocument = CATIA.ActiveDocumentDim RootAnalysis As AnalysisManagerSet RootAnalysis = AnalysisDocument.AnalysisDim relation As CATIARelationsSet relation = RootAnalysis.Relations
- Return type: