[Fr...] Posted September 26 Share Posted September 26 (edited) I am working on scripting for export csv file, my script is like below, elem = gom.ElementSelection ([gom.app.project.inspection['F1895734E212BR_Z-TXH.X'], gom.app.project.inspection['F1895734E212DL_Z-TXH.Y'], gom.app.project.inspection['F1895734E048BL_Z-TXH.Y'], gom.app.project.inspection['F1895734E212CR_Z-TXH.X'], gom.script.table.export_table_contents ( additional_information='\nProject: Model - S\nPart Name: $format (user_part, "", show_unit=false, date_format=\'M/d/yyyy\')$\nPart Number: $format (user_part_nr, "", show_unit=false, date_format=\'M/d/yyyy\')$\nSample Number: $format (user_serial_nr, "", show_unit=false, date_format=\'M/d/yyyy\')$\nInspector: $format (user_inspector, "", show_unit=false, date_format=\'M/d/yyyy\')$\nDate: $format (user_date, "", show_unit=false, date_format=\'M/d/yyyy\')$', cell_separator=',', codec='iso 8859-1', decimal_separator='.', elements= elem, file= filenameA, header_export=True, line_feed='\n', sort_column=0, sort_order='ascending', template_name='Overview', text_quoting='', write_one_line_per_element=False) How do i get "elem = gom.ElementSelection ([gom.app.project.inspection......" to get all inspection points without specified by each point's name? Thanks a lot. Edited September 26 Link to comment Share on other sites More sharing options...
[Ma...] Posted September 27 Share Posted September 27 Hi, You can use the function gom.ElementSelection() as described in Selecting elements in scripts — Add-On Documentation (zeissiqs.github.io). For example: elements=gom.ElementSelection ( {'category': [ 'key', 'elements', 'part', gom.app.project.parts['Part'], 'explorer_category', 'inspection', 'object_family', 'geometrical_element', 'type', 'inspection_point' ]} ) Best regards, Matthias Prinke Link to comment Share on other sites More sharing options...
[Fr...] Posted October 2 Author Share Posted October 2 thanks Matt. I got it works. Best. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in