Hi!
What is the best way to get building / rooftops aligned?
Like this:
My example:
Is there any command to get the rooftop correctly aligned, regarding the slope on the terrain?
Thank you guys.
Best,
JM
It worked!1
Tahnk you so much, Thomas!
Joao Pedro Marques This rule should give you a building on a leveled lot at the minimum of sloped shapes:
attr buildingHeight = 15 @StartRule Lot --> alignScopeToAxes(y) s('1,0,'1) extrude( buildingHeight )<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Are you using CE 2016? - I think flatTop CGA was only introduced at 2016.
When you align shapes to terrain, instead of projecting, use translate to minimum then extrude the building through the terrain. I don't know if there's another way to replicate flatTop.
Thank you David, but something is missing.
i found the topic in the help faq: Help -
But still cant figure it how to work
Just building off the comment from Rasa Ra it would be something like this:
#initalize attribute set to a particular value or 0 attr NPisos = 10 attr avgFloorHeight = 3 @StartRule Lot --> extrude(world.up.flatTop, NPisos * avgFloorHeight) <SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
I'm currenty using this cga for the building correct heights (based on geodatabase atrributes) :
#initalize attribute set to a particular value or 0attr NPisos = 10attr avgFloorHeight = 3 @StartRule Lot --> extrude(NPisos * avgFloorHeight)
#initalize attribute set to a particular value or 0
attr NPisos = 10attr avgFloorHeight = 3
@StartRule Lot --> extrude(NPisos * avgFloorHeight)
NPisos is Number of floors.
How can i add that line in my cga? What would be the value?
Thank you
extrude(world.up.flatTop, value)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.