Jump to content

[HELP] Lisp Parallelism Check


luusca

Recommended Posts

Hello people, can someone help me?

I'm trying to find a lisp like the example below, but i don't found.

 

It is a lisp checking the parallelism between the lines, the ideal is 1.5m when it is larger than this, paint the lines.

 

 

 

RESOLVED

Image - Example.jpg

Edited by luusca
Link to comment
Share on other sites

Quick and dirty..

 

replace

(entmake (list '(0 . "LINE") (cons 10 p1) (cons 11 p2)))

 

with

(if (> (distance p1 p2) 1.5)
 (entmake (list '(0 . "LINE") '(62 . 6) (cons 10 p1) (cons 11 p2)))
 (entmake (list '(0 . "LINE") (cons 10 p1) (cons 11 p2)))
)

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