Hi everyone,
Must say this at first line, need your lisp experience to complete a small lisp.
My experience with autolisp is almost nill, so...be some patiente, pls.
First part:
The program starts to read attributes from a block (dynamic) with a specific "TAG" then
get those values, get the entity name of the block and create a list (list1) with all entities found in the drawing.
The method to select blocks is by ssget X.
Second part:
Read a file (csv), and create a list (list2) with all row data. Each line have a value and layer name separated by tab \t
Now comes the part that need to compare list1 and list2...and if the value of attibute (list1) made part of list 2, select the respective block by entity name and change the layer.
How compare two lists and execute the modifications??
Example:
List1 (("FE214" <Entity name: 7ffff93cad0>) ("FE277" <Entity name: 7ffff93c950>>))
List2 (("FE213" "LAYER1") ("FE214" "LAYER2") ("FE277" "LAYER3"))
Each list could have more than 100 sublists.
Thanks in advance.