Page 1 of 1

Accessing geometry information via the API

Posted: Wed May 29, 2019 12:34 pm
by tluth
Hi there,

I'm looking to get the surface geometry of my model through the API.

I thought

Code: Select all

body.get_surfaces().get_properties()
might work but this only returns id, type, orientation, aps_handle, thickness, tilt, and area.

Essentially all I want is the vertex coordinates for each surface.

Thanks in advance for any help :)

Re: Accessing geometry information via the API

Posted: Thu May 30, 2019 7:09 am
by izzylys
Hi tluth,

As far as I can tell, this isn't possible. I wanted this information as well and ended up having to export to gbXML and parse that using ElementTree: https://docs.python.org/3.1/library/xml ... ttree.html

If anything has changed about this problem, I would love to know!

Re: Accessing geometry information via the API

Posted: Tue Jun 04, 2019 8:33 am
by tluth
Yeah that's the path I've gone down as well.