Results 1 to 3 of 3

Thread: offset with scaled

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

    Default offset with scaled

    Hi!

    I required lisp routine that works make offset with actual scale to fixed length scale

    I have a strip with holes the distances are 25,35,35,35,35,35,449,61.5,59,1443.5,1504.5,1504.5,379,35,35,35,35,35,25 and the total length is 5801. (this is a sample it may any dimensions and nos. of holes)

    I want to fitted it in 230 mm. length strip. all points are to be offset with above mentioned dimensions with 230 mm. scaled but fist & last dimensions are offset dimensions is 8 mm. fixed.

    other than all dimensions are to be offset with 214 mm. (230-8- and if scaled offset is less than 4.9 then it will offset 5.0 mm. offset.

    can any one build this lisp routine for me. for details drawing is attached

    if any further details required ask me.

    Thanks,

    Avinash Patil
    Attached Files Attached Files

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

    Default Re: offset with scaled

    You just have to do it in steps look at total length, subtract the two end lengths which are fixed, then there are some rules about the remaining holes. you would start with say lower left corner and then keep track of your points. I draw a little sketch on a piece of paper as I go so I can remember the point numbers used in making the circles. You just need a double polar to work out each new x & y.

    Code:
    ; 0.0 is to left
    (setq up (/ pi 2.0)) ; 90 up
    ; pi left
    (setq dn  (* 1.5 pi)) ; 270 down
    
    (setq pt1 (getpoint))
    (setq x 25 
            y 30)
    (setq pt2 (polar (polar pt1 0.0 x) up y))
    (command "Circle" pt2 12) ; draws circle to the right

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

    Default Re: offset with scaled

    Cany you give me complete code

Similar Threads

  1. 2011: label points at an offset from alignment showing stat, offset, and description
    By mw156 in forum AutoCAD Civil 3D - Survey
    Replies: 6
    Last Post: 2016-09-29, 06:10 PM
  2. 2014: Scaled Titleblocks
    By SA Ross622 in forum AutoCAD Civil 3D - General
    Replies: 14
    Last Post: 2015-01-22, 09:23 PM
  3. How to jig scaled Multiviewblockreference
    By AntonAlalaev in forum Dot Net API
    Replies: 1
    Last Post: 2014-04-30, 02:49 PM
  4. Why does a CAD survey ALWAYS come in scaled??
    By patricks in forum Revit Architecture - General
    Replies: 7
    Last Post: 2009-04-08, 08:12 PM
  5. Scaled dwgs
    By Ed Jobe in forum New Forum Users (Non technical)
    Replies: 0
    Last Post: 2004-09-27, 04:40 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
  •