How to remove broken Items from element if there is no Item Type defined to remove?
If ESRI SHP file is opened and saved in CE version to DGN then it creates Items for SHP attributes. Need to delete those attached attributes in v8i or CE version.
Example:
items.dgn
Hi Oto,
I see what you are talking about in Element Properties and I can also access their values using a property handler, however from what I can tell, I don't think V8i has the ability to delete these. I'm also not aware how much more advanced CE VBA is in this area either. If there is no built-in tool which allows you to remove these, it likely needs an add-in written in C#/C++ to do what you need.
Alternatively, the open source GIS software QGIS appears to be able to import ESRI shapefiles and also appears to have the ability to remove attributes. Perhaps try this before opening/importing the file into CE?
https://gis.stackexchange.com/questions/12329/how-to-delete-fields-in-qgis
It seems when importing shp Microstation doesn't try to create type definitions and treats them as EC attributes. There is key-in to import EC schema but not to remove it.
The help states:
Shapefiles (*.shp) require at least three files in the same directory, with the same name and with the following extensions: .SHP (shape format; describe the feature geometry such as points, polylines, and polygons), .SHX (shape index format; a positional index of the feature geometry to allow seeking forwards and backwards quickly), and .DBF (attribute format; columnar attributes for each shape, in dBase III format).
Perhaps make a back-up copy of the DBF file, open it in this open source DBF editor, remove the attributes you don't need and try importing again.http://sdteffen.de/gtkdbfeditor/
Oto said: Need to delete those attached attributes in v8i or CE version
Item Types are part of CONNECT. They don't exist in earlier versions of MicroStation. CONNECT provides the Detach Item tool...
Oto said:How to remove Items from element if there is no Item Type defined?
I don't understand that question. If there's no Item Type, how can an instance be attached to an element? Post a example DGN.
Barry Lothian said:I'm also not aware how much more advanced CE VBA is in this area
MicroStation CONNECT VBA has the ItemType object and others. Those don't exist in earlier versions of MicroStation VBA.
ItemType
Regards, Jon Summers LA Solutions
Example was already attached to original post.
Don't blame me it is Microstation which calls them items but clearly they are not.