Section 5.6 in the manual comes closest to what you want. It placed the objects along a line, but you can place them in other way as well.
HI, arno,I'm very sorry, maybe I didn't express myself clearly. We don't seem to mean the same thing. What I mean is that I want to export the generated building model. I just tried a new scene. You can take a look at my code. Which script do I need to export the BGL file of the building model?
my code
ImportOGR|C:\Users\Administrator\Desktop\test\sp\shp\map (5).osm|*|building;landuse|NOREPROJ
#
SplitGrid|AGN|*|building="*"
#
#Add attribute to indicate the type of building
#1 = ALMOST RECTANGLE (BASED ON AREA RATIO)
#2 = REGULAR SHAPED (MANY PARALLEL EDGES)
#3 = CONVEX POLYGONS
#4 = CONCAVE POLYGONS
#
AddAttribute|FTYPE="POLYGON" And building="*"|Integer;BUILDTYPE|5
AddAttribute|FTYPE="POLYGON" And building="*" And BUILDTYPE=5 And FAREARAT>0.80|Integer;BUILDTYPE|1
AddAttribute|FTYPE="POLYGON" And building="*" And BUILDTYPE=5 And FNUMVERT<10 And FNUMPERPANG>3 And FNUMNOTPAR<2|Integer;BUILDTYPE|3
AddAttribute|FTYPE="POLYGON" And building="*" And BUILDTYPE=5 And FCONVEX=1|Integer;BUILDTYPE|4
#
# Classify industrial/commercial buildings
AddAttributeIfInside|FTYPE="POLYGON" And building="*"|LUCODE=16|String;BUILDCAT|INDUSTRIAL
AddAttributeIfInside|FTYPE="POLYGON" And building="*"|LUCODE=15|String;BUILDCAT|COMMERCIAL
# Add attribute for roof type
AddAttribute|FTYPE="POLYGON" And building="*" And FWIDTH>5|String;ROOFTYPE|PEAKED_ALL
AddAttribute|FTYPE="POLYGON" And building="*" And FWIDTH>5 And FLENGTH<12|String;ROOFTYPE|PEAKED_SIMPLE
AddAttribute|FTYPE="POLYGON" And building="*" And FWIDTH>20|String;ROOFTYPE|PEAKED_LOW_PITCH
AddAttribute|BUILDCAT="INDUSTRIAL"|String;ROOFTYPE|PEAKED_LOW_PITCH
AddAttribute|BUILDCAT="COMMERCIAL"|String;ROOFTYPE|PEAKED_LOW_PITCH
# Create buildings autogen
CreateAGNGenBuild|BUILDTYPE<3 And ROOFTYPE="PEAKED_ALL"|{c05c5106-d562-4c23-89b8-a4be7495b57c}|MAXRATIO=2
CreateAGNGenBuild|BUILDTYPE<3 And ROOFTYPE="PEAKED_SIMPLE"|{d4ee02a2-ed47-4f10-b98c-502516983383}
CreateAGNGenBuild|BUILDTYPE<3 And ROOFTYPE="PEAKED_LOW_PITCH"|{a9b0e686-0758-4294-a760-9bb4fd341621}
ExportAGN|P3D v4|C:\Users\Administrator\Desktop\test\sp\texture
ExportBGL|P3D v4|ceshi|C:\Users\Administrator\Desktop\test\sp\bgl|KEEPXML