Browse Blog Posts by Tags
-
Q : Here is a question about VSTA multi threads. I have a function to create a new project file. It works fine when I just run the line of code in VSTA. But it failed when debugging. I looked into it and found no difference except for the executing thread. When I run the macro, the main thread calls...
-
These are the steps to enable in-process debugging in ShapeAppMacroRecording sample’s VstaDesignTimeIntegration class: 1. private int currentProcessID; internal void Connect(Application hostApplication) { currentProcessID = System.Diagnostics.Process.GetCurrentProcess().Id; 2. int IExternalDebugHost...
-
Q : I have a couple of questions that I hope you can answer: 1) It seems that any time the VSTA documentation discusses running end-user-code, it refers to that user code as an “addin,” even if that code comes from a macro recording. Therefore, is it fair to say that all code that end-users...
-
Automating SolidWorks 2009 Using Macros, by Mike Spens " Visual Studio Tool for Applications Tutorial for SolidWorks users Using the Visual Basic.NET Language"
-
Please try this C++/COM/C# sample for VSTA 2.0 on how to: --load/unload different macro addins/projects --'show macros' whether the assembly is loaded in memory or not (ReflectionOnly). Sample demonstrates: 1. 'Load VCF' loading and unloading macro addins and their projects from a single...
-
In seamless non-destructive debugging scenarios (macro recording and running) the host application must keep track of the latest version of the “macro” project assembly. The IDE offers the user many opportunities to change settings like the active configuration or the output path which can make it difficult...