Hi, I'm trying to do some infill site analysis in CE. I have a current cga set up as detailed below:
version "2024.1"
attr houseWidth = 12 // X direction (width)
attr houseDepth = 11.75 // Z direction (depth)
attr houseHeight = 3 //Y direction (height)
@StartRule
Lot -->
alignScopeToAxes(y)
center(xz)
innerRectangle(houseWidth, houseDepth)
extrude(houseHeight)
I'm having issues at the "innerRectangle" phase. It is throwing an error that I have no idea how to fix.
It doesn't seem to like the comma or the last bracket in that line of code. I'm not the most knowledgeable coder so any help would be appreciated.
Cheers
Hi Louis, you are using invalid parameters for the innerRectangle operation. innerRectangle solely analyzes the geometry of the shape on which it operates and returns the largest possible rectangle within the shape, based on either its scope or edge. You cannot use home-made attributes such as your houseWidth and houseDepth.
In order to guide you as to how to solve your problem, it would be helpful if you could upload a sketch showing what you have and what you want.
Regards, Nic