Lisp to adjust distance between surfaces with given variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
- Set the corners of the planer surface represented by points about a 1.0m above the counter surface.
- Insert the planer surface by using 3DALIGN
- Project the points representing the bottom of the posts from the counter surface onto the planer surface with the PROJECTGEOMETRY
- Connect the points that have the same x and y coordinate with a line.
- Use the QSELECT to select the lines and filter to see if they fall within the criteria.
- 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 surfaces