Skip to main content

Posts

Showing posts from 2023

How to use pySW - a Python Solidworks VBA API wrapper

 Recently I found a python package called "pySW" to be useful for those who are interested in both Solidworks API programming and python language. If you are familiar with Visual Studio Code and shell command in the terminal, you can easily install and play with it. You may want to visit its author's github repository and try his sample test program. I modified a little to read the lens template and generate the variants. It is almost identical to his box generation sample program. It looks like pySW project has never been updated for last 3 years though. Once the package is installed, you need modify a few lines to make it work. Let me explain one by one.  The web page link PySW 1.4 project in PyPI:  https://pypi.org/project/pySW/ Github repository:  https://github.com/kalyanpi4/pySW Package installation and test program workaround Install pySW Run the following command. You should install other dependent python packages.  pip install pySW ...

How to Fix Microsoft Mouse 3500 Wheel Scrolling Issue - Jump or Random Movement

 It is hard to deny the fact that a mouse is one of most important peripheral devices of a desktop or laptop computer - inexpensive and portable input device. Personally I don't want to replace it with other alternatives such as trackpad, trackball or trackpoint.   Microsoft 3500 is one of reasonably priced wireless mouse products available in the market. You may experience small or large troubles while using any mouse products. I experienced jumping or random movement while scrolling the web pages or zooming a object in and out in 3D software such as Solidworks or Blender. The quick and easy actions we can take is to replace battery, check other software, restart the computer, reinstall the mouse driver, switch USB port, and so on. Since my gut told me it would be a physical issue, I decided to open the mouse and check the wheel.   First I thought simply cleaning dust around the wheel would be sufficient. According to previous experiences of other mouse product...

Considering other topics such as fusion 360 API and casual troubleshooting...

I haven't used this blog site for a quite long time. Time to blow dust off, replace old picture frames with new ones, renew this space. Hopefully I can warm up this space and make it more lively. Also youtube channel... So sad... Kept uploading and deleting videos... It is hard to set up consistent theme in my cyber space. Two purposes of blog re-writing: one is my memory aid or activity record, and the other is knowledge-sharing.  I cannot keep writing Solidworks API topics. The first reason is I don't have a working knowledge and experiences to continue. Second, I want to learn and use python but it doesn't seem to be officially supported with primary Solidworks API. Solidworks PDM API may support it but I am not interested in it. Third, I cannot obtain SOLIDWORKS Document Manager API license key. The CAD specialist in my workplace manages the access priviledge of it but I don't have directly-related work tasks. Vba macro script is still available without the license ...