Message 1 of 3
Run Rule from Case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have several rules that need to run depending on if a Workpoint exist in a view.
The rule runs, no errors or anything else; nothing happens! I can run the rules one at the time just fine.
'Get Sheet, View, Intent Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("Sheet:1") Dim FRONT_VIEW = Sheet_1.DrawingViews.ItemByName("FRONT VIEW") 'Standard Housing Dim WP_S_MP = FRONT_VIEW.GetIntent("2021_2-250008-15-001:1", "WP_S_MP") 'Metric Housing Dim WP_M_MP = FRONT_VIEW.GetIntent("2021_2-250008-15-M001:1", "WP_M_MP") 'Low Temperature Housing Dim WP_L_MP = FRONT_VIEW.GetIntent("2021_2-250008-15-L001:1", "WP_L_MP") 'Metric Low Temperature Housing Dim WP_LM_MP = FRONT_VIEW.GetIntent("2021_2-250008-15-LM001:1", "WP_LM_MP") For Each oPoint As WorkPoint In ThisDoc.ModelDocument.ComponentDefinition.WorkPoints Select Case oPoint.Name Case "WP_S_MP" iLogicVb.RunRule("Standard_Dimensions_Front_View") Case "WP_M_MP" iLogicVb.RunRule("Metric_Dimensions_Front_View") Case "WP_L_MP" iLogicVb.RunRule("Low_Temperature_Dimensions_Front_View") Case "WP_LM_MP" iLogicVb.RunRule("Metric_Low_Temperature_Dimension_Front_View") End Select Next