Dissapearing Blocks

Discussion in 'AutoCAD' started by Sunburned Surveyor, Nov 12, 2004.

  1. I have successfully created a block from within an AutoLISP routine, but when I end the routine, the entities defined in the block disappear. Do I have to define the block and insert it at the location of the original entities within the AutoLISP routine to get this to work, or is there something else going on?

    Thanks,

    The Sunburned Surveyor
     
    Sunburned Surveyor, Nov 12, 2004
    #1
  2. Sunburned Surveyor

    Jeff Mishler Guest

    "Do I have to define the block and insert it at the location of the original
    entities ...."

    Yes....Use the command line version in Acad to see what happens there.......
     
    Jeff Mishler, Nov 12, 2004
    #2
  3. Sunburned Surveyor

    ECCAD Guest

    Right after the (command "block"..... do a
    (command "_oops")
    This will bring back the entities, but not make an 'insert' of
    the block ..

    Bob
     
    ECCAD, Nov 12, 2004
    #3
  4. Sunburned Surveyor

    Scot-65 Guest

    SS,

    My Late Reply...

    You have successfully redefined existing blocks within the file.
    Future insertions of this block will show the new format.
    The objects you used to define the block does go away...

    The idea here is to COPY an existing block to 0,0
    (use GRIP-EDIT to retain the insert definition point).
    Then explode and set all the entities to layer 0 (as a check).
    Objects on DEFPOINTS as needed...
    Force color and/or linetype onto these objects before redefinition... as needed.

    When asked to define the insert point, TYPE "0,0".
    Do not use pointing device to define insert point!

    When you want to externally save this block,
    copy to 0,0, then explode, then Wblock objects.

    Hope this answers your inquiry.

    Scot-65
     
    Scot-65, Nov 12, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.