Results 1 to 4 of 4

Thread: auxillary scale in lisp

  1. #1
    I could stop if I wanted to
    Join Date
    2009-10
    Posts
    262
    Login to Give a bone
    0

    Default auxillary scale in lisp

    How can I apply auxiliary scale to a block in lisp??...seeing as a block is only auxiliary scaled when the block is inserted from the tool palette...

    If I can't apply auxiliary scale to a block then how can I insert a block from the tool palette with lisp??

  2. #2
    100 Club
    Join Date
    2000-11
    Location
    Ontario, Canada
    Posts
    116
    Login to Give a bone
    0

    Default Re: auxillary scale in lisp

    The auxiliary scale is not a special property of the block, but rather just a way of calculating what scale to use when initially inserting it. The two options are based on the Dimension scale and the Plot scale, and these can certainly be done with lisp. Just as a very basic example...

    Code:
    (defun c:insertdscale ( / )
      (command "-insert" "MYBLOCK" pause (getvar "dimscale") "" 0.00)
      )
    
    (defun c:insertpscale ( / )
      (vlax-invoke-method (vlax-get-property (vlax-get-property (vlax-get-acad-object) 'activedocument) 'activelayout) 'getcustomscale 'num 'den)
      (command "-insert" "MYBLOCK" pause (/ num den) "" 0.00)
      )

  3. #3
    I could stop if I wanted to
    Join Date
    2009-10
    Posts
    262
    Login to Give a bone
    0

    Default Re: auxillary scale in lisp

    Is It possible for me to apply that method to for Dimscale to this predefined insert??

    (command "_.-insert" "BlockName" insertpoint 1 1 0)

  4. #4
    I could stop if I wanted to
    Join Date
    2009-10
    Posts
    262
    Login to Give a bone
    0

    Default Re: auxillary scale in lisp

    For anyone else interested this is how

    (command "_.-insert" "BlockName" insertpoint (getvar "dimscale") (getvar "dimscale") 0)

Similar Threads

  1. Replies: 9
    Last Post: 2015-08-21, 06:33 PM
  2. Mleader Scale using Lisp
    By CadDog in forum AutoLISP
    Replies: 7
    Last Post: 2012-10-29, 10:29 PM
  3. Dimescale, LTscale, dwg scale lisp
    By Zuke in forum AutoLISP
    Replies: 3
    Last Post: 2009-09-22, 03:04 PM
  4. Annotative Scale with Lisp
    By CADdancer in forum AutoLISP
    Replies: 2
    Last Post: 2009-06-10, 10:05 AM
  5. Set vport scale via lisp
    By cadpoobah in forum AutoLISP
    Replies: 2
    Last Post: 2006-05-18, 12:04 AM

Posting Permissions

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