Message 1 of 9
Grid line API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
is it possible to access the segments of the split (not multisegment) grid line in Python? I'm working on a solution to match the grid endpoints, bubbles and leaders between different views. Right now just the split and multi-segment grids are the issues.
I always get the number of the associated lines as 1 here, although the grid is split into 3 distinct parts: start segment, the middle and the end segment:
selection = rpw.ui.Selection()
...
for cGrid in selection:
el = cGrid.unwrap()
if isinstance(el, DB.Grid):
curves=el.GetCurvesInView(DB.DatumExtentType.ViewSpecific, cView)
if len(curves) <> 1:
UI.TaskDialog.Show('pyRevitPlus', 'The grid line is defind by {} curves, unable to proceed', len(curves))
else:
cCurve = curves[0]