Message 1 of 1
Breakout view / point as DepthSource
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to create a breakout view, and it works without any Problems, when i specify a drawing curve object for DepthSource. Here is the code:
Dim oBreakoutView As Inventor.DrawingView = Nothing
Dim oDoc As DrawingDocument = ThisDoc.Document
Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("Blatt:1")
Dim VIEW1 = Sheet_1.DrawingViews.ItemByName("Vorne")
Dim oDrawView As DrawingView = oDoc.ActiveSheet.DrawingViews.Item(1)
Dim oSketch As DrawingSketch = oDrawView.Sketches.Add
oSketch.Name = "Ausbruch"
Dim oTG As TransientGeometry = ThisApplication.TransientGeometry
oSketch.Edit
Dim pktSpline1 As Point2d = oTG.CreatePoint2d(-1, 0.2)
Call oSketch.SketchCircles.AddByCenterRadius(pktSpline1,0.4)
oSketch.ExitEdit
Dim oSheet As Sheet = oDoc.ActiveSheet
Dim oView As DrawingView = oSheet.DrawingViews.Item(1)
Dim oProfile As Profile = oSketch.Profiles.AddForSolid
Dim FlBohr = VIEW1.GetIntent("Fläche0") 'Fläche0 is the name of the surface for the hole
oBreakout = oView.BreakOutOperations.Add(oProfile, FlBohr, , )
When I use a point as DepthSource, I always get an error.
Dim PktBohr = VIEW1.GetIntent("Breakout") 'Breakout is the name of the point
oBreakout = oView.BreakOutOperations.Add(oProfile, PktBohr, 0.2, )
Can someone tell me what the issue is? Thank you!