This morning i have spend 3 hours searching some script which can help me, but i didn't find it. In my Project, I have a Folder in which I have Drawings. There are usually 9 drawings, each of them has its own structure, so some files have in up to 20 columns. I need to prepare a SHP file that mostly contains 5-6 columns from the original drawing. Does anybody have any script where I can see how to select the fields I want to export and sort columns according to the order I want. The only way I know this is, and he also makes a mistake. If col.Name = "Atr01" Then Cols.Add "DCColumn" End if If col.Name = "Atr02" Then Cols.Add "DCCol" End if Or something like this: if col.Name ="Atr01" or col.Name =Adr02" or col.Name = "Fieldxy" Then put this columns ready for export else next col ...
|