摘要:
EntityFramework Code First 是从代码生成数据库,叫做数据迁移。EntityFramework Database First 是从数据库生成代码,叫做脚手架(Scaffold)。本文介绍脚手架入门。 用数据库图形界面(如SQLiteStudio)生成数据库模式,插入数据等,已 阅读全文
摘要:
分类 classification 英文 english 中文 chinese defect approval of defect in material 材料中缺陷的认可 defect arc crater 弧坑 defect penetration 毛边 defect 不整齐的飞边修整 defe 阅读全文
摘要:
分类 classification 英文 english 中文 chinese defect approval of defect in material 材料中缺陷的认可 defect arc crater 弧坑 defect penetration 毛边 defect 不整齐的飞边修整 defe 阅读全文
摘要:
SketchSegment是一个抽象类,需要确定特殊实体: let PrintSketchSegmentInfo (skSeg : SketchSegment) = match enum<swSketchSegments_e>(skSeg.GetType()) with | swSketchSegm 阅读全文
摘要:
用默认模板新建零件,并修改用户偏爱: ```fsharp let newPart (swApp: ISldWorks) = // Get the file path of the default part template let partTemplate = swApp.GetUserPrefer 阅读全文
摘要:
1.6.1节,18页,步骤16的代码: ```fsharp open SolidWorks.Interop.sldworks let main(swApp: ISldWorks) = let swModel = swApp.ActiveDoc |> unbox let boolstatus = sw 阅读全文
摘要:
This macro exports all the information into the output text file in the following format: ```vb Option Explicit Const currentDir As String = "D:\" ' D 阅读全文
摘要:
solidworks首先打开一个零件,然后运行此宏,此宏将焊接清单信息打印到立即窗口: ```vb Option Explicit Dim swApp As SldWorks.SldWorks Sub main() Set swApp = Application.SldWorks Dim swMod 阅读全文
摘要:
这个宏遍历featuremanager,solidworks需要先打开一个有feature树的文件: ```vb Option Explicit Dim swApp As SldWorks.SldWorks Dim swModel As SldWorks.ModelDoc2 Dim swFeatur 阅读全文
摘要:
在solidworks没有打开任何文件的情况下,运行此宏。 此宏会打开指定的文件,修改其材质,保存并关闭文件。 ```vb Option Explicit Sub main() Dim filename As String filename = "e0501-P0504" Dim matname A 阅读全文
摘要:
文摘:https://www.codestack.net/solidworks-api/getting-started/add-ins/csharp/ - Create new project in Microsoft Visual Studio - Select *Class Library(.n 阅读全文
摘要:
在一个solidworks程序中,其中没有打开任何文件,执行下面宏,将会打开一个零件图: ```vb Option Explicit Dim swApp As SldWorks.SldWorks Sub main() Set swApp = Application.SldWorks Dim File 阅读全文