Results 1 to 5 of 5

Thread: Algorithm for Cumulative distances

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

    Default Algorithm for Cumulative distances

    I have some distances of hole to hole and final over all length of flat. please see below lists.



    Cumulative distance (Actual/ rounded):
    ==========================================
    Sr Actual Rounded Final H to H
    ===============================================
    0 0.00 0.0 -
    1 24.91 25.0 25.0
    2 84.91 85.0 60.0
    3 572.72 573.0 488.0
    4 1159.58 1159.5 586.5
    5 2333.27 2333.0 1173.5
    6 3506.97 3507.0 1174.0 * -0.5 mm will be adjusted here
    7 4373.40 4373.5 866.5
    8 4453.40 4453.5 80.0
    9 4518.40 4518.5 65.0
    ===============================================
    Length: 4518.40 4518.5--> 4518
    Error:0.10 if length rounded to 0.5
    * -0.5 mm to be adjusted in largest H 2 H dist
    to round up total length to full digit.


    Cumulative distance (Actual/ rounded):
    ==========================================
    Sr Actual Rounded Final H to H
    ===============================================
    0 0.00 0.0 -
    1 54.91 55.0 55.0
    2 114.91 115.0 60.0
    3 264.91 265.0 150.0
    4 572.72 573.0 308.0
    5 1159.58 1159.5 586.5
    6 2333.27 2333.0 1173.5
    7 3506.97 3507.0 1174.0 * -0.5 mm will be adjusted here
    8 4413.93 4414.0 907.0
    9 4493.93 4494.0 80.0
    10 4518.40 4518.5 24.0
    ===============================================
    Length: 4518.40 4518.0--> 4518
    Error:-0.40 if length rounded to 0.5
    * -0.5 mm to be adjusted in largest H 2 H dist
    to round up total length to full digit.


    I want to do algorithm for above mentioned distances. this is a sample others are vary.

    Thanks,

    Avinash

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

    Default Re: Algorithm for Cumulative distances

    Post a dwg that may explain more what it is you want. Getting distance between multiple circles and adding them is not a problem.

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

    Default Re: Algorithm for Cumulative distances

    please find attached
    Attached Files Attached Files

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

    Default Re: Algorithm for Cumulative distances

    You have 140 posts so must have some idea of writing a lisp.

    Use ssget '((0 . Circle)) so get all the circles in the rectang get centre point of each one and use vlsort so will be from left to right. Fixes any draw order of circles.

    I take it you want the distance from say the mid of the rectang left side, so can do easy a distance from this point or use the (car pt) for say X only.

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

    Default Re: Algorithm for Cumulative distances

    I have all circle details but I need it roundup distances as per txt file with respect to total length. (like... Length: 4518.40 4518.0--> 451

Similar Threads

  1. Replies: 1
    Last Post: 2020-02-01, 04:02 PM
  2. Algorithm to renumber a pipe network
    By ruipfbarreiros370525 in forum Dot Net API
    Replies: 0
    Last Post: 2014-02-07, 01:02 PM
  3. C# triangulation algorithm
    By ybourgouin in forum Dot Net API
    Replies: 3
    Last Post: 2009-07-06, 02:46 PM
  4. Cumulative Distance / Estimating
    By zenomail105021 in forum Revit Architecture - Wish List
    Replies: 3
    Last Post: 2005-04-08, 03:28 AM

Posting Permissions

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