Extrude 2D building polygons to 3D

At the recent BE Together event in Philadelphia, I demonstrated a tool to extrude building foot print polygons into 3D objects.  The program takes as input an XFM polygon feature definition with properties that indicate height.  An optional factor can be applied in case the property indicates the number of floors.  The program and a sample data file of the 4th arrondissment in Paris are attached.  This file came from a SHP file of the entire city of Paris located at: http://opendata.paris.fr/opendata/jsp/site/Portal.jsp

The program is used as follows:

Place the attached program (.DLL and .MDL) in a folder such as MDLSYS/ASNEEDED

In Bentley Map, keyin MDL LOAD Extrude1

The keyin to extrude the polygons is of the following format:

feature extrude class="classname" property=propertyname factor=double mode=[0,1]

class=classname

required, case-sensitive, defines feature class to process

property=propertyname

required, case-sensitive, defines business property to use for extrusion height value.

factor=double

optional, a double value that defines a factor which is applied to extrusion height, with 1.0 being the current default value.

mode=[0,1]

optional, 0 solid (default), 1 feature (requires polygon collection feature class)

Example keyin for the attached data set is:

feature extrude class=VOL_BATI property=NB_PL factor=4

Enter a data point to start the process

If a fence or selection set is active then it will be used.  Otherwise all features of the selected type will be processed.

Thanks to Jeff Bielefeld for creating this program.

Please note this example is provided as is.  Please test on a copy of your data.

extrude1b.zip
Parents Reply Children
No Data