Avatart
2006-11-10, 04:37 PM
Here is a routine that I have written to interrogate a drawing for certain data, with some filters, that will produce a number of operations on the data you ask it to select.
It can extract the 3D co-ordinate data and save it to a .csv file, it can create text, including positional data, at the insertion points of the selection set and it can insert blocks on the insertion points too.
I promised some time ago that I would post up this routine when I had finished it, but I have forgotten which thread it was in, so here is a new thread! I have got it to the testing stage now, so here it is, as far as I can tell working properly.
Please feel free to use all or part of this code and if you find any errors, please let me know, so I can update. Or you could update it and post it back here.
I hope this will be of use to someone.
It can extract the 3D co-ordinate data and save it to a .csv file, it can create text, including positional data, at the insertion points of the selection set and it can insert blocks on the insertion points too.
I promised some time ago that I would post up this routine when I had finished it, but I have forgotten which thread it was in, so here is a new thread! I have got it to the testing stage now, so here it is, as far as I can tell working properly.
Please feel free to use all or part of this code and if you find any errors, please let me know, so I can update. Or you could update it and post it back here.
I hope this will be of use to someone.