@ancrayzy wrote:
I get the error
....
Select objects: ; error: bad argument type: numberp: nil
That's because the rules have been changed on us. In the original drawing, all Text objects on the "Bolt_Qty" Layer were applicable, so the selection filtered for object type and Layer. In the newer one, there are many Text objects on the same Layer that don't fit the text-content format in the original.
IF it is consistent that the relevant Text objects will always contain * in them somewhere, and no others will, then this addition:
(if (setq ss (ssget '((0 . "TEXT") (8 . "Bolt_Qty") (1 . "*`**"))))
results in this [at the command line for now], from grabbing everything in a big window:
M16x105-1
M16x110-1
M16x35-14
M16x40-6
M16x45-1
M16x65-6
M16x75-34
M16x80-16
M16x85-6
M16x95-6
M20x85-6
M20x95-12
M24x105-10
M24x110-2
M24x130-78
M24x140-2
PW16x6-6
So, @Gaganpatel , is that a quality of the text content that can be relied on absolutely, or are there more things that might be different from what you've posted so far?
Kent Cooper, AIA