Results 1 to 4 of 4

Thread: Compare two Line length if they are equal

  1. #1
    100 Club
    Join Date
    2011-08
    Location
    Vadodara, India
    Posts
    147
    Login to Give a bone
    0

    Default Compare two Line length if they are equal

    Hi!

    Please see my attachment. I am measuring point A1-A2 , S1-S2 and T1-T2 distance using entget and then (assoc 10 ent) and (assoc 11 ent).

    I am wondering I am comparing by two lines one by one A1A2-S1S2 and A1A2-T1T2. It show both lengths are difference. some very minor difference is there.

    Command: (= (distance A1 A2) (distance S1 S2)) Return Nil (same answer for T1T2).

    Now I required, My Ruler (main Line) is A2-A2. i am searching lines from this outer box (A1-A2-T2-T1) there are some other lines also in gray colors.

    I want to take line as a thickness line (S1-S2). after comparing with other lines and it will compare both lines A1-A2 and S1S2 lines.

    any idea will help me a lot.

    Thanks,

    Avinash
    Attached Images Attached Images

  2. #2
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    560
    Login to Give a bone
    0

    Default Re: Compare two Line length if they are equal

    Use the equal function with a tolerance

    (equal z1 z2 1e-05)

  3. #3
    All AUGI, all the time
    Join Date
    2010-06
    Posts
    962
    Login to Give a bone
    0

    Default Re: Compare two Line length if they are equal

    Hi,
    You need to use equal function along with your desired fuzz factor, so here is an example:

    Code:
    (equal (distance A1 A2) (distance S1 S2) 1e-4)

  4. #4
    100 Club
    Join Date
    2011-08
    Location
    Vadodara, India
    Posts
    147
    Login to Give a bone
    0

    Default Re: Compare two Line length if they are equal

    Thanks It is working great.

Similar Threads

  1. 2016: How to locate the objects in distance of "Half Equal, Equal, Equal, Half Equal"?
    By jeba_kumar703975 in forum Revit MEP - Tips & Tricks
    Replies: 0
    Last Post: 2016-06-28, 05:10 AM
  2. Parameters vs Equal Equal
    By ppaige in forum Revit Architecture - Families
    Replies: 11
    Last Post: 2010-03-04, 06:04 PM
  3. Frame Generator Recognize Parts of Equal Length
    By inventor.wishlist1738 in forum Inventor Wish List
    Replies: 0
    Last Post: 2006-12-12, 03:44 AM
  4. Stretch cabinet doors so they remain equal
    By david.scheu in forum Dynamic Blocks - Technical
    Replies: 5
    Last Post: 2006-09-25, 02:56 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
  •