Accessing geometry information via the API

The VE Python API allows users create simple programs using the Python Programming Language, to interact with a VE Model and/or Vista Results File
Post Reply
tluth
VE Newbie
VE Newbie
Posts: 2
Joined: Wed May 29, 2019 12:27 pm

Accessing geometry information via the API

Post 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 :)
izzylys
VE Newbie
VE Newbie
Posts: 7
Joined: Fri May 03, 2019 3:45 pm

Re: Accessing geometry information via the API

Post 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!
tluth
VE Newbie
VE Newbie
Posts: 2
Joined: Wed May 29, 2019 12:27 pm

Re: Accessing geometry information via the API

Post by tluth »

Yeah that's the path I've gone down as well.
Post Reply