Arrange the vertical aligned beam within a rectangle with horizontal alignment

Arrange the vertical aligned beam within a rectangle with horizontal alignment

Anonymous
Not applicable
974 Views
5 Replies
Message 1 of 6

Arrange the vertical aligned beam within a rectangle with horizontal alignment

Anonymous
Not applicable

I have to compose the sheet for printing in our office. We have all the beam arranged vertically in the drawing. We want a lisp so that it arranges the beam within a rectangle. The rectangle can be of any size.

NOTE:

The beams are already enclosed in a rectangle on a specific layer named Raft Beam.

The beams are to be arranged in any order so that maximum space within the rectangle is used.

I have enclosed an example of the drawing.

Thank you in advance.

PL BEAM DETAIL-1-Model.png

 

0 Likes
Accepted solutions (1)
975 Views
5 Replies
Replies (5)
Message 2 of 6

dbhunia
Advisor
Advisor
Accepted solution

Try this............ (Extended part of your previous post............ This)............. I have considered your Vertical order Top- bottom  into Horizontal order Left-Right.

 

You may need to do some work in the drawing ............

 

 


Debashis Bhunia
Co-Founder of Geometrifying Trigonometry(C)
________________________________________________
Walking is the First step of Running, Technique comes Next....
Message 3 of 6

dani-perez
Advocate
Advocate

Hello dbhunia,

 

Thanks for the lsp, it's very interesting. Could be from Vertical order bottom-top  into Horizontal order Left-Right?

0 Likes
Message 4 of 6

dbhunia
Advisor
Advisor

Yes it is possible ....... Now I left office ...... give you solution later.....


Debashis Bhunia
Co-Founder of Geometrifying Trigonometry(C)
________________________________________________
Walking is the First step of Running, Technique comes Next....
0 Likes
Message 5 of 6

dbhunia
Advisor
Advisor

Change this line.......

 

(setq Rec_Cor_Sor (vl-sort lst_Sor (function (lambda (e1 e2) (> (cadr e1) (cadr e2))))))

into.......

 

(setq Rec_Cor_Sor (vl-sort lst_Sor (function (lambda (e1 e2) (< (cadr e1) (cadr e2))))))

 

 


Debashis Bhunia
Co-Founder of Geometrifying Trigonometry(C)
________________________________________________
Walking is the First step of Running, Technique comes Next....
0 Likes
Message 6 of 6

dani-perez
Advocate
Advocate

Hello dbhunia,

 

It works perfectly!!

 

thanks.

0 Likes