Using iLogic to make bisecting centerlines
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to do something that seems simple, but it's giving me a tough time. I want an ilogic program to bisect two lines of a swept hole to create a centerline in the section view of a drawing. Automated centerlines won't work in this case for some reason, probably because its a sweep rather than a hole. I don't want to have to select the edges with mouse clicks. The edges will be the same on every drawing made from this part. It will be part of a rule that creates the drawing view. I have tried using named entities in the model to create edges and then geometry intent but no luck so far. Attached is a video of what I'm trying to do. Seems so simple on the video but it's not working yet. I tried asking chatgpt and was running in circles with it. Any ideas?
'Piezometer hole Centerline
Dim oPhole As Edge = oNEsFO.FindEntity("P-hole") If oPhole Is Nothing Then MessageBox.Show("Edge 'P-hole' not found.") Return End If 'This code runs successfully and the edge is found edgeCurvesPhole = oSectionViewFOHPT.DrawingCurves(oPhole) 'I dont think anything past here works Dim pholetopline As GeometryIntent = oSheet2.CreateGeometryIntent(edgeCurvesPhole(1)) Dim pholebtmline As GeometryIntent = oSheet2.CreateGeometryIntent(edgeCurvesPhole(2)) Dim CLPholeFO As Centerline = oSheet2.Centerlines.AddBisector(pholetopline,pholebtmline)