Jump to content

Recommended Posts

Posted (edited)

I'm new to Lisp and trying calculate the distance from a wall to a polygon box, as well as the distance between two polygon boxes. Additionally, I need to determine the dimensions of both the polygon box and the wall. I'm using Lee Mac's dimensioning code as a reference and trying to modify it to achieve these calculations.can i get this type of outcome using lisp

 


Screenshot2024-09-04132031.png.64cb97ac80b34bd0c94eb0b54b218358.png

 

 

 

Screenshot2024-09-04133544.thumb.png.2ba0c5a5a49caa62441da51c14b1a3be.png

Edited by keku
  • SLW210 changed the title to find the dimension and polyline distance using AUTOLISP
Posted

One way is to pick a side then drag over the objects to be dimensioned picking say square off the outside line, then using intersectionwith can get all the dim points, for what you want pick a corner point and a side and done.

 

I dont use it but I think you can use Qdim also, others will comment. This task has been asked many times before, pretty sure answered at forums/autodesk.

 

Post a sample dwg please.

Posted

Thank you for your suggestions.

 

I’ve tried using Qdim, but unfortunately, it doesn’t support my objective.

I’m not familiar with intersectionwith or how to use it. If you have a code snippet or a sample image demonstrating its usage, I would greatly appreciate it.

 

I’ve attached the sample DWG file as requested.

Thank you for your assistance

 

distance demo drawing.dwg

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