See the top rated post in this thread. Click here

Results 1 to 5 of 5

Thread: Block insert and explode lisp routine

  1. #1
    Member
    Join Date
    2003-10
    Posts
    5
    Login to Give a bone
    0

    Default Block insert and explode lisp routine

    I'm trying to create a simple lisp routine to insert and explode a block from a file. The file is the block itself, but need to be exploded to be worked with. I would add an "explode previous" to the routine but the new object is not considered a previous selection. What is the easiest way to accomplish what I need?

    -Rayski
    Ames, Iowa

  2. #2
    I could stop if I wanted to scwegner's Avatar
    Join Date
    2004-12
    Location
    Minneapolis, MN
    Posts
    449
    Login to Give a bone
    0

    Default Re: Block insert and explode lisp routine

    Quote Originally Posted by rayski
    I'm trying to create a simple lisp routine to insert and explode a block from a file. The file is the block itself, but need to be exploded to be worked with. I would add an "explode previous" to the routine but the new object is not considered a previous selection. What is the easiest way to accomplish what I need?

    -Rayski
    Ames, Iowa
    Use "last" instead of "previous". "Last" is the last created visible object, i.e. your block, whereas "previous" is the last created selection set. For example, the difference between the copy of an object and the object being copied.
    Last edited by scwegner; 2005-05-18 at 03:48 PM.

  3. #3
    The Silent Type Mike.Perry's Avatar
    Join Date
    2000-11
    Posts
    13,656
    Login to Give a bone
    0

    Default Re: Block insert and explode lisp routine

    Hi Rayski

    Please note I've *moved* this thread from the AutoCAD Customization Forum to this one as I feel this particular Forum is a more appropriate place for such a topic.

    Thanks, Mike

    Forum Moderator

  4. #4
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,707
    Login to Give a bone
    0

    Default Re: Block insert and explode lisp routine

    Quote Originally Posted by scwegner
    Use "last" instead of "previous". "Last" is the last created visible object
    If paned or zoomed out "Last" is last in that particular screen position.
    To use (entlast) is much more safe, that is the last created object.

    : ) Happy Computing !

    kennet

  5. #5
    100 Club CADmium's Avatar
    Join Date
    2004-08
    Location
    Eberswalde, Germany, Europe
    Posts
    128
    Login to Give a bone
    1

    Default Re: Block insert and explode lisp routine

    if you use the Filename with "*" at the begin , the block will explod during the insert-routine
    for instance (command "_insert" "*d:\\test.dwg")

Similar Threads

  1. Routine to create named View for Block insert
    By cad user in forum AutoLISP
    Replies: 5
    Last Post: 2006-09-29, 03:38 AM
  2. Date Insert Block routine
    By b_v_mc in forum AutoLISP
    Replies: 12
    Last Post: 2006-05-17, 05:59 PM
  3. routine for insert block break line
    By Hammer.John.J in forum VBA/COM Interop
    Replies: 4
    Last Post: 2006-01-06, 02:55 PM
  4. LISP Block Insert routine no longer works once a parameter is modified
    By JAC.95598 in forum Dynamic Blocks - Technical
    Replies: 1
    Last Post: 2005-11-22, 04:50 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
  •