Results 1 to 6 of 6

Thread: OSNAP for center of polygon

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ACAD Wish List Administration
    Join Date
    2005-06
    Posts
    1,920

    Default OSNAP for center of polygon

    Summary: Center of polygon OSNAP

    Description: I would like to see an osnap feature that snaps to the center of a symmetrical polygon regardless of orientation.

    How Used: Fewer picks.

    Feature Affinity: Snaps

    Submitted By: Billy Wooten on October 27, 2006

  2. #2
    AUGI Addict madcadder's Avatar
    Join Date
    2000-11
    Location
    Too far from the beach
    Posts
    1,054

    Default Re: OSNAP for center of polygon

    Until it gets written in stock...

    use: 'average
    You can write it into the POP0 menu...

    Code:
    ;;; Average point of all selected points
    (DEFUN c:average (/ |average| |count| |nextpoint| |pt1| |temp-pt|)
      (SETQ |pt1| (GETPOINT "\nSpecify first point to Average: "))
      (SETQ |count| '(1 1 1))
      (SETQ |temp-pt| |pt1|)
      (WHILE
        (SETQ |nextpoint|
    	   (GETPOINT |pt1|
    		     "\nSpecify next point or RETURN to end: "
    	   )
        )
         (SETQ |temp-pt| (MAPCAR '+ |nextpoint| |temp-pt|))
         (SETQ |count| (MAPCAR '1+ |count|))
         (PROMPT
           (STRCAT "\n" (ITOA (CAR |count|)) " points specified: ")
         )
      )
      (SETQ |average| (MAPCAR '/ |temp-pt| |count|))
      (command "_non" |average|)
    )

  3. #3
    Certifiable AUGI Addict dzatto's Avatar
    Join Date
    2006-12
    Location
    Big "D"
    Posts
    3,711

    Default Re: OSNAP for center of polygon

    Or you could use the mid between 2 points snap.

  4. #4
    Member
    Join Date
    2015-12
    Location
    Lakewood Washington
    Posts
    33

    Default Re: OSNAP for center of polygon

    I would change the phrase from center osnap grip to centriod grip. Once the polygone has been changed by streaching the polygone by it's grip making it an arbitrary shape, still a polygone, there is no longer a centroid.
    Otherwise if the polygone is created such as a circle where if you try to change size of the polygone keeping it's symetry in tact at all times then a osnap centroid grip is fesible. This can also be applied to parallelograms.
    Last edited by AutoCAD-AL; 2013-12-12 at 08:02 PM.

  5. #5
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,714

    Default Re: OSNAP for center of polygon

    Instead I use Gile's Custom Osnap plugin... This provides third (TRD), quarter (QTR), centroid (CTR), and Fraction (FRC) snaps.
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  6. #6
    Wish List Administration
    Join Date
    2011-08
    Posts
    4,581

    Exclamation Re: OSNAP for center of polygon

    The wish has already been granted. This thread is closed to further posts.

Similar Threads

  1. 2015: Center of object Osnap
    By smcfarren in forum AutoCAD General
    Replies: 4
    Last Post: 2014-11-14, 06:04 PM
  2. Polygon center
    By Wish List System in forum ACA Wish List
    Replies: 2
    Last Post: 2014-07-02, 03:48 AM
  3. Center of object OSnap
    By Wish List System in forum AutoCAD Wish List
    Replies: 3
    Last Post: 2013-03-03, 01:13 PM
  4. Osnap center
    By djones.220368 in forum AutoCAD Customization
    Replies: 1
    Last Post: 2009-06-18, 09:28 PM
  5. Stretch a Polygon/Maintain the Original Area of Polygon
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2007-08-02, 04:39 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
  •