Message 1 of 1
[Bug] Sick dimensions when measuring between workpoints in broken views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Inventor seems to produce sick dimensions when measuring between included workpoints in broken views.
One workaround I found is to place the dimensions before breaking the views, but that is not ideal in my situation.
Can anyone suggest any other workarounds?
Screencast showing the bug: https://autode.sk/3f8NriK
Code used in the screencast:
Dim DrawDoc As DrawingDocument = ThisApplication.ActiveDocument
Dim oSheet As Sheet = DrawDoc.ActiveSheet
Dim oView As DrawingView = oSheet.DrawingViews(1)
Dim oPart As PartDocument = oView.ReferencedDocumentDescriptor.ReferencedDocument
Dim oWpoints As WorkPoints = oPart.ComponentDefinition.WorkPoints
Dim CM1 As Centermark = oSheet.Centermarks.AddByWorkFeature(oWpoints("Work Point1"), oView)
Dim CM2 As Centermark = oSheet.Centermarks.AddByWorkFeature(oWpoints("Work Point2"), oView)
Dim Intent1 As GeometryIntent = oSheet.CreateGeometryIntent(CM1)
Dim Intent2 As GeometryIntent = oSheet.CreateGeometryIntent(CM2)
Dim oDimPoint As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(oView.Center.X, oView.Top + 2)
oSheet.DrawingDimensions.GeneralDimensions.AddLinear2(oDimPoint, Intent1, Intent2)