Message 1 of 8

Not applicable
02-18-2021
06:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I am using Inventor 2021 and using the ilogic rule below to populate the View Labels on my Drawings as per the View Cube and it works well.
Dim tmpSheet As Sheet = ThisDrawing.ActiveSheet.Sheet Dim tmpView As DrawingView For Each tmpView In tmpSheet.DrawingViews Dim myDrawingViewName As String = "" If tmpView.Type = ObjectTypeEnum.kDrawingViewObject Then Select Case tmpView.Camera.ViewOrientationType Case ViewOrientationTypeEnum.kBackViewOrientation myDrawingViewName = "BACK VIEW" Case ViewOrientationTypeEnum.kBottomViewOrientation myDrawingViewName = "BOTTOM VIEW" Case ViewOrientationTypeEnum.kFrontViewOrientation myDrawingViewName = "FRONT VIEW" Case ViewOrientationTypeEnum.kIsoBottomLeftViewOrientation myDrawingViewName = "ISOMETRIC VIEW" Case ViewOrientationTypeEnum.kIsoBottomRightViewOrientation myDrawingViewName = "ISOMETRIC VIEW" Case ViewOrientationTypeEnum.kIsoTopLeftViewOrientation myDrawingViewName = "ISOMETRIC VIEW" Case ViewOrientationTypeEnum.kIsoTopRightViewOrientation myDrawingViewName = "ISOMETRIC VIEW" Case ViewOrientationTypeEnum.kLeftViewOrientation myDrawingViewName = "SIDE VIEW" Case ViewOrientationTypeEnum.kRightViewOrientation myDrawingViewName = "SIDE VIEW" Case ViewOrientationTypeEnum.kTopViewOrientation myDrawingViewName = "TOP VIEW" Case Else myDrawingViewName = "" End Select If Not myDrawingViewName = "" Then tmpView.Name = myDrawingViewName End If If tmpView.IsFlatPatternView =True Then tmpView.Name = "FLAT PATTERN" End If End If myDrawingViewName = "" Next
The problem I have is if I place a base view in a rotated orientation, it does not update the View label. See below
Base view on Left in default orientation, Base view on Right Rotated 90deg on view placement.
Any help with editing this rule to allow for rotated views to populate the view label will be much appreciated. Thanks
Solved! Go to Solution.