Jump to content

Lisp routine for spacing blocks


Chemra

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...