Recently upgraded from 2010 to 2012 and mapimport4 command is missing shp file format import option. We have lisp routines that format shp files to CAD underlay drawings. Please advise patch or other command line options.
Thank-you
Hi,
>> What for Mapimport4, when you have the richer _MAPIMPORT, sir?
Because it's the only type of import, that creates the lables for each polygon as points (real inside of the polygon) and the object-data is placed on these points and not on the outline.
And if you want to create a MAP-topology starting with polygonal-shape data MAPIMPORT4 is the only way to do that errorfree.
- alfred -
BTW: I wrote that to Autodesk in the time of beta-testing, but was just ignored.
alfred.neswadba wrote:it's the only type of import, that creates the lables for each polygon as points (real inside of the polygon) and the object-data is placed on these points and not on the outline
Danke, but the same identical effect you get with _MAPIMPORT before and _MAPCREATECENTROIDS after...
Even better, 'cause the OD stay both on the outline and on the inner point.
I humbly guess these 2 commands are really redundant, my dear...
Hi,
>> but the same identical effect you get with _MAPIMPORT before and _MAPCREATECENTROIDS after...
Sorry to say, but absolutely wrong as the MAPCREATECENTROIDS has not learned the existance of islands.
Try to run the command in such a situation:
You get both centroids in the same inner polygon. when you now (try to) create a topology you get:
And that is the situation where you now have to manually correct the centroids ... for may be thousands or millions of polygons ... good luck. 😞
It seems that Autodesk does always forget that GIS-data can hold islands
An example is this: >>>another bug<<< Map3D has (had) with FDO-objects and FDO-command for union of two polygons, but here it is solved with 2013 (great). Anyway frustrating is that it needed 3 versions and I don't know how many servicepacks in the meantime to get repaired. At least there were 3 years of wrong datacreation (data-damage).
For MAPCREATECENTROIDS this bug exists as long as the command exists. As long as the MAPIMPORT4 existed for SHP there was a workaround to come from a polygonal shape to a topology ==> and now (2012 and 2013) .... this workaround is cut. 😞
- alfred -
alfred.neswadba wrote:It seems that Autodesk does always forget that GIS-data can hold islands
I don't concur with you, sorry: in my glorious Map2006 everything works as expected, so I cannot believe that newer releases fail.
Here's my workflow since years:
1] when you create a topology, Map is clever enough to "feel" the presence of islands
2] at the moment of _MAPEXPORT as a shapefile, you must set the interface like this, and at the moment of _MAPIMPORT of the shapefile, you must set the interface like this
3] finally you issue _MAPCREATECENTROIDS, getting only one centroid in the right asymmetrical position: check this out.
Hi,
At short:
In a few minutes you will get a SHP and a video that makes it clear how it (not) works for me.
- alfred -
Hi,
Take then my shape attached, import it with MAPIMPORT and then start _MAPCREATECENTROIDS. Look also to my video, that shows how the import runs with MAPIMPORT4 and the one with MAPIMPORT and MAPCREATECENTROIDS.
- alfred -
Great to have a discussion with you 😉 🙂
alfred.neswadba wrote:Great to have a discussion with you
Me too, mein Herr...
I was able to replicate your bug, getting 2 centroids, and here's my humble debug: you should _MAPEXPORT exactly like this.
Doing so (with the settings # 1,2,3 as above) you can _MAPCREATECENTROIDS only one centroid.
Hi,
>> you should _MAPEXPORT exactly like this.
Oh man, no, not MAPEXPORT ... when using MAPIMPORT I should not check the option (for creating closed polylines)
I always checked the option as I disliked MPOLYGON as object not really usefull ....
BUT:.....then I get MPOLYGONS instead of polylines
AND:.... what is new to me is that the command _MAPCREATECENTROIDS can work with these MPOLYGON-objects and yes, in case of MPOLYGONs the creation of the centroids runs fine!
After that the MPOLYGONSs can be exploded, can be MAPCLEANed and after all the creation of a new topology is ok without manual work.
Well, I have to stop my "hating MPOLYGON"-opinion (starting tomorrow or so ... 😉 )
Again, great discussion, thank you a lot for that 🙂 and at least yes, now I also don't see any more necessarity of MAPIMPORT4 for SHP.
THX! - alfred -
Hi,
maybe using the import-option-file (*.IPF) could be a help? Look >>>here<<<
- alfred -
Hi,
does that work for you? I did some samples like you suggested, at least with Civil3D2013 that did not work (even having FILEDIA set to 0).
But if it's working for you, then everything is ok for today 😉
- alfred -
Can't find what you're looking for? Ask the community or share your knowledge.