pycatia.abq_automation_interfaces.abq_image_query¶
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.abq_automation_interfaces.abq_image_query.ABQImageQuery(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectABQImageQueryProvides an image query object.Role: Use to query result images for values on nodes / elements / groups. Image query can be done simultaneously for multiple images. User can call methods such as ExportImageData or ExportGroupImageData. Use following method to get an object of ABQImageQuery Dim abqCase As ABQAnalysisCase Dim ImageQuery As ABQImageQuery Set ImageQuery = abqCase.GetItem (“ABQVBImageQuery”)- export_group_image_data(i_images_list: AnalysisImages, i_group: AnalysisEntity, i_type: int, i_file: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ExportGroupImageData(AnalysisImages iImagesList,AnalysisEntity iGroup,ABQEntityType iType,CATBSTR iFile)Method to export image data in text or excel format for agroup.The data in a row will be in following order: Node / element id, Xcoordinate, Y coordinate, Z coordinate, value for image 1, value for image 2,…File type will be identified using file extension. If file extension is‘xls’ then it will be exported in excel otherwise the file type will beconsidered as textParameters:iImagesListList of images to exportiGroupCATIA group or display group to query image dataiTypeEntity type to query.Legal valuesABQ_NODEABQ_ELEMENTiFileFile path to export data.Example:The following example exports image query data to specifiedfileDim ImageQuery As ABQImageQueryDim File As FileSystemDim MyGroup As AnalysisEntityDim imageList As AnalysisImagesImageQuery.ExportImageData imageList, MyGroup, ABQ_NODE,File
- Parameters:
i_images_list (AnalysisImages) –
i_group (AnalysisEntity) –
i_type (int) – enum abq_entity_type
i_file (str) –
- Return type:
None
- export_image_data(i_images_list: AnalysisImages, i_list_numbers: tuple, i_type: int, i_file: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ExportImageData(AnalysisImages iImagesList,CATSafeArrayVariant iListNumbers,ABQEntityType iType,CATBSTR iFile)Method to export image data in text or excel format.The data in a row will be in following order: Node / element id, Xcoordinate, Y coordinate, Z coordinate, value for image 1, value for image 2,…File type will be identified using file extension. If file extension is‘xls’ then it will be exported in excel otherwise the file type will beconsidered as textParameters:iImagesListList of images to exportiListNumbersList of entity indices to export (node numbers or element numbers)iTypeEntity type to query.Legal valuesABQ_NODEABQ_ELEMENTiFileFile path to export dataExample:The following example exports image query data to specifiedfileDim ImageQuery As ABQImageQueryDim File As FileSystemDim EntityList As CATSafeArrayVariantDim imageList As AnalysisImagesImageQuery.ExportImageData imageList, EntityList, ABQ_NODE,File
- Parameters:
i_images_list (AnalysisImages) –
i_list_numbers (tuple) –
i_type (int) – enum abq_entity_type
i_file (str) –
- Return type:
None