Shape profile

Shape profile

Anonymous
Not applicable
7,880 Views
5 Replies
Message 1 of 6

Shape profile

Anonymous
Not applicable

Hi everyone,

 

I would like to get some help in a .shp import question. 

When I use the mapimport command, the dialog box pops up and I open the files. All good. Then there is an other dialog box where I can adjust the attributes, the layers etc. There is an option that helps you to save a profile which saves these settings.

 

The profile's file is a .ipf file. 

The question is: How can I use these settings in every other shape import procedure?

 

Beacues every time I import a new (another) shape file, the loaded profile won't adjust the attributes, layers, etc. 

 

Thank you for the answers.

0 Likes
7,881 Views
5 Replies
Replies (5)
Message 2 of 6

Koesti
Autodesk Support
Autodesk Support

Hi @Anonymous,

wellcome to the AutoCAD Map 3D Forum!

From the description I assume that the import should be done for SHPs with different Schemas.

The IPF file save the Schema from the current SHP with all the column names and how they should be handled during the import.

IPF format is ASCII file, so it is possible to be open the file with any Texteditor, which might help so see what exactly is saved in the profile.

Depending to the workflows/work to do, the beauty of the command could be to run scripts to import several SHP files with specified configuration from command line (-mapimport).

Please let me know if you have further questions.

Kind regards

Brigitte



Brigitte Koesterke

Technical Support Senior Specialist
0 Likes
Message 3 of 6

Anonymous
Not applicable

Hi Brigitte,

 

I opened the .ipf file before and couldn't understand a thing. That's the reason I posted this problem. The "know how" is what I am asking for, guess it's too complicated.

 

Thanks anyways

0 Likes
Message 4 of 6

Koesti
Autodesk Support
Autodesk Support

Hi @Anonymous,

 

Please find a short description, hope that help.

The screenshot show the MAPIMPORT dialog with the Attribute/Table:

ipf.png

 

I try to explain the structure of the IPF.

Inside the IPF we have the settings for coordinate system, Version, Import PolygonsAsclosedPolylines, Blocknames and they all follow the same structure as the sample below:

<AdMapImportProfile version="2.1.2"><LoadedProfileName></LoadedProfileName>

<DoCoordinateConversion>1</DoCoordinateConversion>

<ImportPolygonsAsClosedPolylines>1</ImportPolygonsAsClosedPolylines><AuditClassifiedAfterImport>1</AuditClassifiedAfterImport>

<FormatName>SHP</FormatName><DriverOptions/>:

 

For the sample above, the Tablename is changed from Schulen to Kannweg with two attributs. 

<ColumnName>ART</ColumnName><OutputColumnName>ART</OutputColumnName><OutputTableName>Kannweg</OutputTableName><ClassColumnMappingType>NotMapped</ClassColumnMappingType><OutputClassPropertyName></OutputClassPropertyName></ProfileColumn><ProfileColumn><ColumnMappingType>MappedToOD</ColumnMappingType> 

= imported Name of the Field ART

= result Name of the Column ART (no changes)

= new Tablename of object datatable in Map 

If the Attribut is not imported there is no target CollumnName = <OutputColumnName></OutputColumnName>

If you let me know what you like to do we might find another process for you.

Kind regards

Brigitte



Brigitte Koesterke

Technical Support Senior Specialist
0 Likes
Message 5 of 6

Anonymous
Not applicable

My guess would be each shapefile has  a different name setup with respect to object data, coordinates, layers and so on and that is why it does not work. In order for the ipf  to read the data correctly for different shapefiles, it would need to figure out and know what object data you want from each and every shapefile.   However, if  you often import  a shapefile with the same setup it should read it without issues because the ipf relates to the particular shapefile.  I think you have to create an ipf for each shapefile you import because It only stores settings for a particular shapefile.

Message 6 of 6

Anonymous
Not applicable

Well the attributes I need are the following:

 

- coordinate system 

- drawing layer (use datafield as layername: m_adatnev)

- objectclass - nothing -

- input coords - nothing -

- data: create object data

- points: <ACAD_POINT>

 

And the HUN-EOV72-7P coordinate system as actual drawing coordinate system.

I attach the profile, but its so messy.

 

 

0 Likes