
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!! My name is Bruno and is my First post here!!
This Lisp (integral.lisp) evaluates the area of a curve (Numerical Integral) and generates a output file (CSV). I got this Lisp yesterday from Lee Mac, and I want to do some little modifications, but I don't know how. So please, if you could help me, I'll be very grateful. (watch the video to see how it works. Then I'll resume below)
This is how It works:
After load the Lisp, type " integrate ". Then, click on a curve (red), and click on the axis (cian). (axis = a Line with the same width of the curve [Width = "linear dimension", not the total length] , placed parallel to the curve. The same width of the curve is to get divide it into " n " uniforms divisions, as an Integral does)
Then, choose the number of divisions and press enter. So, the CSV file is generated.
I want to improve 3 things:
1-) The gray lines are created one by one. The logic of the program is begin to create the lines from start point to the end point of the axis (cian). I want to change this logic. Something like subtract the coordinates... Make the program subtracting not the end/start point, but the upper point of the lower point, or the point at right to the point more in the left, got it?
2-) As I said, we need a axis with the same "linear dimension" (width) of the curve. I mean, if I use a bigger line then the curve, ( or even a smaller, the calculations will be wrong. As the lisp needs to know the width, I'm thinking again in subtract the coordinates (the same I said above, Upper minus lower, or Right minus left), but the coordinates from the curve itself, not the axis.
3-) There is a weird bug on the code. For some reason, the Lisp isn't running fine with the curves inside the green rectangle (Open the drawning "bugs.dwg" ) attached to visualize it), but worked perfectly with the others (out of the rectangle). Why this happens? How to fix?
Thank you so much for you attention. You have no Idea on how this will help me!!! 🙂
Cheers!!
Solved! Go to Solution.