How to relinquish a single element?

How to relinquish a single element?

Anonymous
Not applicable
1,043 Views
1 Reply
Message 1 of 2

How to relinquish a single element?

Anonymous
Not applicable

Is there any command immediately relinquishes a borrowed or owned element?

 

Something like:  `Relinquish(ElementId)`.

 

Context: our addin creates a view in order to show the user a part of their model.  After the view is created, a section box is created to isolate the element.  But if they are using C4R for example and they have another colleague using the addin also, then when the addin goes to section box on the same view, it will not be able to.  One option is to create 1 view per user, but that will pollute their views.

0 Likes
Accepted solutions (1)
1,044 Views
1 Reply
Reply (1)
Message 2 of 2

RPTHOMAS108
Mentor
Mentor
Accepted solution

I don't believe so, as in the UI you can only press the button Relinquish and it'll try to give back all elements you own.

 

I think element ownership is dealt with more dynamically than worksets i.e. sometimes you take ownership of items indirectly without even knowing. To edit a wall you may take ownership of other sections of the wall joined to it. So to relinquish just the part of the wall you know you own isn't that helpful.

 

WorksharingUtils.RelinquishOwnership

 

0 Likes