Scripts ျဖင့္ AutoCAD မွာ slide show ျပဳလုပ္ပံုအဆင့္ဆင့္ကို လက္ရွိ post မွာတင္ျပသြားပါမယ္။ ဒီ က႑ကို အပိုင္း(၃)ခုအေန နဲ႔ တင္ျပသြားပါမယ္။
(၁) AutoCAD slide (*.sld) ဖိုင္မ်ား ျပဳလုပ္ျခင္း၊
(၂) slide show အတြက္ script ေရးျခင္း ႏွင့္
(၃)script ဖိုင္ကို run ျပီး slide show ျပဳလုပ္ျခင္း အေနနဲ႔ တင္ျပ သြားပါ မယ္။

 Slide show ျပဳလုပ္ဖို႔အတြက္ ပထမဆံုး AutoCAD slide ဖိုင္ေတြ ျပဳလုပ္ရပါမယ္၊ အဲဒီအတြက္ (command: mslide) ျဖစ္ပါတယ္။ ပထမဆံုး AutoCAD screen မွာ မိမိလုိခ်င္တဲ့ objects ေတြနဲ႔ view အေနအ ထားရေအာင္ zoom & pan ျဖင့္ အရင္ခ်ိန္ပါ။ ေနာက္ command: mslide ကို ရိုက္ပါ။ Slide file ကို save ဖို႔ အတြက္ dialog box ေပၚလာပါမယ္။
Note: တစ္ခါတစ္ရံမွာ dialog box ေပၚမေပၚက “filedia” system variable အေပၚ မူတည္ပါတယ္။ “filedia” “1” ျဖစ္မွ dialog box ေပၚပါမယ္။ Default အားျဖင့္ ေတာ့ “filedia” ကအျမဲ “1” ပါ။ ၄င္း dialog box မွာ slide file ကုိ မိမိ လုိခ်င္တဲ့ ဖိုင္နာမည္ နဲ႔ save ႏုိင္ပါတယ္။ File extension က “*.sld” ျဖစ္ပါမယ္။
ဤနည္းအတုိင္း မိမိ ဆြဲထားတဲ့ AutoCAD objects ေတြကို မိမိ စိတ္ၾကိဳက္ slide file ေတြျပဳ လုပ္ႏုိင္ပါတယ္။ ျပဳလုပ္ျပီးတဲ့ slide ဖိုင္ ကိုျပန္ၾကည့္ဖို႔အတြက္ (command: vslide)ျဖစ္ပါတယ္၊ command ေပး လိုက္တဲ့အခါမွာ show လုပ္ခ်င္တဲ့ slide file ကို ေရြးဖို႔အတြက္ dialog box ေပၚလာပါမယ္။
အဲဒီမွာ မိမိၾကည့္ ခ်င္တဲ့ slide ဖိုင္ကို ေရြးျပီး open လုပ္ရံုနဲ႔ အဲဒီ slide ဖိုင္ေတြကို ျပန္ၾကည့္လို႔ရပါမယ္။ ျပေနတဲ့ slide show ဟာ user က regenerate မလုပ္မခ်င္း ဒါမွမဟုတ္ zoom မလုပ္မခ်င္း AutoCAD graphic screen အေပၚမွာ ရွိေနပါမယ္။ Slide show မွာ objects ေတြကို edit လုပ္လို႔ မရပါဘူး၊ ျပန္ၾကည့္ရံုသက္သက္ ပဲ ရပါမယ္။ ဥပမာ - new file တစ္ခုဖြင့္ ပါ၊ line တစ္ေၾကာင္းဆြဲပါ၊ ေနာက္ zoom – extent လုပ္ပါ၊ “mslide” ကို command line ကေန ရိုက္ပါ၊ dialog box ေပၚလာရင္ file name ေပးျပီး slide file ကို save ပါ။ ေနာက္ circle, rectangle စသည္တို႔ကို ဆြဲျပီး အထက္ပါ နည္းအတုိင္း “mslide” command ျဖင့္ slide file ေတြ ျပဳလုပ္ျပီး save လုပ္ထားပါ။

အဲဒီ slide ေတြကို ျပန္ၾကည့္ဖို႔ အတြက္ “vslide” command ျဖင့္ ျပန္ၾကည့္ပါ။ ဒီအဆင့္မွာ ေဖာ္ျပထားတာ ေတြဟာ slide တစ္ခုခ်င္းကို တစ္ၾကိမ္မွာ slide တစ္ခုကို ၾကည့္တဲ့ ပံုစံမ်ိဳးနဲ႔ ျဖစ္ပါတယ္။
ဒီအဆင့္မွာေတာ့ ျပဳလုပ္ျပီးသား slide filde ေတြကို တစ္ခုခ်င္းမဟုတ္ဘဲ ဆက္တိုက္ တစ္ခုျပီး တစ္ခု ၾကည့္ပံုကို တဆင့္ခ်င္း တင္ျပသြားပါမယ္။ အဲဒီလို ဆက္တိုက္ ၾကည္ကဖို႔အတြက္ AutoCAD script file ကိုေရးဖို႔လိုပါမယ္။
လက္ရွိ post ႏွင့္အတူ နမူနာ script file တစ္ခု နဲ႔ slide file တစ္ခ်ိဳ ႔ကို upload တင္ေပးထားပါတယ္။ ၄င္း script ဖိုင္ထဲမွာ ၾကည့္မယ္ဆုိရင္ ပထမဆံုးအေၾကာင္းမွာ “filedia 0” က AutoCAD ရဲ႔ dialog box request ကို ခဏ supress (ထိန္ခ်န္) ထားဖို႔အတြက္ ျဖစ္ပါတယ္။ သာမာန္အားျဖင့္ေတာ့ script file ဟာ dialog box request ကို auto supress လုပ္ျပီးသားပါ။ ဒါေပမယ့္ စာဖတ္သူေတြ အေနနဲ႔ အေျခခံကို သိေစခ်င္တဲ့သေဘာနဲ႔ ထည့္ေရး ထားတာျဖစ္ပါတယ္။
ဒုတိယ script line မွာ “vslide Design_Plan” လို႔ေရးထားတာက “vslide” က command ျဖစ္ပါတယ္၊ “Design_Plan” က ျမင္ခ်င္တဲ့ slide file name ျဖစ္ပါတယ္။ ဒီမွာ slide file name ကို (“”) ႏွစ္ခုၾကားမွာ မေရးဘဲ အလြတ္ေရးထားတာ ကိုသတိျပဳပါ၊ အကယ္ေရြ ႔ user ျမင္ခ်င္တဲ့ slide file name က underscore “_” မပါဘဲ (Design Plan) ျဖစ္တယ္ဆိုပါဆို႔၊ အဲဒီအခါ မွာ user က script ကို ေရးတဲ့အခါ slide file name ကို (“”) ႏွစ္ခုၾကားမွာ ထည့္ေရးရပါမယ္။ ဥပမာ - (vslide “Design Plan”)။
ေနာက္ တတိယ line မွာ “delay 700” ဆိုတာက slide တစ္ခုႏွင့္တစ္ခု ၾကာေစခ်င္တဲ့အခ်ိန္ (သို႔) ျပေစခ်င္တဲ့ အခ်ိန္ျဖစ္ပါတယ္၊ 700 ဆိုတာက 700 millisecond ျဖစ္ပါတယ္။ (1000 millisecond = 1 second)။ ဒီလိုနဲ႔ ျပခ်င္တဲ့ slide file ေတြကို အထက္ပါ နည္းအတိုင္း ျပသြားရင္းနဲ႔ ေနာက္ဆံုးမွာ “rscript” ဆိုတာကိုေတြ႔ပါလိမ့္မယ္။ “rscript” က လက္ရွိ run ေနတဲ့ script file ကို user က “Esc” keyboard မွာ escape မႏွိပ္မခ်င္း reapeat လုပ္ျပီး အျပန္ျပန္ အလွန္လွန္ run ေနမွာ ျဖစ္ပါတယ္။ အဲဒီ “rscript” ရဲ ႔ေအာက္မွာ (ENTER) တစ္ခ်က္ ရွိေနေသးတယ္ဆုိတာကို သတိျပဳပါ၊ အဲဒါကေတာ့ script file ရဲ ႔ syntax သက္သက္ျဖစ္ပါတယ္။


အခုအဆင့္မွာေတာ့ slide file ေတြလည္းလုပ္ျပီးျပီ၊ script file ကိုလည္း ေရးျပီးျပီ ျဖစ္တဲ့အတြက္ ၄င္း script file မွာေန လုပ္ျပီးသား slide file ေတြကို show လုပ္ဖို႔ပဲျဖစ္ပါတယ္။ Script file ကို run ရန္အတြက္
COMMAND: script
MENU: Tools – Run script    ျဖစ္ပါမယ္။ ေနာက္ dialog box ေပၚလာရင္ ေရးထားတဲ့ script file ကို ေရြးျပီး open လုပ္ပါ။ လက္ရွိ တင္ျပထားတဲ့ ဥပမာ ဖိုင္အရဆိုရင္ user က “Esc” မႏွိပ္မခ်င္း repeat လုပ္ျပီး run ေနမွာျဖစ္ပါတယ္။ Slide ဖိုင္ေတြဟာ AutoCAD Search directory အတြင္းမွာ ရွိရမယ္ဆိုတာကို သတိျပဳပါ။

အထက္ပါ post ႏွင့္ပတ္သက္ျပီး ဥပမာ slide files မ်ားႏွင့္ script file DOWNLOAD အတြက္

2_Slide_Show.rar

လက္ရွိ post နဲ႔ပတ္သက္ျပီး ေဆြးေႏြးရန္အတြက္_

phoesan2006@gmail.com

AutoCAD စာအုပ္မ်ား၊ Ready Made AutoCAD Blocks မ်ား၊ Ready Made Hatch Pattern (.pat) မ်ား၊ ႏွင့္ AutoLisp ဖိုင္မ်ား ကို DOWNLOAD ခ်ရန္အတြက္_
Uploadlink: www.mediafire.com
username: phoesan2006@gmail.com
password: schoolboy
Mediafire မွာ အထက္ပါ user name ႏွင့္ password အတိုင္း log in လုပ္ျပီး “My Files” ထဲမွာ ၀င္ၾကည့္ပါ။
Posts Coming Soon:
- Slide Libaray ျပဳလုပ္ျခင္း၊

Print ပရင့္ထုတ္ရန္
 
This Post has No Comment Add your own!

Post a Comment