Results 1 to 5 of 5

Thread: OSNAP for center of polygon

  1. #1
    ACAD Wish List Administration
    Join Date
    2005-06
    Posts
    1,920
    0 Did you find this post helpful? Yes

    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
    All AUGI, all the time madcadder's Avatar
    Join Date
    2000-11
    Location
    Back in the Bay; Looking for work.
    Posts
    980
    0 Did you find this post helpful? Yes

    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
    0 Did you find this post helpful? Yes

    Default Re: OSNAP for center of polygon

    Or you could use the mid between 2 points snap.

  4. #4
    Member
    Join Date
    2005-09
    Location
    Lakewood Washington
    Posts
    32
    0 Did you find this post helpful? Yes

    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
    Programming Moderator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    3,746
    0 Did you find this post helpful? Yes

    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.
    "Potential has a shelf life." - Margaret Atwood
    AutoCAD® 2014, and Civil 3D® 2014 Certified Professional | Autodesk® Authorized Developer
    Autodesk Exchange Apps ~ Autoloader ~ AutoCAD Security

Similar Threads

  1. How to Param. a Polygon
    By ljupadhyay in forum Revit Architecture - Families
    Replies: 2
    Last Post: 2009-12-02, 07:11 PM
  2. Osnap center
    By djones.220368 in forum AutoCAD Customization
    Replies: 1
    Last Post: 2009-06-18, 09:28 PM
  3. Stretch a Polygon/Maintain the Original Area of Polygon
    By acadwishlist in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2007-08-02, 04:39 PM
  4. Replies: 5
    Last Post: 2007-04-26, 07:19 PM
  5. Polygon viewports & PDF
    By MikeM4OSU in forum AutoCAD General
    Replies: 2
    Last Post: 2006-10-19, 01:28 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
  •