原创 C#元組

C#元組 using System; namespace 元組 { /// <summary> /// The .Net Framework directly supports tuples with one t

原创 WPF之碰撞檢測--HitTesting

WPF之碰撞檢測–HitTesting 效果如下: 界面代碼如下: <Window x:Class="Hit_Testing.MainWindow" xmlns="http://schemas.microsoft

原创 WPF學習筆記之路徑繪圖

WPF學習筆記之路徑繪圖 效果如下: 界面代碼如下: <Window x:Class="Graphic_00.MainWindow" xmlns="http://schemas.microsoft.com/win

原创 WPF路徑繪圖之CombinedGeometry

WPF路徑繪圖之CombinedGeometry 效果如下: XMAL代碼如下: <Window x:Class="Graphic_00.MainWindow" xmlns="http://schemas.mic

原创 Revit後期添加按鈕和麪板

Revit後期添加按鈕和麪板 今天在唐曾老師的博客上看到了這個項目以後覺得很稀奇,就自己也跟着實現了一下。我看了唐曾老師的展示視頻,就自己寫了功能。我看到老師留下了github地址,應該是有分享源碼吧,我這個是大概的實現了整個的思

原创 WPF自定義座標系並且繪製

WPF自定義座標系並且繪製 界面代碼如下: <Window x:Class="Line.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml

原创 WPF佈局示例

WPF佈局示例 <Window x:Class="佈局.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

原创 python用openpyxl模塊操作Excel學習筆記

python用openpyxl模塊操作Excel學習筆記 1.安裝openpyxl模塊 pip install openpyxl 2.測試是否安裝成功 下面是win10的測試過程: 按住Win鍵,再按R鍵輸入cmd打開控制檯,

原创 Dynamo中用pythonscript之循環

Dynamo中用pythonscript之循環 使用python的循環語句創建十個正方體 效果如下:

原创 WPF繪圖通過矩陣運算實現移動

WPF繪圖通過矩陣運算實現移動 前臺代碼: <Window x:Class="Chapter3.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006

原创 Revit二次開發之間隙打斷

Revit二次開發之間隙打斷 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T

原创 Dynamo中使用PythonScript00

導入所需要的庫 #啓用python支持加載DesignScript庫 import clr.AddReference("ProtoGeometry") from Autodesk.DesignScript.Geometry imp

原创 WPF之數據綁定

WPF之數據綁定 界面是很簡單的兩個Label和兩個TextBox組成,用來顯示一個Student類的兩個屬性。 界面如下: <Window x:Class="數據模板.MainWindow" xmlns="htt

原创 WPF矩陣計算示例

WPF矩陣計算示例 界面代碼如下: <Window x:Class="Chapter3.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml

原创 WPF使用Live Chart之動態更新數據

WPF使用Live Chart之動態更新數據 效果如下: 前臺代碼: <Window x:Class="Chapter3.MainWindow" xmlns="http://schemas.microsoft.c