Message 1 of 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, i try to divide the total area of flat sheet to convert mm3 to m3
How i can solve?
Thank you
If ThisApplication.ActiveDocumentType <> DocumentTypeEnum.kPartDocumentObject And _
ThisApplication.ActiveDocument.PropertySets.Item("Design Tracking Properties").Item("Document SubType Name").Value <> "Sheet Metal" Then
MsgBox("This rule only works for Sheet Metal Part documents. Exiting.", vbOKOnly, " ")
Exit Sub
End If
Dim oDTProps As PropertySet = ThisApplication.ActiveDocument.PropertySets.Item("Design Tracking Properties")
Dim oSMW As String = oDTProps.Item("Sheet Metal Width").Value
Dim oSML As String = oDTProps.Item("Sheet Metal Length").Value
oSMA = oDTProps.Item("Sheet Metal Area").Value / 1000
Dim Mass As String
'If iProperties.Material = "801171 AISI 304 sp.1 2B"
' Mass = (oSMA
MsgBox("Sheet Metal Width = " & oSMW & vbCrLf & _
"Sheet Metal Length = " & oSML & vbCrLf & _
"Sheet Metal Area = " & oSMA, vbOKOnly, "SHEET METAL SIZE")
Danilo "DannyGi" G.
Mechanical design engineer and product developer
Mechanical design engineer and product developer
Solved! Go to Solution.