US$0.00
0

Author: Amen Jlili

SolidWorks Macro to Efficiently Manage Assembly by Hiding All Sketches

Description This macro hides all visible sketches in the active assembly. This is useful for cleaning up the view in complex assemblies where multiple sketches may clutter the workspace. System Requirements Prerequisites Results Steps to Set Up the Macro To quickly get the SolidWorks macro to efficiently manage assembly by hiding all sketches up and running, follow these brief instructions: Pro-Tip: It is highly recommended to assign a keyboard shortcut or a toolbar button to this macro to achieve maximum speed and efficiency. VBA Macro Code Macro You can download the macro from here. Customize with Expert Support Contact us today and get the most from your SolidWorks automation.

Read More »

SOLIDWORKS Macro to Export Assembly Components as Parasolid

Description The macro will traverse your open SOLIDWORKS assembly file (.SLDASM) methodically and recursively, detect each child component (part), and then proceed to automatically save each part in the stable Parasolid (X_T) format. The macro traverses recursively through the assembly structure so that each part is saved based on the part name. System Requirements Pre-requisites To execute the macro, the following conditions must be satisfied: Results The results of your automated batch export process are: Steps to Set Up the Macro VBA Macro Code Macro You can download the macro from here. Reach out, and we’d be happy to assist with integrating this or any other batch process into a more complete system based on your needs.

Read More »

Why “Class Not Registered” Happens When Loading SOLIDWORKS PDM Add-ins

If you have ever tried loading a PDM add-in and hit a confusing startup error, understanding why “class not registered” happens when loading SOLIDWORKS PDM add-ins is the first step to fixing it. This issue usually points to a broken or incomplete COM registration, often caused by mismatched permissions or missing system components. When a SOLIDWORKS PDM add-in fails to load with the message: Failed to load add-inReason: Class not registered the cause often isn’t the add-in code or COM registration itself: It’s the elevation context in which the host application runs. Windows isolates COM registrations between two different scopes: COM Registration Scope Registry Location Accessible When Per-User HKEY_CURRENT_USER\Software\Classes\CLSID The process runs non-elevated (normal user context). Per-Machine HKEY_LOCAL_MACHINE\Software\Classes\CLSID The process runs elevated (as Administrator) or system-wide. When you register your SOLIDWORKS PDM add-in (e.g. CardSync.dll) using regasm or the PDM Administration tool, it is normally stored under the current user’s profile (HKCU). However, if the host process like File Explorer, PDM Explorer, or even your test harness (Orca.Tests.exe – At Blue Byte Systems, we have developed our very own unit testing framework for add-ins), runs as Administrator, Windows will block access to any COM object registered per user. That’s exactly what the “Class not registered” dialog means. SOLIDWORKS PDM Explorer itself is not designed to run elevated. When your own executable or service is launched as Administrator, it now operates in a different COM security boundary and cannot see the user-level registration of your add-in. In the example of the screenshot above, I’m debugging inside Visual Studio (ADMIN) and launching my process from there. The moment Visual Studio is elevated, every child process (including your test harness) inherits that elevation, and therefore loses access to the per-user COM registry hive. Microsoft’s Official Explanation Applications that are run-elevated (whether manifested as RequireAdministrator or selected via Run as Administrator), as well as applications run from an Administrator account where UAC is disabled, cannot access any COM objects configured per-user. (Source: MSDN – “Manifestation” and Stack Overflow discussion) How to Fix or Avoid It Our Practical Advice If your application interacts with SOLIDWORKS PDM’s COM APIs, never run it as Administrator unless the add-in is registered per-machine.

Read More »

SolidWorks Macro to Export Sheet Metal to DXF in SOLIDWORKS

Description The macro processes an active SOLIDWORKS assembly file (.SLDASM) in a systematic fashion, finds each sheet metal part, and exports its corresponding flat pattern geometry to a DXF file.  System Requirements Pre-requisites In order to run the macro, the following requirements must be met: Results Steps to Set Up the Macro VBA Macro Code Macro You can download the macro from here. Need Customization & Expert Support? Our specialized team at Blue Byte Systems Inc. develops custom macros and add-ins to meet these advanced workflow needs.

Read More »

SolidWorks Macro to Instantly Isolate Selected Components in an Assembly

Description Pre-select one or more components in an assembly and execute the macro. The selected components will become isolated in the assembly. The SolidWorks macro to instantly isolate selected components in an assembly can be placed on the Graphics Area menu (which pops up when you right-click a component) for convenient access. System Requirements Prerequisites Results Steps to Set Up the Macro VBA Macro Code Macro You can download the macro from here. We build custom macros and add-ins that meet your specific workflow needs. Contact us to discuss custom development needs and projects!

Read More »
0
    0
    Your Cart
    Your cart is emptyReturn to Shop
    ×
    0
      0
      Your Cart
      Your cart is emptyReturn to Shop
      ×