Results 1 to 3 of 3

Thread: selection based on attributes excel list

  1. #1
    Member
    Join Date
    2017-05
    Posts
    6
    Login to Give a bone
    0

    Default selection based on attributes excel list

    Good morning to everyone.

    rather newbie here, and just starting to work with LISP routines. s(h)aves me a lot of time.
    Now the situation is this:
    I get a lot of objects from the surveying team, which have to be put into the drawing.
    No problem here, I've got an excel list of the object name and coordinates to match, so I insert an attributed block into the drawing based upon the coordinates from the excel sheet.
    I've got all these objects within the drawing, and now the status of these objects is changing.
    status is let's say 1, 2 or 3 ( these statusses have a different layer ) I can remake an excel sheet everytime a couple of hundred of these objects shift status, and delete the old objects, just to put in the same objects, but on a different layer.

    But I reckon it shouldn't be impossible, to select the objects based upon their attributed value ( just numbers 1 to 5000 or so )and move the selection to a different status layer.
    Does anyone know of a routine to select attributed blocks within a drawing based upon their attributed value, which is mentioned in an excel sheet?

    I've already tried FIND command, and searched the net for LISP-routines

    example excel-sheet 2017-10-18_072800.png
    example blocks 2017-10-18_073759.png

    As you might be able to see, I'm working BricsCAD

    kind regards,

    Bart

  2. #2
    All AUGI, all the time
    Join Date
    2010-06
    Posts
    962
    Login to Give a bone
    0

    Default Re: selection based on attributes excel list

    Hi,

    Unfortunately there is not a filter to select attributed blocks based on their attributes' values so you need to make a selection set with the attributed block names then iterate each block to retrieve all attribute(s) value(s) then check if this / these value(s) match your criteria, so add them to a new list otherwise pass over the block and continue till the end.

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

    Default Re: selection based on attributes excel list

    Tharwat has given you the answer to the easy part, how do you intend to identify the point number in the block to be changed, output a simple text file 1 2 3 4 56 57 99 100 etc or a range and number combo 1-5 67 70-76 83 84 or is it paired answers 1-5,layer1 67,layer2 68,layer2 70-76,layer1 and so on. When you have a few thousand it gets a bit more difficult. Is it something a CIVIL add on running within Briscad would be a better way to go given all the extra stuff you would get access to.

    Ps I have jobs with 30,000+ points so we do it right 1st go.

Similar Threads

  1. Block, attributes and Selection sets
    By breton_jean789423 in forum Dot Net API
    Replies: 4
    Last Post: 2014-03-05, 12:38 PM
  2. 2010: Automated selection based on geometry.
    By Inukshuk in forum AutoCAD Customization
    Replies: 1
    Last Post: 2012-02-27, 06:10 PM
  3. Attributes and Excel Files
    By HVAC_Girl in forum AutoCAD General
    Replies: 6
    Last Post: 2012-02-27, 01:53 AM
  4. Selection Sets and Blocks with Attributes
    By Coolmo in forum Dot Net API
    Replies: 8
    Last Post: 2009-10-09, 04:01 PM
  5. Replace Components Based on Selection Set
    By inventor.wishlist1738 in forum Inventor Wish List
    Replies: 1
    Last Post: 2006-04-13, 08:20 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •