Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

sheet metal defaults "Use Thickness from Rule" - ilogic

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
celesiob
1193 Views, 2 Replies

sheet metal defaults "Use Thickness from Rule" - ilogic

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.

2 REPLIES 2
Message 2 of 3
Yijiang.Cai
in reply to: celesiob

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!

Thanks,
River Cai

Inventor Quality Assurance Team
Autodesk, Inc.
Email: River-Yijiang.Cai@autodesk.com
Message 3 of 3
celesiob
in reply to: Yijiang.Cai

Thank Yijiang.Cai with the rule suggested solved the problem.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report