raichu692003791074
2020-07-20, 04:57 AM
There's a random problem I'm encountering in processing dxf information coming out of a trimble survey controller. It's random in the fact that 50% of the controllers do this and 50% don't, I think it's something to do with the age of the OS on each of the controllers.
The newer OS controllers write the block attributes into a different layer than the block itself. So we have the point block "DIAG_CROSS" in, say, 'SW' layer but all the attributes, size etc, appear in a layer 'SW_Attrib'. Historically this hasn't been a big issue, but now we're dealing with larger and larger data sets it's becoming a logistical nightmare to select and change the layer of multiple text and block items created by our LISPS.
E.g. I run a LISP that identifies the attribute 'SIZE' and it creates the text and orients it to the associated linework, but it goes into a new layer 'SW_Attrib_txt' and then I have to select the text,select similar, and move them into the "SW_txt" layer of our standard drawing template, which has predefined colours etc.
Because the linework in the dxf is already in layer 'SW' I can't change the layer naming using [ RENAME> *_Attrib > * ] because the layer already exist.
Is there a simple LISP to "move" the attributes from SW_Attrib into SW, wholesale for all instances of _Attrib layers?
Thx in advance.
The newer OS controllers write the block attributes into a different layer than the block itself. So we have the point block "DIAG_CROSS" in, say, 'SW' layer but all the attributes, size etc, appear in a layer 'SW_Attrib'. Historically this hasn't been a big issue, but now we're dealing with larger and larger data sets it's becoming a logistical nightmare to select and change the layer of multiple text and block items created by our LISPS.
E.g. I run a LISP that identifies the attribute 'SIZE' and it creates the text and orients it to the associated linework, but it goes into a new layer 'SW_Attrib_txt' and then I have to select the text,select similar, and move them into the "SW_txt" layer of our standard drawing template, which has predefined colours etc.
Because the linework in the dxf is already in layer 'SW' I can't change the layer naming using [ RENAME> *_Attrib > * ] because the layer already exist.
Is there a simple LISP to "move" the attributes from SW_Attrib into SW, wholesale for all instances of _Attrib layers?
Thx in advance.