Use Notepad++ to search API code

EmailFacebookLinkedInTwitterShare

When you first begin programming for applications, the Internet is your friend, it is usually the fastest way to figure out how to write a section of code. Over time your own personal code library is going to grow. You would rather use code from your own library – you trust it. The problem is that it is usually easier to find code examples on the Internet than your own hard drive! I recommend trying the “Find in Files” function in Notepad++. [Notepad++ […]

Read More

Use Notepad++ to search API code

EmailFacebookLinkedInTwitterShare

When you first begin programming for applications, the Internet is your friend, it is usually the fastest way to figure out how to write a section of code. Over time your own personal code library is going to grow. You would rather use code from your own library – you trust it. The problem is that it is usually easier to find code examples on the Internet than your own hard drive! I recommend trying the “Find in Files” function in Notepad++. [Notepad++ […]

Read More

Changing languages on drawings

EmailFacebookLinkedInTwitterShare

I know companies that spend a lot of money translating drawings. Typically it is a slow, tedious, manual process. Since often times the translators aren’t engineers, you can sometimes get embarrassing translations. If your standard notes are blocks, translating these notes can be done very quickly. SOLIDWORKS’ blocks have a “FileName” property that a macro can easily change. Change the “FileName” property and the block immediately changes to the new block. So if you are clever about your block naming strategy, a […]

Read More

VBMsgeBoxResult

EmailFacebookLinkedInTwitterShare

Most people only use Visual Basic’s Message Box as an “alert” tool – a way to pass information to the user. Did you know you could use it to pass information back to your macro? The SOLIDWORKS API class teaches you to declare a variable and set that variable equal to the value returned by MsgBox. Works great, now the button the user chooses (in this case either a “Yes” or “No” button (most likely in this case “Yes”)) will be stored in the “result” variable. […]

Read More