View a room that is already open with an SW macro

Hello

I'm looking to display a room that is already open with a SW macro.

The function 'swApp.OpenDoc6(...)' does not work because the room is already open

Thanks in advance

 

If you want a little more context:

I have a macro on SW that allows me to make the DXF of an unfolded part (if sheet metal part) and the PDF of the plan. This macro can be launched from the plane or from the room. This works well.

But I want to embed a function that modifies a property of the part, but this only works if it is the part that is displayed on the screen. If it's the plan that's open, it's SW crashed.

Hello. Try

activatedoc3 and/or Visible

1 Like

Thank you

This is exactly what I was looking for (the 2 solutions work)