chlh_jd, only if you have spare time... Look attached DWG... Hope I am not exaggerating...
(My posted LSP files updated and reattached in my previous post)
M.R.
[EDIT] : Attached one more...
Thanks...
Ribar , thank you for test
Although I have a better software to generate sloped roof, and this routine did take me a lot time , but I still want to improve it
Just to mention, SOLUTION WASNT FINISHED.DWG is solvable through multiple attempts with error prompts from one of 2 versions - I think (while) 2droof.lsp...
Just uncomment these lines :
And this - note (setq err t) :
And this - note (setq errr 0) :
M.R.
Just like I've said ,if want to let it no catch any error , other word , to suit for any case (In fact, because there is precision in the calculation can not be done , I agree you that some case must be scaled , it also can be determine in the routine , after get the roof lines scaling back ) , It must give up some efficiency .
For this reason , I would like to deal crash side in the last part of the main routine , insted of traversing each side over and over again .
I'll take some time to test your programe , but today is busy , Sorry .
I post the V0.7 programe , it show how to solve some error in the last part and did get over the case in your post dwg .
Enjoy !