91精品国产高清一区二区三区蜜臀,台湾佬中文网久草,日韩欧美真人黄色录像,日本韩国成人调教资源在线观看

SOLIDWORKS焊件切割清單怎么生成

相信很多SOLIDWORKS設(shè)計(jì)師都會(huì)遇到這樣一個(gè)問(wèn)題,就是SolidWorks工程圖出圖的時(shí)候,我們的SolidWorks焊件切割清單的總重,是沒(méi)法設(shè)置調(diào)用的,不能通過(guò)單重x數(shù)量實(shí)現(xiàn),但是我們的SOLIDWORKS裝配體的材料明細(xì)表可以。那么如何實(shí)現(xiàn)SolidWorks焊件切割清單的總重呢?今天給大家整理分享一份網(wǎng)絡(luò)比較認(rèn)可的方法,大家可以親自實(shí)踐。


SolidWorks焊件切割清單1.jpeg


SolidWorks焊件切割清單總重設(shè)置方法

SolidWorks焊件切割清單生成單重和總重的原理呢就是利用“宏”命令來(lái)實(shí)現(xiàn),下面就給大家分享這個(gè)宏以及使用方法。


宏代碼:

Option Explicit
Dim swApp As SldWorks.SldWorks
Dim Part As SldWorks.ModelDoc2
Dim thisFeat As SldWorks.Feature
Dim thisSubFeat As SldWorks.Feature
Dim cutFolder As Object
Dim BodyCount As Integer
Dim fn As String
Dim pn As String
Dim custPropMgr As SldWorks.CustomPropertyManager
Dim propNames As Variant
Dim vName As Variant
Dim propName As String
Dim Value As String
Dim resolvedValue As String
Dim TotalW As Double
Sub main()
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
Set thisFeat = Part.FirstFeature
Do While Not thisFeat Is Nothing
   If thisFeat.GetTypeName = "SolidBodyFolder" Then
       thisFeat.GetSpecificFeature2.UpdateCutList
   End If
   Set thisSubFeat = thisFeat.GetFirstSubFeature
   Do While Not thisSubFeat Is Nothing
       If thisSubFeat.GetTypeName = "CutListFolder" Then
           Set cutFolder = thisSubFeat.GetSpecificFeature2
       End If
       If Not cutFolder Is Nothing Then
           BodyCount = cutFolder.GetBodyCount
           If BodyCount > 0 Then
               Set custPropMgr = thisSubFeat.CustomPropertyManager
               If Not custPropMgr Is Nothing Then
                   custPropMgr.Delete "Total Weight"
                   custPropMgr.Delete "Weight"
                   fn = thisSubFeat.Name
                   pn = Part.GetTitle
                   custPropMgr.Add "Weight", "文字", Chr(34) & "SW-Mass@@@" & fn & "@" & pn & Chr(34)
                   propNames = custPropMgr.GetNames
                   If Not IsEmpty(propNames) Then
                       For Each vName In propNames
                           propName = vName
                           custPropMgr.Get2 propName, Value, resolvedValue
                           If propName = "
Weight" Then TotalW = resolvedValue
                       Next vName
                   End If
                   custPropMgr.Add "Total Weight", "文字", Format(BodyCount * TotalW, "0.00")
               End If
           End If
       End If
       Set thisSubFeat = thisSubFeat.GetNextSubFeature
   Loop
   Set thisFeat = thisFeat.GetNextFeature
Loop
End Sub


1、打開(kāi)SolidWorks焊件三維圖,編輯切割清單,默認(rèn)是這種情況,會(huì)生成“材料”和“數(shù)量”2個(gè)屬性

2、點(diǎn)擊工具-宏-新建

3、將上面的宏代碼復(fù)制進(jìn)來(lái),運(yùn)行宏后添加單重和總重屬性

4、然后我們會(huì)發(fā)現(xiàn),之前的切割清單多了兩項(xiàng)單重和總重

5、下面在SolidWorks工程圖切割清單里面調(diào)用單重和總重

注:英文標(biāo)題,在切割清單上雙擊可以修改為單重和總重漢字。

以上就是SolidWorks切割清單總重利用宏命令的方法實(shí)現(xiàn)總重的調(diào)用,趕緊試一下吧!




免責(zé)聲明:

本文系網(wǎng)絡(luò)轉(zhuǎn)載,版權(quán)歸原作者所有。如涉及版權(quán)問(wèn)題,請(qǐng)與微辰三維聯(lián)系,我們將及時(shí)協(xié)商版權(quán)問(wèn)題或刪除內(nèi)容。




相關(guān)資訊


如何卸載SOLIDWORKS軟件?

SOLIDWORKS工程圖模板制作

SOLIDWORKS焊件使用教程

SOLIDWORKS有限元分析怎么做?

姬芭查比利视频| 看四川美女日逼视频| 久久入逼逼视频| 亚洲欧美日韩国产17c| 日本一本女人女免费一二区A区 | 手机中文字幕在线一区二区三区| 久操免费视频| 九九玖玖99热| 国产一二三四区乱码22在线看| 3A凹大香蕉伊人一区二区三区| 尤物大香蕉超碰成人| www大骚逼视频| 青青草逼视频| 香蕉高级导航| 大香蕉高清电影院| 辽阳熟女的逼| 国产精品色哟哟一| 激情婷婷五月天综合网| 成人精品福利专区| 大鸡巴操逼51视频| 大胖美女日逼| 中老年性生活自拍视频| 午夜一区不卡| 日本小美女小穴被操视频| 中文字幕视频1区| 亚洲日韩性生活| 91熟女刺激专区| 手机看逼| 福利吧在线欧美一区| 肏逼视频肏入| 涞源县| 超碰在线色五月| 按摩媚药中出一区二区| 观塘区| 午夜香蕉日韩| 美女全身无遮挡网站在线免费看| 色五月熟女| 妻av不卡| 青娱乐在线视频精品二区| 盐津县| 日韩小黄片久久久|