Chemra Posted July 21, 2016 Posted July 21, 2016 Hello Everyone, I am looking for a LISP routine which user defines an area (rectangle) and a blocks and 2 numbers x & y (array dimension) and the the routine place the amount of blocks inside the rectangle. NB: the distance of block-edge of rectangle shall be distance of block-block divided by 2. I need to use this routine to place for me the lighting fixtures. lights must be away from walls half distance of light to light. Thank you experts. Chemra Quote
BIGAL Posted July 21, 2016 Posted July 21, 2016 There is a lot more to this but its not hard you need to define the rules ok a light is half a light from edge but which light ? How big is it in X & Y etc. A down light at 1.2m c-c a flouro is already 1.2m long at 2.4m spacing and so on. You can use array or a double repeat loop. Basic lisp code. Me I would search a bit harder its already out there, hard part is finding the search criteria. Quote
Chemra Posted July 21, 2016 Author Posted July 21, 2016 Thank you for your reply BIGAL. Yeah, I got your point, but the routine which i am looking for will get the distance from center to center. it will measure the rectangle and then will divide it to the number x or y. for the time being i am using divide function, but it takes me a lot of time. I am working now on a huge project and i am new to lisp programming, that's why i am seeking help. Quote
AONE_LED Posted 22 minutes ago Posted 22 minutes ago The half-wall offset you want is just centre-to-centre spacing divided by two. Measure the room length L and width W, then decide how many fixtures you need in each direction (Nx and Ny). Spacing in X is L/Nx and in Y is W/Ny. Place the first fixture at (L/Nx)/2, (W/Ny)/2 from the corner, then ARRAY it Nx columns by Ny rows with those same column and row distances. That automatically keeps every fixture a half-spacing off the walls. ARRAY is enough for rectangular rooms; a LISP only needs two corner points plus Nx and Ny, then the same maths. Check the fixture's maximum spacing-to-mounting-height ratio so the grid is not too wide for the ceiling height. For non-rectangular rooms, hatch or BOUNDARY the area first and insert only inside that outline. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.