Results 1 to 3 of 3

Thread: Dynamic block replace Dynamic block

  1. #1
    I could stop if I wanted to
    Join Date
    2009-10
    Posts
    262
    Login to Give a bone
    0

    Default Dynamic block replace Dynamic block

    Does anyone have a lisp that lets your replace a dynamic block with another dynamic block...

    I no the issue is the anonymous names but I'm not sure of a work around.

  2. #2
    Past Vice President / AUGI Volunteer peter's Avatar
    Join Date
    2000-09
    Location
    Honolulu HI
    Posts
    1,109
    Login to Give a bone
    0

    Default Re: Dynamic block replace Dynamic block

    The effectivename property of the existing block vla-object

    Code:
    (vl-load-com)
    (setq objSelection (vlax-ename->vla-object (car (entsel "\nSelect Block: "))))
    (setq strEffectivename (vla-get-effectivename objSelection))
    (setq lstInsertionPoint (vlax-get objSelection "insertionpoint"))
    (setq sngXScaleFactor  (vla-get-xscalefactor objSelection))
    (setq sngRotation       (vla-get-rotation objSelection))
    Do you want to transfer the dynamic block properties to the new block?

    Peter
    AutomateCAD

  3. #3
    I could stop if I wanted to
    Join Date
    2009-10
    Posts
    262
    Login to Give a bone
    0

    Default Re: Dynamic block replace Dynamic block

    Sorry, forgot to update my post...seeing as I'm not looking to retain any properties a simple BLOCKRESET, then followed by a BLOCKREPLACE does the trick.

Similar Threads

  1. Replies: 2
    Last Post: 2013-06-04, 02:59 AM
  2. 2013: REPLACE DYNAMIC BLOCK WITH ANNOTATIVE VERSION
    By lesleys in forum Dynamic Blocks - Technical
    Replies: 0
    Last Post: 2012-08-16, 10:00 AM
  3. 2012: Replace a Block with a Dynamic Block
    By Mac Demer in forum Dynamic Blocks - Technical
    Replies: 1
    Last Post: 2012-05-21, 09:49 PM
  4. Replies: 1
    Last Post: 2012-02-16, 06:58 PM
  5. Replies: 7
    Last Post: 2007-02-05, 01:11 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
  •