Is it possible to set or renumber Element IDs so it starts with specific value?
Like start all elements with 100000 similar as it is with file position which starts with 4000000?
Oto said:GUID will not work
"Incremental ID within specific interval" is also GUID.
Oto said:to have incremental ID within specific interval(large one)
When the requirement is to have incremental ID (and continuous optionally) over more files, I think it's not very compatible with individual DGN files with own "element id numbering".
I can imagine that when the files are sent to a customer, application can analyze them and to create a new ones, using some logic to use (and delete after that) enough elements, so every file will start from some ID.
But how to solve a situation, when the files will grow, so gaps between numbering will have to changed from time to time, so the history cannot be maintained (existing file will receive different IDs in different exports)? Or, it's about one export at the time, with no continuity required?
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Oto said:Requirement is to have incremental ID within specific interval
That's not possible without intimate control over MicroStation's ID generator. There's no user access to that mechanism, and there are no APIs that control it.
If you're not using a document management system (DMS), then I suggest that you consider an Item Type that provides an ID, then create an Item instance for each element for which you need an ID. That way you're in control of the ID generator.
Jan identifies some of the problems you must solve in order to create a safe ID generator. It's akin to the row indexing that relational database vendors have developed, where the ID generator must be reliable when multiple users want to assign the next ID to an object. It's not a simple algorithm. If you're using a DMS, that would be the first place to start seeking an ID generator.
Regards, Jon Summers LA Solutions
Jan Šlegr said:Or, it's about one export at the time, with no continuity required?
Only that each supplier have some element counter within this interval not required to have to exactly elemID any other method could also work. Maybe item value which could be sum of Initial value(File Properties comment field)+ElemID could do the trick.
Jon Summers said:I suggest that you consider an Item Type that provides an ID, then create an Item instance for each element for which you need an ID
Thanks but will need more details as not have yet grasped how to use Items in a such way.