Search found 4 matches

by ATANAS
Fri Sep 29, 2023 11:21 am
Forum: API
Topic: Document Manager Replace external references
Replies: 2
Views: 1058

Re: Document Manager Replace external references

It worked!
I came across this example but dismissed it as I thought it would work only on drawing files.
I should have known better than to dismiss code offered by Artem.
Thank you both!
by ATANAS
Thu Sep 28, 2023 2:25 pm
Forum: API
Topic: Document Manager Replace external references
Replies: 2
Views: 1058

Document Manager Replace external references

Hi, Has anybody succeeded in replacing external references FOR ASSEMBLY AND PART using document manager? The below code works for drawing where GetAllExternalReferences4 is called. But according to the SW documentation this function should be called on drawings only and for part and assembly files G...
by ATANAS
Tue Mar 28, 2023 10:06 am
Forum: API
Topic: SW Addin - User Form Question
Replies: 2
Views: 799

Re: SW Addin - User Form Question

Thank you JSculley, I am not sure if I followed exactly your proposal but it definitely pointed me in the right direction. Here is what worked for me: Dim hwnd As New IntPtr(iSwApp.IFrameObject.GetHWnd()) Dim swNativeWindow As New NativeWindow() swNativeWindow.AssignHandle(hwnd) MyFrom.ShowDialog(sw...
by ATANAS
Mon Mar 27, 2023 4:28 pm
Forum: API
Topic: SW Addin - User Form Question
Replies: 2
Views: 799

SW Addin - User Form Question

Hi All, I hope somebody will have the answer to that. I am working on an vb.net SW add-in that will show a user form. I would like to find a way to show the form centered over Solidworks's window. Currently I have the form's topmost property set to TRUE. The problem is sometimes the form opens on th...