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
Simple question: Why not just Create Region (Flood Fill) each shape (without Keep Original active) to get rid of the problem?
Because this is just a part from whole file and there are also lines with same issue. But your idea is valuable but what if there are thousand of such shapes?
Oto said:but what if there are thousand of such shapes?
Then you would have a lot of double-clicking to do! Easily done with the SHP files as a reference file(s) and having Keep Original enabled on Create Region.
In theory you could programmatically recreate Lines/Linestrings/Shapes/Complex Shapes by scanning a DGN file, enumerating through each element, determine its type, create a vertexlist of the elements vertices, use the appropriate 'CreateXXXElement' method to create the element again, add the element to the designfile, delete the original element from the designfile, rinse & repeat. Probably not a task for VBA but it probably would work and likely faster than you doing it manually.
IMHO personally I prefer to leave the GIS information types attached, to the dgn elements as it data intelligence ( and may be needed to back track or better identify things) when imported into DGN as quite often the shapes come in on the same level and colors and its then more difficult to move them to a better named level names and assign colour codes for presentation or thematic presentation..This is a particular problem for me when I get Cultural, Environmental or Vegetation overlay shape files as the tree / plant names etc are in Latin and are not separate shape files all on one level and white and only the type helps me work out what to do.. unless I ask the GIS supplier to separate the shapes into separate files not usually possible and if I dont have GIS package then I have to do each polygon by hand.. I have not tried to see if I can sort this in CE .. still learning it...but thankfully most of my GIS data is only a few polygons and still manageable .. when its not and just points I get GIS user to export to excel table then I can use the xyz tool to do what I need... with cells ...
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
But was long time user V8iss10 (8.11.09.919) dabbler CE update 16 (10.16.00.80)
MicroStation user since 1990 Melbourne Australia.click link to PM me
Why a negative vote Jan?,
I know it's not a solution to the original post ( and so can anybody who can read also can see that I said IMHO)
but in my defence I provided valid suggestion as to why to not delete any data intelligence and I said its an opinion not a solution.. while Otto may want to remove these and others have suggested how, other less experienced users may need to know why it might be better to leave that data attached to the elements as it makes no difference to prints or pdfs or how it looks on screen but makes a world of difference when they all look the same colour and level name... without the attached information in the attributes or properties you cannot determine how to make them reflect their property thematically eg evergreen trees need to become colour green or level name evergreen and colour green and perennial trees say on another colour and level named to suit.( but both types live in the same shp file. my experience is that the shp file for say TREES.shp with its other data files always imports on the active level and color 0 and its just ref attached as shp file it always shows as white ie colour 0... maybe its only just what I get from ESRI data suppliers.. but its been happening on a lot of shp files from a lot of different sources ....
After all isn't the whole point of drafting is to convey information not lose information?
Lorys said:Why a negative vote Jan?,
Because it is completely subjective, off topic post, and do not bring anything new to discussed topic (how to remove EC / Item data from imported SHP data). You did not mention SHP or EC / Item Types data even once.
The best practices are defined clearly: Stay on topic, share solutions or steps leading to the solution, do not change the focus.
Lorys said:I provided valid suggestion as to why to not delete any data intelligence
It was not the question, so why to steal the discussion and pollute it with different topic?
Lorys said:other less experienced users may need to know
So why you do not e.g. wiki page or blog, as from time to time other people do?
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Jan Šlegr said:The best practices are defined clearly: Stay on topic, share solutions or steps leading to the solution, do not change the focus.
ok then based on that definition your right and I should have made new post altogether .. but it did seem relevant to warn others of the possible dangers if anyone was reading this post in order to delete the EC item data from shp files ..