[Ol...] Posted November 7, 2023 Share Posted November 7, 2023 Hello everyone, Is it possible to export elements (inspection) via a *_GOM selection? The inspectionsnames (criterion) can vary but the script should be flexible. I know it is possible to select elements and past them, but how i can export the pasted elements? or export by wildcard I am open for inspirations ! Link to comment Share on other sites More sharing options...
[98...] Posted November 7, 2023 Share Posted November 7, 2023 replace the list of elements with a filter expression (also replace YOUR_FILE_HERE with your export file path) so it would look like this gom.script.sys.export_gom_xml ( angle_unit='default', decimal_places=4, elements=gom.app.project.inspection.filter('"_GOM" in name'), export_stages_mode='current', file=YOUR_FILE_HERE, format=gom.File ('giefv20_stages.xsl'), length_unit='default', use_imported_names_for_export=True) Link to comment Share on other sites More sharing options...
[Ol...] Posted November 7, 2023 Author Share Posted November 7, 2023 Hi Robert, very good. works fine now. THX for the good and fast support ! 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