solidworks-api icon indicating copy to clipboard operation
solidworks-api copied to clipboard

Unexpected behaviour after ActiveModel.SaveAs method calling

Open doronkind opened this issue 6 years ago • 5 comments

I've implemented SaveAs method to create a copy of the file for the following operations

Application.ActiveModel.SaveAs(tempFileLocation, options: SaveAsOptions.Silent | SaveAsOptions.Copy);

It works as expected with a part: if I select any details the file copy contains just them and it contains a whole model if particular details are not selected.

But in assembly case I got an unexpected behavior: If I try to select particular details (not parts) the file copy is not created. And the result is succesfull, it looks strange.

image

image

image

image

doronkind avatar Jul 24 '18 07:07 doronkind

I don't get that issue. I select say a Boss inside a part, do SaveAs and it always saves all parts inside the assembly as STLs. Can you share your example file and exactly what it is you are clicking?

angelsix avatar Jul 24 '18 08:07 angelsix

How can I provide you a short video with repro steps?

doronkind avatar Jul 24 '18 08:07 doronkind

Just download a free screen capture https://screencast-o-matic.com

angelsix avatar Jul 24 '18 10:07 angelsix

@angelsix I've created a repository with a test plugin you can reproduce the error: https://github.com/doronkind/sw-addin-file-access-error

I also have prepared a short video with repro steps: https://screencast-o-matic.com/watch/cFitQgFLjj

doronkind avatar Jul 27 '18 09:07 doronkind

Thanks. I will look into this when I get time. Little busy now for good few days but will get around to it

angelsix avatar Jul 27 '18 14:07 angelsix