+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: Mid Point?

  1. #1
    Full Member Tempest's Avatar
    Using
    AutoCAD 2007
    Join Date
    Oct 2007
    Location
    Horley (Gatwick) UK
    Posts
    99

    Default Mid Point?

    Registered forum members do not see this ad.

    I guess this is really going to be an easy one.

    (I even typed MID at the command line as I thought it may be a command and it would ask me to select 2 points - But it didn't!)



    Anyway.........

    Say I have 1 horizontal line near the top of the screen and another horizontal line at the bottom of the screen.

    Is there a built in command, where you simply select the 2 and it plots in a point (or moves the cursor) or something like that, to the dead centre between the two points (in this case lines) I've selected?

    Rather than measuring it, or using the offset command?

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

    Default

    Try typing M2P instead of Mid, see if that works. If not I've got other ways.

  3. #3
    Full Member Tempest's Avatar
    Using
    AutoCAD 2007
    Join Date
    Oct 2007
    Location
    Horley (Gatwick) UK
    Posts
    99

    Default

    Quote Originally Posted by lpseifert View Post
    Try typing M2P instead of Mid, see if that works. If not I've got other ways.
    Thanks, but M2P does not appear to be a command it recognises.

  4. #4
    Super Moderator Tiger's Avatar
    Computer Details
    Tiger's Computer Details
    Operating System:
    Windows 7 Enterprise 64 bit
    Computer:
    Dell Precision M4500
    CPU:
    Intel Core i5 2.40GHz
    RAM:
    8GB
    Graphics:
    NVIDIA Quadro FX 880M
    Primary Storage:
    280 GB
    Monitor:
    2 x Samsung SyncMaster 2443 24''
    Using
    AutoCAD 2012
    Join Date
    Nov 2006
    Location
    Sthlm, Sweden
    Posts
    4,606

    Default

    first type Line or Polyline - and then at the first prompt type M2P
    Life doesn't suck, although we all go through periods when it may be easier to think that, than to discern the solution to whatever problem is the most formidable
    at the moment in one's personal UCS.
    Go to PLAN view instead. - Dadgad

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

    Default

    Put this in your acaddoc.lsp file
    Code:
    (defun mid2pt (p1 p2 / x y z)
     (setq x (/ (+ (car p1)(car p2)) 2))
     (setq y (/ (+ (cadr p1)(cadr p2)) 2))
     (setq z (/ (+ (caddr p1)(caddr p2)) 2))
     (list x y z))
    (defun c:mid2pt ( / p1 p2)
     (setq p1 (getpoint "\nFirst point: "))
     (setq p2 (getpoint "\nSecond point: "))
     (mid2pt p1 p2))
    Then make a toolbar button w/ this as the macro
    Code:
    'Mid2Pt
    or you can invoke it transparently with 'mid2pt

  6. #6
    Super Moderator SLW210's Avatar
    Computer Details
    SLW210's Computer Details
    Operating System:
    Windows 7 PRO
    Computer:
    IBM Lenovo
    Motherboard:
    ACPI x86
    CPU:
    Pentium(R) Dual-Core CPU E5500 @ 2.80GHz
    RAM:
    4 GB RAM
    Graphics:
    Nvidia Quadro 600 1GB
    Primary Storage:
    300 GB
    Secondary Storage:
    650GB
    Monitor:
    ThinkVision 22"
    Discipline
    Multi-disciplinary
    SLW210's Discipline Details
    Occupation
    Design Draftsman
    Discipline
    Multi-disciplinary
    Details
    Mostly do drafting related to manufacturing. From doing site layouts with proposed updates, additions and renovations to be budgeted and submitted for bid, to updating and changing existing drawings to reflect maintenance and repair/revision work done on site.
    Using
    AutoCAD 2011
    Join Date
    May 2007
    Location
    South Florida, USA
    Posts
    9,203

    Default

    Quote Originally Posted by Tempest View Post
    Thanks, but M2P does not appear to be a command it recognises.
    You use MTP at the "select point" or "specify point" option on a command.
    “A narrow mind and a fat head invariably come on the same person” Zig Zigler



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

    Default

    Quote Originally Posted by SLW210 View Post
    You use MTP at the "select point" or "specify point" option on a command.
    um.... MTP is what I meant!
    Well the code isn't a complete loss, it's good for pre-2007

  8. #8
    Super Moderator SLW210's Avatar
    Computer Details
    SLW210's Computer Details
    Operating System:
    Windows 7 PRO
    Computer:
    IBM Lenovo
    Motherboard:
    ACPI x86
    CPU:
    Pentium(R) Dual-Core CPU E5500 @ 2.80GHz
    RAM:
    4 GB RAM
    Graphics:
    Nvidia Quadro 600 1GB
    Primary Storage:
    300 GB
    Secondary Storage:
    650GB
    Monitor:
    ThinkVision 22"
    Discipline
    Multi-disciplinary
    SLW210's Discipline Details
    Occupation
    Design Draftsman
    Discipline
    Multi-disciplinary
    Details
    Mostly do drafting related to manufacturing. From doing site layouts with proposed updates, additions and renovations to be budgeted and submitted for bid, to updating and changing existing drawings to reflect maintenance and repair/revision work done on site.
    Using
    AutoCAD 2011
    Join Date
    May 2007
    Location
    South Florida, USA
    Posts
    9,203

    Default

    Quote Originally Posted by lpseifert View Post
    um.... MTP is what I meant
    When you first posted it M2P it went right on by me as well, when he said it wasn't a command, it hit me. And I have a big sticky note right in my face that says "MTP-midpoint 2 points" and I missed it the first time.
    “A narrow mind and a fat head invariably come on the same person” Zig Zigler



  9. #9
    Full Member
    Using
    AutoCAD 2008
    Join Date
    Aug 2007
    Location
    Pittsburgh
    Posts
    29

    Default

    I didnt know about that command...i just love finding out new stuff

  10. #10
    Full Member Tempest's Avatar
    Using
    AutoCAD 2007
    Join Date
    Oct 2007
    Location
    Horley (Gatwick) UK
    Posts
    99

    Default

    Registered forum members do not see this ad.

    Thanks everyone for your help (and command spelling corrections )

    Another helpful nugget of information to add to my book.

Similar Threads

  1. MOVING THE BASE POINT/ INSERTION POINT
    By nwmjdp in forum AutoCAD Beginners' Area
    Replies: 6
    Last Post: 13th May 2012, 06:44 am
  2. Base point
    By vinod in forum AutoCAD Drawing Management & Output
    Replies: 9
    Last Post: 16th Nov 2007, 10:26 am
  3. point to point instead of matrix method??
    By avantgarde in forum AutoCAD Beginners' Area
    Replies: 8
    Last Post: 22nd Oct 2007, 05:59 pm
  4. 2 point perspective
    By gib65 in forum AutoCAD Beginners' Area
    Replies: 1
    Last Post: 22nd Jun 2006, 09:12 pm
  5. Just desperate or does he have a point?
    By CADTutor in forum Software & Licensing
    Replies: 2
    Last Post: 3rd Sep 2005, 08:11 pm

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