rekoj Posted September 23, 2011 Posted September 23, 2011 Hi, I'm jus starting learning AutoLisp, so maybe someone could provide me with some examples that I need? I am trying to create a lisp, that would draw a line , and several blocks on it. The line coordinates I would get using getpoint. When I've drawn the line, autolisp calculates how many blocks is needed, and puts them on the line. The amount of blocks depends of the line length. Distance between all the kons2 and kons1 block is never bigger then 70 (all the gaps between ar equal),if needed, aditional circle blocks can be added to the line. Distance from line ends - 10. And there's always has to be kons1 block on the line. Perhaps someone has an example I could use, or maybe it's few minutes job to do for someone? Would be gratefull for help.. Quote
MSasu Posted September 23, 2011 Posted September 23, 2011 Please take a look on VLAX-CURVE-GET* functions family – will allow you to parse the curve and list coordinates on it; take care that those extension functions must be activated (VL-LOAD-COM). Regards, Mircea Quote
Tharwat Posted September 23, 2011 Posted September 23, 2011 With group codes 10 and 11 with the function angle to get the angular direction between the start and the end points would handle the issue . Quote
BIGAL Posted September 25, 2011 Posted September 25, 2011 Mybe use a lisp to calculate spacing and then just use DIVIDE command saves on coding. Quote
Recommended Posts
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.