SolidWorks 2025 → 2024

変更日時: 10月 03,2025  
評価
ダウンロード: 5  
コメント

仕様

ダウンロード:5
説明:🔧 Macro Name: Batch Save As Previous Version (Ask per File) ✅ Purpose This macro is designed for batch converting SolidWorks files to a previous version, such as SolidWorks 2025 → 2024. It processes all .SLDPRT, .SLDASM, and .SLDDRW files in a selected folder (and its subfolders), asking the user before converting each one. This is useful when you need to: Share files with users on an earlier version of SolidWorks. Archive backwards-compatible versions of files. Downgrade project files for compatibility. 🛠️ Core Features ✅ Recursively scans folders and subfolders for SolidWorks files. ✅ Prompts user for each file:Convert / Skip / Cancel. ✅ Converts files to previous SolidWorks versions using the Advanced Save As options. ✅ Adds a configurable prefix/suffix to the converted filenames. ✅ Maintains references and structure via Advanced Save As options. ✅ Converts silently (without opening dialogs) and logs success/failure in the Immediate Window (Debug.Print). 📁 How It Works (Step-by-Step) 1. Initialize and Ask for Folder When run, it prompts the user to select a root folder containing the SolidWorks files. If no folder is selected, the macro exits. 2. Process Each Folder/File The macro recursively scans the selected folder and all subfolders. For each file with the .sldprt, .sldasm, or .slddrw extension: It prompts the user: ✅Yes → Convert the file. ❌ No → Skip the file. 🚫 Cancel → Stop the whole process. 3. Convert the File If the user chooses to convert: Opens the document silently via OpenDoc6. Prepares AdvancedSaveAsOptions: Sets SaveAsPreviousVersion to target the previous SW version. Sets SaveAllAsCopy = True to avoid overwriting originals. Applies a suffix (default: _2024) to the new filename. Saves the file using SaveAs3. Closes the document after saving. 4. Finish/Stop Continues until: All files are processed, or The user cancels the batch via the Cancel prompt. ⚙️ Configuration Options At the top of
    前提条件: SolidWorks must be open and running when executing this macro
  後条件: This macro is designed for batch converting SolidWorks files to a previous version, such as SolidWorks 2025 → 2024. It processes all .SLDPRT, .SLDASM, and .SLDDRW files in a selected folder (and its subfolders), asking the user before converting each one.
SOLIDWORKS バージョン: Any
プログラミング言語: SW_VBA

 


マクロにウイルスや他のセキュリティ リスクが含まれている可能性があります。SOLIDWORKS Corporation は、このサイトに投稿されたマクロが安全であるかどうかと、信頼できる提供元から提供されたかどうかを確認していません。

SOLIDWORKS マクロをダウンロードする。

 

(ログインが必要)  

提供者
このユーザーの他の提供

 

 

 

マクロ
Jega Thana

ユーザー登録日: 2005/12/05
タイトル: Designer
 
スキル:
注目:
 
  不適切なユーザーをレポート
不適切なコメントを報告