VBA SolidWork สำหรับ add custom probperty
สำหรับไฟล์ที่จำเป็น
UserForm1 "C:\Macro\material.txt" "C:\Macro\surfacetreatment.txt" "C:\Macro\hardness.txt" "C:\Macro\prepared.txt" "C:\Macro\checked.txt" "C:\Macro\approved.txt" "C:\Macro\brand.txt" "C:\Macro\save.txt"
UserForm2 "C:\Macro\buffer.txt"
Folder "C:\Macro"
- ไฟล์ต้องอยู่ใน Foder "C:\Macro"
- เพิ่ม Macro ลงใน SolidWork
- คลิกขวาที่ ribbon เลือก Customize...
- เลือก New Tab --> Empty Tab ตั้งชื่อเป็น Macro
- ที่หน้าต่าง Customize เลือก commands --> Macro --> New Macro Button --> C:\Macro\PartInfoREV2.swp
ตอนนี้ว่างเปล่าไม่มีอะไร 2. ไปที่ Tab Macro ที่เราสร้าง PartInfoREV2 --> Add Custom