PDA

View Full Version : Attribute Extraction Template File - using wild card to search for Blocks


vferrara
2006-12-06, 10:28 PM
Hello AUGI Members:

I am trying to setup a attribute extraction template file to standardize the schedules I would generated using this function. I would then have a Autolisp routine that would load the template file and generate the schedule. However, I noticed that all of the blocks that this particular schedule could use, need to be inserted on the drawing so I can create a template file that would work properly and accurately.

In my particular case this would mean inserting up to 200 blocks (with their attributes) on the drawing. Is there a way to use wild carding to search for the blocks....?? such as the blocks are named PC-1, PC-2, PC-3, .........PC-200, could a PC* be used in conjunction with the EATTEXT command....??....I could not find a way to accomplish this.

Any suggestions would be appreciated....!!!

abdulhuck
2006-12-10, 02:35 PM
Is there a way to use wild carding to search for the blocks....?? such as the blocks are named PC-1, PC-2, PC-3, .........PC-200, could a PC* be used in conjunction with the EATTEXT command....??....I could not find a way to accomplish this.
Any suggestions would be appreciated....!!!
You can use ssget to filter block selection by name.


(setq BlockSelection (ssget "x" '((2 . "PC*"))))


Regards

Abdul Huck