I posted to AutoCAD forum not realizing there is a seperate AutoCAD architecture forum. http://forums.autodesk.com/t5/AutoCAD-2012/Generat
Same post below:
Is there a way to generate a roof based from plines? Like this but without tracing? I need to generate multiple roofs at once with the same slope ect.
Solved! Go to Solution.
On the Design Palette, Right Click Roof and you will see the option to Apply Tool Properties to linework and walls. You cannot, however, create multiple roofs from multiple closed polylines with one execution of this command. You will need to repeat the process for each closed polyline in your drawing.
Yes, KathyMoffa ,
I think you are right . one can select any group of wall and/or polylines.
roof would be created on the outer contour of any of this elements :
roof height would be get "electrically" from the wall height.
maybe it is a little bit "secret" roof feaure
after some testing I came to this code.
a) polylines must be lwpolylines, if they are heavy polylines use the "convertpoly" command to convert the polylines into
Light (lwpolylines) before you run the code.
b) minimally tested.
Hope that helps,
I explained the same thing in the AutoCAD forum with no response
I did read what do you wrote in the AutoCAD forum, notice that I usually don't use use AutoCAD Architecture, and I was helping the OP with a small routine that generated rectangular roofs, after he could join the roofs with the command "union", getting the roofs he wanted.
When I started trying to use the command "RoofToolToLinework" from AutoCAD Architecture, I realized that the command only accept Lwpolylines, as you said, but I did not like the the final result, so I used the command "RoofAdd" and I realized that it would be easier to scale all entities to mm, as you said, than configure all the roof elements to meters, in the end, I used the lwpolylines in my code, because it was already too tired and very lazy, to write a few more lines of code and include the heavy polylines object it...
This works exactly how I need it to work. Thanks for all your help.
dbroad I thought I did respond to you. Your right the lines were meters not milimeters and I did need to convert to light polylines using the convert poly command. Thanks.