Jump to content

Multiselect Wildcads Export


---
 Share

Recommended Posts

Hello everyone, 
Is it possible to export elements (inspection) via a *_GOM selection?
The inspectionsnames (criterion) can vary but the script should be flexible.

image.png.65560f8583965740ee627be2471b06db.png

I know it is possible to select elements and past them, but how i can export the pasted elements? or export by wildcard

image.png.3c53c6d7db694fc2748b931e8a783d0a.png

I am open for inspirations !

 

 

Link to comment
Share on other sites

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

 Share

×
×
  • Create New...