mousho Posted March 4, 2019 Share Posted March 4, 2019 please see the attached lisp this is a lisp which i am trying to add to what this lisp does is - adds a block at given intervals along a given line which the user chooses the block's name must be written in the lisp itself and cannot be changed in autocad at the moment, and the block is always placed parallel to the x axis (the block in the lisp is named "ground") the commands that i would like to add are 1. i would like the block to be able to be chosen by the user in Autocad itself 2. i would like the block to be added perpendicular to the line at the point of insertion (and not always in the x direction) 3. this should work similar to the way that autocad's "measure" command works, but for different spaced divisions along the line(eg: 20m=6m+6m+4m+3m+1m) thx ahead measure2.lsp Quote Link to comment Share on other sites More sharing options...
BIGAL Posted March 5, 2019 Share Posted March 5, 2019 Search for chainage.lsp has some answers to your question and has perp to pline for text or block. Also draw text or block at perp has been asked before did you do a search ? From a code point of view its, vl-getpointatdist and 1stderivate of obj at point. Quote Link to comment Share on other sites More sharing options...
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.