Jump to content

MEASURE INTERVALS


mousho

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...