Message 1 of 7
Placing a dimension on a detail view with iLogic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I can place a dimension on my main drawing with this code:
Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("Sheet:1") Dim VIEW1 = Sheet_1.DrawingViews.ItemByName("VIEW1") Dim DetailView = Sheet_1.DrawingViews.ItemByName("A") 'Main view intents. Dim Edge0 = VIEW1.GetIntent("Edge0") Dim Face0 = VIEW1.GetIntent("Face0") 'Detail intents. Dim Edge0_detail = DetailView.GetIntent("Edge0") Dim Face0_detail = DetailView.GetIntent("Face0") Dim genDims = Sheet_1.DrawingDimensions.GeneralDimensions ThisDrawing.BeginManage() If True Then Dim GrooveLength = genDims.AddLinear("GrooveLength", VIEW1.SheetPoint(0.9, 1.1), Edge0, Face0) 'Dim GrooveLength2 = genDims.AddLinear("GrooveLength2", DetailView.SheetPoint(0.9, 1.1), Edge0_detail, Face0_detail) End If ThisDrawing.EndManage()
However if I would like to place the same dimension on the detail view with the commented out line of code in the drawing manage section I get this error:
Where have I gone wrong? I have attached the files.
Thanks,
Harvey
