Results 1 to 2 of 2

Thread: Routine to draw annotative center marks

  1. #1
    I could stop if I wanted to
    Join Date
    2011-09
    Posts
    308
    Login to Give a bone
    0

    Default Routine to draw annotative center marks

    Hey gang,

    trying to write a routine that pops an annotative center mark at the center of a given circle (AutoCAD only draws this if the radial dimension is OUTSIDE the circle)

    Here is the code. It's not drawing anything and it's not throwing errors either so I'm a little stumped. Should be simple...

    Code:
    (defun c:Centermark (/ CM)
     
    (setq CM "centermark.dwg")
    
    
    (setq usersnaps (getvar "osmode"))
    (setvar "osmode" 4)
    
    
    (setq P1(getpoint "\nSelect Circle: "))
    
    
    (command "-insert" CM P1 "1" "1" "0")
    
    
    (setvar "osmode" usersnaps)
    (setvar "clayer" layorig)
    
    
    (princ)
    )
    Thanks as always...

  2. #2
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,106
    Login to Give a bone
    0

    Default Re: Routine to draw annotative center marks

    Can the "centermark.dwg" file be found? You can try the findfile function.
    Code:
    (findfile "centermark.dwg")
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

Similar Threads

  1. circle and center marks
    By sherflor in forum AutoCAD General
    Replies: 6
    Last Post: 2013-07-19, 02:40 PM
  2. 2012: Center marks don't scale annotatively?
    By chuck_cantieny in forum AutoCAD General
    Replies: 4
    Last Post: 2011-10-07, 06:58 AM
  3. Center marks that are intelegent
    By chuck_cantieny in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2011-10-06, 04:48 PM
  4. How to Draw Welding Marks in a 3D Drawing?
    By pchek2000 in forum AutoCAD 3D (2006 or below)
    Replies: 2
    Last Post: 2010-05-09, 12:23 PM
  5. Center Marks to have Object Intelligence
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2008-05-27, 09:25 PM

Tags for this Thread

Posting Permissions

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