Results 1 to 2 of 2

Thread: Blocks not inserted at the same point

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2018-10
    Posts
    1
    Login to Give a bone
    0

    Default Blocks not inserted at the same point

    in the blow autolisp program, each time the block is inserted at a different point.
    would be so thankful if you can help.

    (vl-load-com)
    (defun ax (/ pt1)
    (command "insert" "block2" "1705,1425" "1" "1" "0")
    (command "insert" "block2" "1705,1425" "1" "1" "0")
    (command "insert" "block2" "1705,1425" "1" "1" "0")
    (command "insert" "block2" "1705,1425" "1" "1" "0")
    (command "insert" "block2" "1705,1425" "1" "1" "0")
    (princ)
    )

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

    Default Re: Blocks not inserted at the same point

    Hi,
    Just set the system variable OSMODE to zero at the top of the insert commands then reset it back at the end of the routine.

Similar Threads

  1. Targeting of where the blocks are inserted.
    By luislhss in forum AutoLISP
    Replies: 3
    Last Post: 2013-07-16, 05:20 PM
  2. Question about inserted blocks
    By Curt340924 in forum AutoCAD General
    Replies: 11
    Last Post: 2012-02-03, 01:24 PM
  3. Replies: 12
    Last Post: 2010-09-03, 06:21 PM
  4. When Blocks are Inserted they come in too small
    By JAG in forum AutoCAD General
    Replies: 4
    Last Post: 2006-04-18, 12:10 PM
  5. Blocks will not redefine when inserted
    By bholden.97697 in forum AutoCAD General
    Replies: 9
    Last Post: 2005-10-28, 04:56 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
  •