See the top rated post in this thread. Click here

Results 1 to 2 of 2

Thread: copying a block to a variable distance then renaming the original with lisp

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

    Default copying a block to a variable distance then renaming the original with lisp

    I would like to select a block copy it to a given distance and then rename the original block automatically...

    I believe I can figure out the copying of the block and the user entering the given location...

    What I need help with is for ever new block copied it would replace the previous blocks name...

    Can anyone help me with this?

    For example the first block would be B1 then when I insert the second block it would insert as B2, the next B3...And so on...

  2. #2
    100 Club
    Join Date
    2000-11
    Location
    Ontario, Canada
    Posts
    116
    Login to Give a bone
    1

    Default Re: copying a block to a variable distance then renaming the original with lisp

    This function by Lee Mac allows you to duplicate a block definition with a new name: http://www.lee-mac.com/copyblockdefinition.html.

    You could write a custom function for copying your block insertions such that as each copy is made, the above code is called to create a copy of the block definition with the desired name, then the new insert is renamed to match the new block definition.

Similar Threads

  1. Renaming a block using LISP
    By mikelf in forum AutoLISP
    Replies: 38
    Last Post: 2016-03-23, 01:58 PM
  2. BLOCK RENAMING
    By Wish List System in forum AutoCAD Wish List
    Replies: 2
    Last Post: 2012-08-08, 05:54 PM
  3. Renaming block definition
    By jbeaman in forum Dynamic Blocks - Technical
    Replies: 4
    Last Post: 2007-08-09, 01:09 PM
  4. Moving or copying half distance of your pick points
    By ReachAndre in forum AutoLISP
    Replies: 1
    Last Post: 2007-03-08, 02:49 PM
  5. Divide the value stored in system variable Distance
    By blaine.67000 in forum AutoLISP
    Replies: 7
    Last Post: 2006-06-22, 06:07 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
  •