See the top rated post in this thread. Click here

Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Exact point using ENTSEL

  1. #11
    Past Vice President / AUGI Volunteer peter's Avatar
    Join Date
    2000-09
    Location
    Honolulu HI
    Posts
    1,109
    Login to Give a bone
    1

    Default Re: Exact point using ENTSEL

    As Ed Jobe eluded to.. to solve for the fact that multileaders do not allow the nea osnap.

    The code I presented below uses activex to trace over the leaders with polylines.

    The routine iterates through the leaders one at a time and measure the distance from the entsel point to the closest point on the polyline.

    It deletes the polyline after getting the closest point.

    It adds the information to a list of sublists.

    It then sorts the list of sublists so the leader that is the closest to the entsel point is first in the list.

    Then the closest point from the polyline is returned.

    It is kinda convoluted...

    There is always a work around.

    Peter

    Sorry my code is so verbose... I would rather be verbose and easy to read.
    AutomateCAD

  2. #12
    Member Jim_Fisher's Avatar
    Join Date
    2015-12
    Location
    Texas
    Posts
    31
    Login to Give a bone
    0

    Default Re: Exact point using ENTSEL

    Sorry ... jumping in a little late here. I'm wondering a little bit about the spec requirements here. Are you selecting on the leader itself or could the user's pick point be on the leader text as well? What's the need for knowing the exact point on the MLeader? I'm assuming something is being done with that point later on. Will the MLeader's leader only have a landing and a leader line or could it have multiple segments in the leader? Could the MLeader object have more than one leader?

    Inquiring minds want to know ...
    ~ Hamburgers! The cornerstone of any nutritious breakfast. ~

    ~ Mind if I try one of yours? This is yours here, right? ~

    ~ Mmm-mmmm. That is a tasty burger. ~

  3. #13
    I could stop if I wanted to
    Join Date
    2006-04
    Posts
    466
    Login to Give a bone
    0

    Default Re: Exact point using ENTSEL

    so you want to click an entity and boom LEADER? GENIUS!!!

    how about auto fill with extended entity data?
    Attached Files Attached Files
    Last edited by aaronic_abacus; 2023-04-06 at 02:53 AM.

  4. #14
    I could stop if I wanted to
    Join Date
    2006-04
    Posts
    466
    Login to Give a bone
    0

    Default Re: Exact point using ENTSEL

    thanks to you guys, i was able to use the expressed point to shift between entsel and nentsel
    Attached Files Attached Files
    Last edited by aaronic_abacus; 2023-04-24 at 06:56 PM.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. entsel point
    By Frank Dux in forum AutoLISP
    Replies: 2
    Last Post: 2019-09-05, 07:27 PM
  2. CV104-1P: One Point, Two Point, Red Point, Blue Point
    By Autodesk University in forum Civil Infrastructure
    Replies: 0
    Last Post: 2013-05-05, 03:17 AM
  3. CV12-4: One Point, Two Point, Red Point, Blue Point
    By Autodesk University in forum Civil Infrastructure
    Replies: 0
    Last Post: 2013-04-17, 04:50 AM
  4. Help with using entsel or nentselp
    By MWKINCAID1 in forum AutoLISP
    Replies: 3
    Last Post: 2007-03-10, 12:10 AM
  5. Point from entsel
    By wommack in forum AutoLISP
    Replies: 10
    Last Post: 2006-12-15, 06:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •