Results 1 to 2 of 2

Thread: Leader lisp

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Login to Give a bone
    0

    Default Leader lisp

    This the (error: AutoCAD variable setting rejected: "CANNOSCALEVALUE" 48.0) When running the command. What am i missing?

    Code:
    (defun c:test ( / STY SIZE OR)  (setvar "cmdecho" 0)
      (setq OR (getvar "orthomode"))
      (setvar "orthomode" 0)
      (setq STY (getvar "dimstyle" ))
      (setq SIZE (/ 1 (getvar "CANNOSCALEVALUE")))
      (command "-insert" "leaders" cancel )
      (command "-dimstyle" "R" "leaders" )
      (setvar "CANNOSCALEVALUE" size)
      (command "_qleader" pause pause pause cancel cancel)
      (command "-dimstyle" "r" STY )
      (setvar "orthomode" OR)
      (setvar "CANNOSCALEVALUE" size)
    
    
    )

  2. #2
    All AUGI, all the time
    Join Date
    2010-10
    Posts
    535
    Login to Give a bone
    0

    Default Re: Leader lisp

    Quote Originally Posted by arussell2003385516 View Post
    This the (error: AutoCAD variable setting rejected: "CANNOSCALEVALUE" 48.0) When running the command. What am i missing?

    [/CODE]
    "CANNOSCALEVALUE" is a read-only variable.

    To know more about modifying Annotative scale [Gems from Irné ] --> <from a programmers point of view that is>

    http://sourceforge.net/p/caddons/cod...ral/Scales.LSP

Similar Threads

  1. LEADER. LISP
    By Scooby in forum AutoLISP
    Replies: 19
    Last Post: 2013-02-15, 05:32 PM
  2. Leader lisp help
    By jdcincy in forum AutoLISP
    Replies: 8
    Last Post: 2012-03-09, 08:06 PM
  3. BCount Leader LISP
    By jmarck in forum AutoLISP
    Replies: 15
    Last Post: 2010-08-06, 01:50 PM
  4. Replies: 4
    Last Post: 2006-09-15, 08:04 PM
  5. Leader Lisp With Tag
    By BCrouse in forum AutoLISP
    Replies: 9
    Last Post: 2005-10-31, 04:23 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
  •