Worksets properties

Worksets properties

solvedplus
Contributor Contributor
370 Views
3 Replies
Message 1 of 4

Worksets properties

solvedplus
Contributor
Contributor

Dears,

how can i close or open work set using API

its read only on Workset class

solvedplus_0-1661593034054.png

 

371 Views
3 Replies
Replies (3)
Message 2 of 4

RPTHOMAS108
Mentor
Mentor

I don't know that it can be done on an open document but the below open methods allows you to set the open or closed state of user worksets:

 

Application.(ModelPath, OpenOptions)

UIApplication.OpenAndActivateDocument(ModelPath, OpenOptions, Boolean)

 

Open options has the

OpenOptions.GetOpenWorksetsConfiguration

OpenOptions.SetOpenWorksetsConfiguration

 

Which can be used to change the WorksetConfiguration object.

Message 3 of 4

solvedplus
Contributor
Contributor

i can't get this method well
can you please make it more clear
thanks in advance

0 Likes
Message 4 of 4

solvedplus
Contributor
Contributor

I want to be able to open or close worksets while the file is working
not while loading

can you help my please

many thanks in advance