Skip to main content
12-Amethyst
December 4, 2024
Question

Programmatically Remove the added WTPart & EPMDocument from the WorkSpace (WGM)

  • December 4, 2024
  • 2 replies
  • 1078 views

I added the part and its associated Cad object into the workspace, I did checkout and check-in, I need to remove the object from the workspace programmatically which I added.

 

Issue: - I am unable to remove the objects from the workspace. Please suggest some ides to achieve this.

2 replies

16-Pearl
December 9, 2024

Hi,

Isn't there a API for removing objects from Workspace?

There must be. Please look into the Javadoc.

Also, dependency should be looked at.

Are you able to remove the objects manually from the workspace?

 

Rgds

Hari

12-Amethyst
December 10, 2024

Hi Hari,

Yes.!. manually we can remove the objects from the workspace, 

 

Regards

Raghavendra

Fadel
23-Emerald I
December 9, 2024
12-Amethyst
December 10, 2024

Hi Fadel

 

Thank you.

I will try, it is Possible to create the Workspace and delete the created workspace programmatically, because instead of adding and removing the objects from the workspace, I think creation & deletion is the best solution.

 

Regards

Raghavendra

 

HelesicPetr
22-Sapphire II
22-Sapphire II
December 10, 2024

Hi @RaikarRaghu 

@Fadel has provided the solution. 

PetrH