AnsweredAssumed Answered

How to create a graph using python in CityEngine?

Question asked by ryu@aditazz.com on Nov 3, 2016
Latest reply on Nov 4, 2016 by TFuchs-esristaff

Hello,

I would like to create a graph (street) using the python interface.  I have this:

 

graphlayer = ce.addGraphLayer('streets')

 

vertices = [100,0,100, 1000,0,100, 1000,0,500, 100,0,500, 100,0,100]

graph = ce.createGraphSegments(graphlayer, vertices)

 

But the resulting graph is not "closed".  I have set the last vertex to be the same as the first, but that did not work.

I would like to also create the "Block" and the "Lots" automatically, as if I were using the GUI.

 

Thanks,

Robert

Outcomes