Jump to content

Recommended Posts

Posted

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..

Posted

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

Posted

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 .

Posted

Mybe use a lisp to calculate spacing and then just use DIVIDE command saves on coding.

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...