Is there a way via the API to change the Sheet Index Name?
Jon is correct. We now haven't Sheet Index related API published. I had filed an enhancement for it months ago as below:
Enhancement 1048943:Sheet Index API needed
Is there any update on if this will be added to the .NET API?
Hi Mike Robertson,
I linked the two enhancements below (having some overlapping functionality requested) and will check with product management to see if this can be addressed in MSCE U15 or need to be deferred for U16. Until the API becomes available please see this post for the most recent information and request to publish an internal Sheet Manager API for .NET.
HTH,Bob
RELATED:
Hi Mike,
Mike Robertson said:Is there any update
Just a question: Is it possible to rename sheet index manually? I think it's named accordingly to workset name and I do not recall any "rename index" tool available in MicroStation.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Hi Jan,
We were trying to programatically create a workset and generate and populate workset properties from our financial system. We could do everything except get the Sheet Index name to match the workset name. We would still like to do this if the API would support this functionality.
Mike Robertson said:We could do everything except get the Sheet Index name to match the workset name.
Does it mean that the issue is not "how to rename sheet index", but "how to create workset exactly the same way as manually, so sheet index name is the same as workset"?
Such context is crucial in my opinion, because when sheet index cannot be renamed (I am not aware of such option in GUI, even when EC definition is not read only), the focus should be how to create it right.
Regards,
Jan,
I've had a couple of different threads dealing with worksets & sheet indexes. Bentley has already confirmed that I can't automate the creation of a workset. My latest post in this thread was really to check with Robert Hook if there are any updates on the workset & sheet index API updates.
Mike Robertson said: I can't automate the creation of a workset.
C++ has the DgnWorkSet class. It offers a Create method: Construct a WorkSet object to represent a new WorkSet being created. Presumably there's other stuff missing that you need to populate the sheet index.
DgnWorkSet
Create
Regards, Jon Summers LA Solutions
Mike Robertson said:I've had a couple of different threads dealing with worksets & sheet indexes.
Ok, the context of your question was not clear, because you did not mention / link the previous discussions.
Mike Robertson said:My latest post in this thread was really to check with Robert Hook if there are any updates on the workset & sheet index API updates.
I agree it would be nice to have specialized API, because not everything can be achieved using alternative approach:
But still, because it's not possible to rename the sheet index even from GUI manually, I guess it's not allowed from some reasons (and fixed to be always equal to workset name) and more important is to find the way how to create the workset correctly. I have not used the method mentioned by Jon Summers, so I am not sure whether there is any issue.