hello forum friends, anyone know a rule to check if this dialog box sheet metal defaults "Use Thickness from Rule" is checked, and checked a rule to automatically clear since using a rule amending the plate thickness but if the box is checked catastrophic error occurs, and unchecking the rule works as expected. thank you in advance for the help already.
Solved! Go to Solution.
Solved by Yijiang.Cai. Go to Solution.
Please see the rule below, which is used to check whether the sheet metal defaults "Use Thickness from Rule" is checked -
Sub Main() Dim oDoc As PartDocument oDoc = ThisApplication.ActiveDocument Dim oCompDef As SheetMetalComponentDefinition oCompDef = oDoc.ComponentDefinition If oCompDef.UseSheetMetalStyleThickness = True Then MessageBox.Show("Checked", "Title") Else MessageBox.Show("Unchecked", "Title") End If End Sub
Hope it helpful for you!