Posted on Leave a comment

Lisp of the Day


(fix number)

Will return a real to an integer.

A coworker that uses civil needed to make a polyline that ran along a bank. He needed to just move his mouse along an image to show where the top of a ditch was. I gave the lisp 2 inputs which were start point and increment distance and it places a vertex for a polyline on where the mouse moves over the drawing area based off the previous point and the distance typed in.

(fix 2.3942) will return 2

Leave a Reply