วันอาทิตย์ที่ 11 พฤศจิกายน พ.ศ. 2561
วันอาทิตย์ที่ 4 พฤศจิกายน พ.ศ. 2561
Walk around กับ Microsoft ML หรือ Ai ของ Microsoft
มีความจำเป็น ดูแล้วถ้าไม่ทำอะไร AI (Artificial Intelligent) คงจะกินงานที่หากินมาหลายปีหมดใน เวลาเร็วๆนี้แน่นอน เลยต้องลงมือทดลอง หลายอย่าง
Microsoft ออก AI มาทีหลังคนอื่นมาก เช่น http://scikit-learn.org/stable/ อันนี้ ใช้กันทั่วไปในงานวิจัย และมีตัวอย่างมาก สำหรับ Microsoft มีข้อดีคือ สำเร็จรูป และเป็น Dotnet Interface
https://www.microsoft.com/net/apps/machinelearning-ai/ml-dotnet
เป็น AI ที่ทำมาให้ ทำงานใน Cross Platform ได้ ทั้ง Linux และ OSX
โดยการติดตั้ง ทำได้ อย่างง่าย และเป็น console
การติดตั้ง จะต้อง ติดตั้ง Dotnet SDK ก่อน
และ ติดตั้ง ML.net sdk อีกที
ตัวอย่างที่มีให้ใน Web site จะเป็นตัวอย่างการแยก ชนิดดอกไม้
สำหรับการติดตั้งใน Visual studio ให้ง่ายสุด ก็ใช้ Visual Studio 2017
และให้ สร้างตัวอย่าง เป็น console Application
เมื่อได้ แล้วไปที่ Nuget Package manager ให้เลือก ML.net
Microsoft ออก AI มาทีหลังคนอื่นมาก เช่น http://scikit-learn.org/stable/ อันนี้ ใช้กันทั่วไปในงานวิจัย และมีตัวอย่างมาก สำหรับ Microsoft มีข้อดีคือ สำเร็จรูป และเป็น Dotnet Interface
https://www.microsoft.com/net/apps/machinelearning-ai/ml-dotnet
เป็น AI ที่ทำมาให้ ทำงานใน Cross Platform ได้ ทั้ง Linux และ OSX
โดยการติดตั้ง ทำได้ อย่างง่าย และเป็น console
การติดตั้ง จะต้อง ติดตั้ง Dotnet SDK ก่อน
และ ติดตั้ง ML.net sdk อีกที
ตัวอย่างที่มีให้ใน Web site จะเป็นตัวอย่างการแยก ชนิดดอกไม้
สำหรับการติดตั้งใน Visual studio ให้ง่ายสุด ก็ใช้ Visual Studio 2017
และให้ สร้างตัวอย่าง เป็น console Application
เมื่อได้ แล้วไปที่ Nuget Package manager ให้เลือก ML.net
แล้วสร้าง Data file iris-data.txt ตามตัวอย่าง
ตัด code และ ทำการ ทดสอบ run
ก็จะเป็นการทดลอง machine Learning ตัวแรก ใน Dotnet
วันจันทร์ที่ 10 กันยายน พ.ศ. 2561
Revit สร้าง Wall Tag โดยใส่ที่กลางกำแพง อัตโนมัติ
เป็นปัญหาในการใส่ Wall Tag ต้องแก้ที่ Edit Type
โปรแกรม จะถาม และ ใส่ให้เอง โดยอัตโนมัติ ที่กลางกำแพงจากค่า mytag
private static IndependentTag CreateMyTag(Autodesk.Revit.DB.Document document, Wall wall,String mytag)
{
// check 2D
Autodesk.Revit.DB.View view = document.ActiveView;
TagMode tagMode = TagMode.TM_ADDBY_CATEGORY;
TagOrientation tagorn = TagOrientation.Horizontal;
// Find Mid wall
LocationCurve wallLoc = wall.Location as LocationCurve;
XYZ wallStart = wallLoc.Curve.GetEndPoint(0);
XYZ wallEnd = wallLoc.Curve.GetEndPoint(1);
XYZ wallMid = wallStart + (wallEnd - wallStart) / 2.0;
IndependentTag newTag = document.Create.NewTag(view, wall, true, tagMode, tagorn, wallMid);
if (null == newTag)
{
throw new Exception("Create Wall Tag Failed.");
}
//find some param
WallType type = wall.WallType;
Parameter foundParameter = type.LookupParameter("Type Mark");
bool result = foundParameter.Set(mytag);
newTag.HasLeader = false;
newTag.TagHeadPosition = wallMid;
return newTag;
}
โปรแกรม จะถาม และ ใส่ให้เอง โดยอัตโนมัติ ที่กลางกำแพงจากค่า mytag
private static IndependentTag CreateMyTag(Autodesk.Revit.DB.Document document, Wall wall,String mytag)
{
// check 2D
Autodesk.Revit.DB.View view = document.ActiveView;
TagMode tagMode = TagMode.TM_ADDBY_CATEGORY;
TagOrientation tagorn = TagOrientation.Horizontal;
// Find Mid wall
LocationCurve wallLoc = wall.Location as LocationCurve;
XYZ wallStart = wallLoc.Curve.GetEndPoint(0);
XYZ wallEnd = wallLoc.Curve.GetEndPoint(1);
XYZ wallMid = wallStart + (wallEnd - wallStart) / 2.0;
IndependentTag newTag = document.Create.NewTag(view, wall, true, tagMode, tagorn, wallMid);
if (null == newTag)
{
throw new Exception("Create Wall Tag Failed.");
}
//find some param
WallType type = wall.WallType;
Parameter foundParameter = type.LookupParameter("Type Mark");
bool result = foundParameter.Set(mytag);
newTag.HasLeader = false;
newTag.TagHeadPosition = wallMid;
return newTag;
}
วันอังคารที่ 14 สิงหาคม พ.ศ. 2561
คำสั่ง ย่อ Shot cut ของ Revit ที่น่าสนใจ
ลดเวลาในการกดปุ่มบนหน้าจอ Revit
Di = Dimension
Gr = สร้าง Grid
LL = สร้าง ระดับ
ZA = ซูม All
ZE = ซูม พอดี
ZZ = ซูม Region
PP = เปิด Property
Di = Dimension
Gr = สร้าง Grid
LL = สร้าง ระดับ
ZA = ซูม All
ZE = ซูม พอดี
ZZ = ซูม Region
PP = เปิด Property
วันจันทร์ที่ 9 กรกฎาคม พ.ศ. 2561
การใช้ Add-on ARX บน Autocad LT
ปรกติ ใน Autocad LT จะไม่มี โปรแกรมเสริม แต่ มี Third Party ที่ทำให้ โปรแกรม ที่ Compile ด้วย C++ เป็น <ชื่อ>.arx แต่มี โปรแกรม Shareware ของ บริษัท Manusoft สามารถ Load โปรแกรม ARX เข้ามาใช้งานใน Autocad LT ได้
reference: http://www.cadforum.cz/cadforum_en/qaID.asp?tip=1682
โดย ไป download โปรแกรม จาก www.manusoft.com เช่น Periscope เมื่อติดตั้ง โปรแกรม จะปรกกฏใน ด้านล่างขวามือของ Autocad เป็น Icon
ถ้าทดสอบว่าโปรแกรม load หรือ ยัง ให้พิมพ์คำสั่ง netload จะขึ้น หน้าคำสั่ง ให้ Load dotnet application แต่จะใช้ไม่ได้ เพราะขาด Security code ของ Dotnet
สำหรับ ARX เป็น C++ จะ load ได้ แต่ต้อง Load ผ่าน Registry
ไปแก้ที่ regedit.exe
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD LT
เข้าไปที่ Version ที่ติดตั้งอยู่
เช่น Autocad lt 2018 จะเป็น R24
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD LT\R24\ACADLT-1001:409\3DGS Configuration\Periscope
ใน นั้น จะมี Key ชื่อ ModulePath ให้แก้ ไปที่ ไฟล์ Arx ที่ มี เช่น
ติดตั้งใน c:\program files\pcivil\app.arx
ก็ให้ใส่ แบบนี้ ลงไป
เมื่อ เปิด Autocad ก็จะไป Load โปรแกรม ARX อัตโนมัติ
จะใช้ได้ เฉพาะ ARX C++ เท่านั้น สำหรับ Dotnet ที่พัฒนาด้วย C# หรือ VB.net จะทำไม่ได้
reference: http://www.cadforum.cz/cadforum_en/qaID.asp?tip=1682
โดย ไป download โปรแกรม จาก www.manusoft.com เช่น Periscope เมื่อติดตั้ง โปรแกรม จะปรกกฏใน ด้านล่างขวามือของ Autocad เป็น Icon
ถ้าทดสอบว่าโปรแกรม load หรือ ยัง ให้พิมพ์คำสั่ง netload จะขึ้น หน้าคำสั่ง ให้ Load dotnet application แต่จะใช้ไม่ได้ เพราะขาด Security code ของ Dotnet
สำหรับ ARX เป็น C++ จะ load ได้ แต่ต้อง Load ผ่าน Registry
ไปแก้ที่ regedit.exe
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD LT
เข้าไปที่ Version ที่ติดตั้งอยู่
เช่น Autocad lt 2018 จะเป็น R24
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD LT\R24\ACADLT-1001:409\3DGS Configuration\Periscope
ใน นั้น จะมี Key ชื่อ ModulePath ให้แก้ ไปที่ ไฟล์ Arx ที่ มี เช่น
ติดตั้งใน c:\program files\pcivil\app.arx
ก็ให้ใส่ แบบนี้ ลงไป
เมื่อ เปิด Autocad ก็จะไป Load โปรแกรม ARX อัตโนมัติ
จะใช้ได้ เฉพาะ ARX C++ เท่านั้น สำหรับ Dotnet ที่พัฒนาด้วย C# หรือ VB.net จะทำไม่ได้
วันพุธที่ 6 มิถุนายน พ.ศ. 2561
กลุ่มของ Autocad ที่ ใช้ร่วม file Version เดียวกัน ได้
Autocad จะมีการปรับ File Version เป็นระยะ จัดกลุ่มได้ตามนี้
สำหรับโปรแกรมที่จะทำงานร่วมกันได้
Release Release Number Supported
AutoCAD 2019 23.0 AutoCAD 2019
AutoCAD 2018 22.0 AutoCAD 2018
AutoCAD 2017 21.0 AutoCAD 2017
AutoCAD 2016 20.1 AutoCAD 2015, AutoCAD 2016
AutoCAD 2014 19.1 AutoCAD 2013, AutoCAD 2014
AutoCAD 2012 18.2 AutoCAD 2010, AutoCAD 2011, AutoCAD 2012
AutoCAD 2009 17.2 AutoCAD 2007, AutoCAD 2008, AutoCAD 2009
AutoCAD 2006 16.2 AutoCAD 2004, AutoCAD 2005, AutoCAD 2006
AutoCAD 2002 15.2 AutoCAD 2000, AutoCAD 2000i, AutoCAD 2002
แต่ตั้งแต่ Autocad 2017 เป็นต้นมา Autocad โปรแกรมที่ทำงานร่วมกันเช่น ARX จะเปลี่ยนตามปี
สำหรับ File DWG สรุปตามนี้
สำหรับโปรแกรมที่จะทำงานร่วมกันได้
Release Release Number Supported
AutoCAD 2019 23.0 AutoCAD 2019
AutoCAD 2018 22.0 AutoCAD 2018
AutoCAD 2017 21.0 AutoCAD 2017
AutoCAD 2016 20.1 AutoCAD 2015, AutoCAD 2016
AutoCAD 2014 19.1 AutoCAD 2013, AutoCAD 2014
AutoCAD 2012 18.2 AutoCAD 2010, AutoCAD 2011, AutoCAD 2012
AutoCAD 2009 17.2 AutoCAD 2007, AutoCAD 2008, AutoCAD 2009
AutoCAD 2006 16.2 AutoCAD 2004, AutoCAD 2005, AutoCAD 2006
AutoCAD 2002 15.2 AutoCAD 2000, AutoCAD 2000i, AutoCAD 2002
แต่ตั้งแต่ Autocad 2017 เป็นต้นมา Autocad โปรแกรมที่ทำงานร่วมกันเช่น ARX จะเปลี่ยนตามปี
สำหรับ File DWG สรุปตามนี้
| File Format | AutoCAD Release |
|---|---|
| AutoCAD 2018 | AutoCAD 2018 - AutoCAD 2019 |
| AutoCAD 2013 | AutoCAD 2013 - AutoCAD 2017 |
| AutoCAD 2010 | AutoCAD 2010 - AutoCAD 2012 |
| AutoCAD 2007 | AutoCAD 2007 - AutoCAD 2009 |
| AutoCAD 2004 | AutoCAD 2004 - AutoCAD 2006 |
| AutoCAD 2000 | AutoCAD 2000 - AutoCAD 2002 |
| AutoCAD R14 | AutoCAD R14 |
| AutoCAD R12 DXF | AutoCAD R12 |
วันพฤหัสบดีที่ 24 พฤษภาคม พ.ศ. 2561
ปัญหา เปิดโปรแกรม Autocad 2019 แล้ว Error
ในการลงโปรแกรม Autocad 2019 บางเครื่องอาจจะเกิดปัญหา เมื่อเปิด แล้วเกิด Error แต่แสดง จอและ เมนูแล้ว อาจจะเกิดจาก Graphic Driver ที่ไม่ Compatible กับ Graphic API ของ Autocad วิธีแก้ไข ให้ปิด HardwareEnabled ใน Registry ของ Autocad เปลี่ยนเป็น 0 ก็จะแสดง จอได้
สมัครสมาชิก:
บทความ (Atom)

