Jump to content

Mesh Export Via Script


---
 Share

Recommended Posts

Hello,

I'm having a few issues with a script that contains mesh export functionality. 

All of the projects we have use different names for the part container in the project. This means that this export script won't export the mesh if the part container doesn't match the project parts name. In the example below 'Changeme'.

Is there a way to remove this or set it to select the mesh regardless of the container name? 

I only work with single part projects so I won't need this to work in a multi part project. 

Many Thanks


gom.script.sys.export_stl (
	bgr_coding=False, 
	binary=True, 
	color=False, 
	elements=gom.ElementSelection ({'category': ['key', 'elements', 'part', gom.app.project.parts['Changeme'], 'explorer_category', 'actual_part']}), 
	export_in_one_file=True, 
	export_stages_mode='current', 
	file='Folderlocation', 
	length_unit='default', 
	set_stl_color_bit=False)

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...