Skip to content

Instantly share code, notes, and snippets.

@zflat
Last active December 16, 2015 20:19
Show Gist options
  • Save zflat/5491873 to your computer and use it in GitHub Desktop.
Save zflat/5491873 to your computer and use it in GitHub Desktop.
SolidWorks Dyanamic Add-in Setup
Using NSIS and regasm
http://christian-fries.de/blog/files/2012-03-wow6432node.html
http://nsis.sourceforge.net/Get_directory_of_installed_.NET_runtime

Constructor gets the list of plugins as a List<Dictionary<String, String>>

Private method build_container that uses the plugins list to dynamically create instance methods based on the command for each plugin and a prefix.

See CodeGenerator class in the post on the help forums: https://forum.solidworks.com/thread/34702

Simple splash screen while in wait-loop for socket connection
http://www.codersource.net/2010/01/31/creating-a-splash-screen-in-c/
// quick worker thread
ThreadPool.QueueUserWorkItem((x) =>
{
while(condition){
System.Threading.Thread.Sleep(10);
}
});

http://stackoverflow.com/a/569630

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment