Jump to content

Recommended Posts

Posted

We use mlines quite frequently in our office showing beam/headers. Nearly all will extend to the nearest intersection. I know mlines can be difficult to work with..how hard would it be to have mlines extend to the nearest intersection after being drawn? Thank you for any help!

Posted

Finding the intersections - easy. Extending the Mline - quite difficult I should imagine.

 

Finding the nearest intersections would certainly be possible since an VLA MLine Object has the IntersectWith method, so this could be achieved simply by finding the intersections between the MLine and all objects in the surrounding area (with the Extend flag set to extend the MLine), then sorting these intersections by distance from the MLine.

 

Extending would be far more difficult, since, although the coordinates of the endpoints of the MLine could be altered to lie at the intersections, the elements that make up the MLine Style would not be trimmed to meet the object as per the Extend Command.

Posted

Thank you so much for the reply Leemac. I can stick with current. Thanks again!

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