replacement for express tool ncopy

Discussion in 'AutoCAD' started by MKE, Jun 24, 2004.

  1. MKE

    MKE Guest

    AKA copy nested object.

    I just found this one but have a few problems with it. The biggest problem
    is it explodes blocks. Does anybody have something similar that does not
    explode blocks, or at least only burst them?
    Thnaks,
     
    MKE, Jun 24, 2004
    #1
  2. MKE

    sandra Guest

    What do you mean by it explode the block when you do ncopy?
    Nestcopy only copy xref or a block in the drawing one entity at a time and the block or xref remain the same.
     
    sandra, Jun 24, 2004
    #2
  3. MKE

    MKE Guest

    Just what I said, the copied entities are exploded. Attruibuted blocks are
    exploded back to tags, etc. Fixtures end up as a bunch of polylines.

    the block or xref remain the same.
     
    MKE, Jun 24, 2004
    #3
  4. MKE

    James Allen Guest

    Search for copynested. I think you will find what you're looking for.
     
    James Allen, Jun 24, 2004
    #4
  5. MKE

    sandra Guest

    Back to the basic: WBLOCK
     
    sandra, Jun 24, 2004
    #5
  6. NCOPY was designed to copy primitives regardless of
    the nesting level. Hence, If the objects that are
    nested and selected are block insertions or other
    'explodable' objects, the result is always the
    primitive objects within same, that were selected,
    regardless of how deeply nested they are.

    You can use the ActiveX EXPLODE method to copy
    objects nested one-level deep.



    AutoCAD based Security Planning Solutions:
    http://www.caddzone.com/securityplanning
     
    Tony Tanzillo, Jun 25, 2004
    #6
  7. MKE

    James Allen Guest

    Also try searching for c:copynested or *copynested or nssget. Searching
    Google groups (if you're not already) tends to yield better results. Some
    threads I found especially helpful posts in are:



    "XREF object manipulation" 2001.06.20

    "'Nssget' (like ACAD Trim/Extend commands) for Lisp?" 2004.03.16

    "Insert a round block using any quandrant" 2004.06.02



    *If* you choose to use some variation of the "(entmake (entsel" combination,
    I recommend carefully reviewing the cautions and limitations of that method.



    James
     
    James Allen, Jun 25, 2004
    #7
  8. MKE

    James Allen Guest

    I think we are talking about nested blocks. If you want to copy the nested
    block out of a block... The block/entity level option such as in layoff and
    layfreeze would be a nice addition here, and also in layiso while we're at
    it.
     
    James Allen, Jun 25, 2004
    #8
  9. MKE

    Joe Burke Guest

    Tony,
    I'm curious. Is this what you mean?

    ;; demo 6/28/2004
    ;; selected block reference remains intact
    (defun c:test ( / ent explodelst copyobj )
    (setq ent (entsel "Select object nested in block to copy: "))
    (setq explodelst
    (vlax-invoke
    (vlax-ename->vla-object (car ent)) 'Explode))
    (foreach x explodelst
    (vlax-invoke x 'Update)
    )
    (setq copyobj
    (vlax-ename->vla-object
    (car (nentselp (cadr ent)))))
    (foreach x explodelst
    (if (not (equal x copyobj))
    (vlax-invoke x 'Delete)
    )
    )
    copyobj ;testing - return copied/nested object
    ) ;end

    Joe Burke
     
    Joe Burke, Jun 28, 2004
    #9
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.