+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Junior Member CRPPIPER's Avatar
    Computer Details
    CRPPIPER's Computer Details
    Operating System:
    xp
    Computer:
    dell t3400
    Monitor:
    2 19" dell
    Using
    AutoCAD 2008
    Join Date
    Jul 2008
    Location
    Corpus Christi
    Posts
    17

    Default Command to move two objects apart by equal distance from point

    Registered forum members do not see this ad.

    Im Looking For A Command That Will Move 2 Objects An Equal Amount Of Distance Away From Eachother.. And Or Closer To Eachother... I Have Tried My Hand At Creating A Lisp Routine And I Suck...lol... Anyway... Can Anyone Help??

    Thanks

  2. #2
    Forum Deity
    Using
    not specified
    Join Date
    Jul 2004
    Location
    Anchorage, Alaska
    Posts
    2,074

    Default

    For use in creating a lisp, can the process be described in detail?

    -what all objects? Block, line, circle, text, polyline...
    -what would be considered the center point of all the objects, as a basis for an axis between them along which objects will be moved.
    -any other options-move only left/right/up/down, or along axis between the objects

  3. #3
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro 4000, 2GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2013
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    33,090

    Default

    Will the distances be constant or will they vary?
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge!

  4. #4
    Junior Member CRPPIPER's Avatar
    Computer Details
    CRPPIPER's Computer Details
    Operating System:
    xp
    Computer:
    dell t3400
    Monitor:
    2 19" dell
    Using
    AutoCAD 2008
    Join Date
    Jul 2008
    Location
    Corpus Christi
    Posts
    17

    Default

    the distances will vary, as far as from one application to the next. the distances will be the same for the 2 different pieces to be moved. they shall move from a common center point.

  5. #5
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro 4000, 2GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2013
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    33,090

    Default

    As you may have guessed from CarlB's response this will not be a command as much as it will be a Lisp routine. Provide the further information he has inquired about. There are several forum members who are quite good when it comes to Lisp. I'm positive they will be able to assist you.
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge!

  6. #6
    Forum Deity
    Using
    Civil 3D 2008
    Join Date
    Sep 2006
    Location
    Pittsburgh, PA, USA
    Posts
    3,581

    Default

    Quote Originally Posted by CRPPIPER View Post
    they shall move from a common center point.
    And how is this common center point determined, is it the midpoint between the insert points of the 2 objects (blocks, text, circles...) or just a random picked point?

  7. #7
    Junior Member CRPPIPER's Avatar
    Computer Details
    CRPPIPER's Computer Details
    Operating System:
    xp
    Computer:
    dell t3400
    Monitor:
    2 19" dell
    Using
    AutoCAD 2008
    Join Date
    Jul 2008
    Location
    Corpus Christi
    Posts
    17

    Default

    random picked point

    i would like to be able to select the 2 objects to be moved

    the direction should be a left and a right.... or would be a up and down depending on which angle or view i was looking at the dwg... i do deal with alot of 3-d stuff

    my whole deal with trying to get this lisp is that i am a pipe designer and instead of moving a line or object in one direction and then symetrically moving another object the same distance in the opposite direction i can accomplish both in one simple lisp routine.

    i hope this helps

  8. #8
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro 4000, 2GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2013
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    33,090

    Default

    The more info you can provide the better.
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge!

  9. #9
    Junior Member CRPPIPER's Avatar
    Computer Details
    CRPPIPER's Computer Details
    Operating System:
    xp
    Computer:
    dell t3400
    Monitor:
    2 19" dell
    Using
    AutoCAD 2008
    Join Date
    Jul 2008
    Location
    Corpus Christi
    Posts
    17

    Default

    i think i have attatched a dwg to show what i am needing


    if i have 2 pipes running next to eachother and i need to symmetrically space them out say 1/2" further then i would divide that distance between the 2 pipes (1/4" each) and then manually move one pipe said distance.. then also move the other pipe said distance to have my correct totall distance centerline to centerline.

    like i said before.. im not familiar with lisp routines as far as what you put in them to make them do the fabulous things they do... maybee someone can suggest a book or something for me to better understand a lisp routine and the components that make them up and why....lol..
    Attached Files

  10. #10
    Forum Deity
    Using
    Civil 3D 2008
    Join Date
    Sep 2006
    Location
    Pittsburgh, PA, USA
    Posts
    3,581

    Default

    Registered forum members do not see this ad.

    This is a good site to learn lisp
    http://www.afralisp.net/

Similar Threads

  1. make a multiple point distance command??
    By raj banerjee in forum AutoCAD General
    Replies: 19
    Last Post: 25th Dec 2011, 06:04 am
  2. Replies: 10
    Last Post: 14th Feb 2009, 02:16 pm
  3. Block Distance From Nearest Point on a Polyline
    By wannabe in forum AutoLISP, Visual LISP & DCL
    Replies: 65
    Last Post: 13th Jan 2009, 09:04 pm
  4. locating a point on arc with a distance
    By Ramana in forum AutoLISP, Visual LISP & DCL
    Replies: 5
    Last Post: 11th Nov 2006, 05:19 pm
  5. dimensioning basic for making the offset distance equal??
    By cadmuska in forum AutoCAD General
    Replies: 11
    Last Post: 15th Jun 2006, 07:12 am

Bookmarks

Posting Permissions

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