Skip to content

VBA SolidWork สำหรับ add cuttom probperty

Notifications You must be signed in to change notification settings

Jacop1989/PartInfoREV2

Repository files navigation

PartInfoREV2

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"

การนำไปใช้งาน

  1. ไฟล์ต้องอยู่ใน Foder "C:\Macro"
  2. เพิ่ม Macro ลงใน SolidWork
  3. คลิกขวาที่ ribbon เลือก Customize...
  4. เลือก New Tab --> Empty Tab ตั้งชื่อเป็น Macro
  5. ที่หน้าต่าง Customize เลือก commands --> Macro --> New Macro Button --> C:\Macro\PartInfoREV2.swp

Untitled1

Untitled2

Untitled3

Untitled4

วิธีใช้

  1. ถ้าเป็นไฟล์ Part เราจะ save ไฟล์ให้เรียบร้อยก่อน ลองดูที่ Untitled5

File Properties

Untitled6 ตอนนี้ว่างเปล่าไม่มีอะไร 2. ไปที่ Tab Macro ที่เราสร้าง PartInfoREV2 --> Add Custom Untitled7

  1. ไป check ที่ File Properties อีกครั้ง

    Untitled8

  2. Custom Properties ถูกเพิ่มเข้าไปแล้ว

  3. ลองกรอกข้อมูล

Untitled10

  1. กรอกเสร็จ กด Save ตัวที่ common ที่เราใช้กับ Part อื่นจะถูกบันทึกลง text file "C:\Macro\save.txt" ถ้าเรามี part ใหม่ให้กด import ตัวที่ common ก็จะเพิ่มให้เรา Untitled11

    Untitled12

About

VBA SolidWork สำหรับ add cuttom probperty

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published