jdevalpine

SubdivideShapesSettings - setLotSubdivisionMethod

Discussion created by jdevalpine on Nov 14, 2011
Latest reply on Nov 18, 2014 by BTLeslie
Hi,

I am working on a python script that subdivides blocks (imported) based on some different parameters. To set the parameters I am using the SubdivideShapeSettings methods. Some of these class methods do not appear to exist, such as setLotSubdivisionMethod? Following is the function that I have defined:

[INDENT]def subdBlock(name):
    subds = SubdivideShapesSettings()
#    subds.setCornerAlignment('STREET_LENGTH')
    subds.setCornerAngleMax(90.0)
    subds.setCornerWidth(0.0)
    subds.setForceStreetAccess(0.0)
    subds.setIrregularity(0.3)
    subds.setLotAreaMax(1500.0)
    subds.setLotAreaMin(500.0)
    subds.setLotElevation("EVEN_MIN")
    subds.setLotMinWidth(10.0)
    subds.setSubdivisionRecursive("True")
    subds.setOffsetWidth(25.0)
#    subds.setSeed(0)
#    subds.setShallowLotFrac(1.0)
#    subds.setSimplify(4.0)
#    subds.setLotSubdivisionMethod("OFFSET")
    ce.subdivideShapes(name, subds)[/INDENT]

The commented items generate errors when I try to include them.

I am running CityEngine 2010.3 build 0124 (release, win32-64bit).

Thanks,

-Jack de Valpine

PS, Note I have tried to see if this has been addressed in the forum archives. However, I am relatively new to City Engine, so if this is FAQ or otherwise documented somewhere please point me in the right direction!

Outcomes