Results 1 to 2 of 2

Thread: Copy multiple selected nested blocks from master block to outside.

  1. #1
    Login to Give a bone
    0

    Default Copy multiple selected nested blocks from master block to outside.

    Dear Helpers,
    I nead a lisp that should copy selected multiple nested blocks from master block. Suppose I have a master block from a Architect, that contains chairs and tables as blocks inside the master block. The lisp code should copy only the selected nested blocks to outside. Please have a look on attached dwg and image.
    I got a lisp code that can copy nested elements from master block, The requirement is instead of copying nested elements the lisp should copy only selected nested blocks from master block.
    Code:
    (defun c:MCN1 (/ lastent ss)
    (setq lastent (entlast))
    (setq ss (ssadd))
    (command "_.ncopy")
    (while (> (getvar "cmdactive") 0)
    (command pause "0,0" "0,0")
    )
    (while (setq lastent (entnext lastent))
    (ssadd lastent ss)
    )
    )
    Regards,
    T.Brahmanandam
    Attached Files Attached Files

  2. #2
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,665
    Login to Give a bone
    0

    Default Re: Copy multiple selected nested blocks from master block to outside.

    Several ways of doing this
    1. Design Center
    2. Add a macro to open Design Center with the drawing containing the blocks you need using the ADCNAVIGATE command to make it even simpler.
    ex.
    Code:
    ^C^C^P(command "adcnavigate" "G:/BeaufordT/Blocks/MUTCD.dwg")
    3. Use Lee Mac's Steal from Drawing routine. I use it mainly for Linetypes, Dimension Styles, Text Styles, Layouts, and Page Setups which only scratches the surface. It's my favorite routine of all time. Find it at: http://www.lee-mac.com/programs.html.

Similar Threads

  1. 2017: Multiple selected Blocks to diffrent name
    By sujan743475 in forum AutoCAD Customization
    Replies: 1
    Last Post: 2017-08-10, 03:05 PM
  2. Create perimeter polyline from multiple selected blocks
    By jpcadconsulting347236 in forum AutoLISP
    Replies: 3
    Last Post: 2016-09-01, 06:18 PM
  3. Dynamic Block with Nested Annotative Blocks....Help...!
    By CADdancer in forum Dynamic Blocks - Technical
    Replies: 2
    Last Post: 2015-06-25, 12:22 PM
  4. Copy Multiple Cells in Block Editor
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2007-11-28, 04:49 PM
  5. Extract nested attributes by selected blocks
    By charlie.bauer341340 in forum AutoLISP
    Replies: 4
    Last Post: 2006-12-19, 04:31 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
  •