Jump to content

Create a List of Elements in 3D view for python


---
 Share

Recommended Posts

Hello,

I'm actually making a quick python script.

I made a loop in the report pages to restore the 3D view.
I need to create a list of elements which are visible in 3D view and only in the 3D view, of the restored report page.
Then export the file.

But When I record my script and press the list filter button, there is no way I can get the list of elements visible on the 3D view.
image.png.bcfb504e9dfc436c4ee07d4b8e843dfb.png

 

This list should be a variable in my script like :

 

        gom.script.table.export_table_contents (
            cell_separator=',', 
            codec='utf-8', 
            decimal_separator='.', 
            elements= LIST OF ELEMENTS OF THE ACTUAL 3D VIEW INSIDE THE LOOP,             
            file= 'D:/tmp/Sation/Pour_test/JOB173-24/Overview' + str(j) + '.csv', 
            header_export=True, 
            line_feed='\r\n', 
            sort_column=0, 
            sort_order='ascending', 
            template_name='Overview', 
            text_quoting='', 
            write_one_line_per_element=False)

 

Is there a function that gives the list of elements (surface deviation, min or max labels,...) visible in the 3D view ?

Many thanks for your help and feedback.

Kind Regards

Hugues

 



 

Link to comment
Share on other sites

 Share

×
×
  • Create New...