Results 1 to 2 of 2

Thread: LISP Block Insert routine no longer works once a parameter is modified

  1. #1
    Member
    Join Date
    2005-09
    Posts
    48

    Default LISP Block Insert routine no longer works once a parameter is modified

    We have a lisp routine that allows me to insert a block by selecting an existing block in the drawing. This also works with dynamic blocks when you first insert them, but once you modify a parameter it no longer works because it is looking for the anonymous name instead of the block name. Does anyone know how I would go about fixing this problem.

  2. #2
    Member mark.62793's Avatar
    Join Date
    2003-12
    Location
    Santa Rosa, California
    Posts
    49

    Default Re: LISP Block Insert routine no longer works once a parameter is modified

    Here is what I use.

    (setq oldblkname (vla-get-EffectiveName (vlax-ename->vla-object (car oldblk))))

    Hope this helps.

Similar Threads

  1. Quick Plot Lisp no longer works...
    By tyeelaw13 in forum AutoLISP
    Replies: 5
    Last Post: 2010-06-01, 01:59 PM
  2. Replies: 3
    Last Post: 2007-03-05, 06:03 PM
  3. Replies: 1
    Last Post: 2007-02-07, 08:33 PM
  4. Block insert and explode lisp routine
    By rayski in forum AutoLISP
    Replies: 4
    Last Post: 2005-05-19, 01:21 PM
  5. LISP Routine that works with AREA command
    By Paul.C.Rasmussen in forum AutoLISP
    Replies: 5
    Last Post: 2004-09-09, 09:40 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
  •