Subscribe to this thread
Home - General / All posts - Help for select columns in Drawing for export to SHP
CuDomagoj70 post(s)
#20-Apr-17 13:15

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

...

adamw


10,447 post(s)
#20-Apr-17 18:11

The first post in this thread contains prototype code that selects the fields to export.

CuDomagoj70 post(s)
#21-Apr-17 08:12

Thx!

Manifold User Community Use Agreement Copyright (C) 2007-2021 Manifold Software Limited. All rights reserved.