Skip to main content

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 key but I cannot use C# or C++. 

Still interested in modeling automation as a hobbyist. So one of ideas is to use fusion 360 for personal use.  There are some restrictions. I know only 10 parts can be saved into Autodesk cloud only. I was not able to find how to save the file into the local folder. Probably it is not permitted in this free version. I need to check the restriction concerning API programming. The good news is python can be used with visual studio code. I would dig into it. 

Comments

Popular posts from this blog

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 ...

Solidworks API Programming: Macro Recording and Editing

Solidworks API Programming, Part 1:  Automatically generated VBA source code analysis Let's start Solidworks API Programming with macro source code analysis. I just explain what I have done in person. Although I have not read the book, "Automating SOLIDWORKS 2006 using MACROS ( http://www.amazon.com/Automating-SOLIDWORKS-2006-using-MACROS/dp/1585032638 )", I think it could be a good reference for serious users. If you know better or best book for Solidworks API Programming, please leave the comment. 1. Macro Recording: Tools - Macro - Record This is the common function of MS-based programs which support VBA just like Excel. This function record the user action itself converting it into VBA source code. 1) Just click Tools - Macro - Record 2) Do what you want to do within solidworks like sketching and extruding 3) After finishing your work, just click Stop 4) Save window pops up. Write the filename and save it. 2. Macro Editing: Tools - Macro - Edit... L...

Solidworks API Programming

From now on, I am going to talk about famous 3D modeling tool Solidworks from the scratch. Specifically speaking, this talk is about Solidworks API 2006 Programming. At first, I recommend you scrutinize API Help and establish the architecture of API in mind. Let's start. Go to http://www.solidworks.com/pages/services/APIDownloads.html and download Solidworks 2006 Online Help. Run apihelp.chm Browse Solidworks API Help in the Contents tab. - Programmer's Guide: Must read !! - Getting Started Standalone Application and Add-in Application .NET (VB, C#, C++), ATL COM C++ Solidworks Macro and VBA script - Solidworks API Object Model: Must check !! Sldworks (Solidworks itself) ModelDoc2 (Modeling Files) PartDoc / AssemblyDoc / DrawingDoc - Examples and Projects: Very helpful example snippets and complete code for VBA and VB. But, insufficient for VB.NET, C# and particularly ATL COM C++. You can look for examples at solidworks.com's api support...