Jump to content

lisp to find/highlight the offset value below 0.5m


amb2301

Recommended Posts

Hi friends,
  i have a task to find out the offset distance, which is below 0.5m offset then i need a lisp to highlight or circle that location.
please consider only the pline offsets & ignore line offsets.
could someone please help me to do this task.

Thanks in Advance.

Link to comment
Share on other sites

5 hours ago, BIGAL said:

Need more info a dwg or image at least.

 Thanks for looking on this thread Sir, 

my dwg file size is so big, so i m just keeping the small part of it in this sample, i have marked the offset below 0.5m in green circled, 

could you please have a look on it.offset_sample.dwg

Link to comment
Share on other sites

Just an idea not code if you say draw a ploygon at say middle of a pline say 0.6 radius then use that with ssget "F" it will look for something at less that 0.5.

 

image.png.f299fa0987e6ff586bffa493ed15d372.png

 

(command "polygon" 10 inst "I" 0.6)
(setq co-ord (mapcar 'cdr (vl-remove-if-not '(lambda (x) (= (car x) 10)) (entget (entlast)))))
(setq ss3 (ssget "F" co-ord (list (cons 0 "LWPOLYLINE"))))

 

Link to comment
Share on other sites

7 hours ago, BIGAL said:

then use that with ssget "F" it will look for something at less that 0.5.

Sir sorry for the late reply, there were some issues in my computer, so i cant able to check/reply you,

could you please provide some sample, so it will be easier for me to understand.

 

Sir , Actually  i have 1000's of instances like this in each dwg itself, so if am manually draw 0.6m circle in each pline, i will take more time.

so i m looking for a lisp to do this task. If possible please tell me Sir.

 

Link to comment
Share on other sites

8 hours ago, amb2301 said:

Sir , Actually  i have 1000's of instances like this in each dwg itself, so if am manually draw 0.6m circle in each pline, i will take more time.

so i m looking for a lisp to do this task. If possible please tell me Sir.

 

 Would you pick as you guess it is near 0.5 m or want to check along the PLINE , at a given distance ,  and mark where it happen the OFFSET is > 0.5 ?

Link to comment
Share on other sites

19 hours ago, devitg said:

Would you pick as you guess it is near 0.5 m or want to check along the PLINE , at a given distance ,  and mark where it happen the OFFSET is > 0.5 ?

Sir, thanks for looking on it, 

Yes i want to check along wherever the pline with offset of below 0.5m.

Actually i need to do Quality checking of each drawings & mark the offset distance, which is below 0.5m.

 

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