Lisp to adjust distance between surfaces with given variables

Lisp to adjust distance between surfaces with given variables

jsaayman
Advocate Advocate
938 Views
4 Replies
Message 1 of 5

Lisp to adjust distance between surfaces with given variables

jsaayman
Advocate
Advocate

I have a very difficult problem that I would like to use a lips script to solve, but I don't have the stills to solve it.

 

I have a 3d counter surface and a square 3d planer surface over it. I have 180 number of points and known x and y positions that represent the locations of posts. I have to set the distance of the planer surface over the 3d counter surface so that the distance (length of the postes represented by lines) is between 1.0m and 1.5m.

 

This is very much an iterative process and currently I use the process listed blow.

  1. Set the corners of the planer surface represented by points about a 1.0m above the counter surface.
  2. Insert the planer surface by using 3DALIGN
  3. Project the points representing the bottom of the posts from the counter surface onto the planer surface with the PROJECTGEOMETRY
  4. Connect the points that have the same x and y coordinate with a line. 
  5. Use the QSELECT to select the lines and filter to see if they fall within the criteria.
  6. Repreat the process from 1 to 5 until the lines all fall within the criteria by adjusting the slope of the planer surface

What I would like to know is, is there a way to create a lisp file or script that will run the process and find a solution?

I mean a script that will change the slope fo the planer surface and until the lines have the correct length according to the criteria.Screen shot of the surfacesScreen shot of the surfaces

0 Likes
939 Views
4 Replies
Replies (4)
Message 2 of 5

marko_ribar
Advisor
Advisor

A sample DWG with portion representing those surfaces entities involved in process would help better to understand the task you need to automate... Also description of your procedure with steps / samples showing each before / after evaluation of master drawing may be needful... The more information you describe, better understanding of your problem will be and possibly better solution...

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Message 3 of 5

jsaayman
Advocate
Advocate

Hi @marko_ribar

 

Thank you for replying to my post. I've created a screen recording of the process for you and attached it to my reply.

 

I've also uploaded the dwg file for you. 

You can download the file for this dropbox link https://www.dropbox.com/s/op3k9atqmyhgmys/Post%20layout.dwg?dl=0

0 Likes
Message 4 of 5

marko_ribar
Advisor
Advisor

Those points that are to be projected are in 3D - on different elevations... You can't know how to adjust slope to fulfill all length requirements - I took 4 pictures describing your sample area with lengths of posts in your ranges... Simply there is no way you can adjust slope correctly - edge posts are higher and the one in the middle is lower then required... So even if you move complete plane along Z axis you can't satisfy input ranges... Beside all this you want to automate 3DALIGN for which you basically need starting input - magenta points and then process aligning not in one slope direction parallel to X or Y, but in direction that is unknown - those magenta points elevations may vary according to no particular rule - only thing is that 4th point must be in plane of surface... According to my grab of pictures there couldn't be settled any rule and therefore no algorithm - this can be done only manually and still you may fail to fulfill ranges of post lengths... This is my opinion, maybe someone think differently, who knows...

Or maybe I didn't understand your request even with DWG posted and VIDEO... Sorry...

M.R.pic01.jpgpic02.jpgpic03.jpgpic04.jpg

 

 

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Message 5 of 5

jsaayman
Advocate
Advocate

@marko_ribar thank for your input and trying to resolve the problem. 

 

Would help of I could condens the process in the video into something that is a little more stream lined. Then it would cut down on the time I'm currently spending.

0 Likes