Results 1 to 3 of 3

Thread: autolisp routine to move multiple types of blocks based off of block attribute

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2015-11
    Posts
    1
    Login to Give a bone
    0

    Default autolisp routine to move multiple types of blocks based off of block attribute

    I am sure this has probably been done but I am new to CAD. I am working with MEP2014. I need a lisp routine to be able to search multiple types of blocks based off an attribute value (i.e. a device address) that each block has associated to it. All the blocks are at 0,0 origin and I need to select a block from that attribute and move it to 1,0 then next one to 2,0 etc etc etc so they create a line in the order I need them in. Any help would be appreciative. Thanks

  2. #2
    Woo! Hoo! my 1st post
    Join Date
    2022-04
    Posts
    1
    Login to Give a bone
    0

    Default Re: autolisp routine to move multiple types of blocks based off of block attribute

    I have the exact same issue. Did you ever figure it out?

  3. #3
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    560
    Login to Give a bone
    0

    Default Re: autolisp routine to move multiple types of blocks based off of block attribute

    So you have lots of blocks with say a attribute tag say "ID" in each block is 1 2 3 etc So you type 1 then 2 then 3 and it draws 3 blocks connected with a line.

    It can be done in a few ways. Read the block table for matching block names CIRC* then make a list of ((circ1 1)(circ2 2) etc then its a case of looking through this list for a match 2=2 so insert circ2.

    Need a lot more from you like a dwg with the blocks and the attribute id to look at. The input would be simple type 1 2 5 3 then enter to finish.

Similar Threads

  1. Attribute blocks scaling routine
    By gilsoto13 in forum AutoLISP
    Replies: 9
    Last Post: 2017-12-13, 03:41 PM
  2. How to change dynamic block attribute default values based on block selected?
    By zeirz109180 in forum Dynamic Blocks - Technical
    Replies: 2
    Last Post: 2013-12-13, 02:20 PM
  3. Replies: 13
    Last Post: 2012-09-18, 07:51 PM
  4. Move blocks to attribute elevation
    By noitess in forum AutoCAD Civil 3D - General
    Replies: 0
    Last Post: 2010-09-19, 07:44 PM
  5. Replies: 3
    Last Post: 2007-04-04, 02:18 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
  •