- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi folks!
I have a little question.
I am trying to place schedules to the view sheet in a vertical chain. The result should be something like:
Actually there are 2 (or more) schedules. I've already achieved what I want. I retrieve bounding box on active viewsheet of each ScheduleSheetInstance and move insertion point for each schedule.
The problem is that ScheduleSheetInstance bounding box is a bit large than actual schedule table:
I've draw borders with this python shell code:
shInst = selection[0] # a ScheduleSheetInstance should be selected to run this code bb = shInst.get_BoundingBox(doc.ActiveView) tx = Transaction(doc, "bounds") tx.Start() doc.Create.NewDetailCurve(doc.ActiveView, Line.CreateBound(bb.Min, XYZ(bb.Min.X, bb.Max.Y, 0))) doc.Create.NewDetailCurve(doc.ActiveView, Line.CreateBound(XYZ(bb.Min.X, bb.Max.Y, 0), bb.Max)) doc.Create.NewDetailCurve(doc.ActiveView, Line.CreateBound(bb.Max, XYZ(bb.Max.X, bb.Min.Y, 0))) doc.Create.NewDetailCurve(doc.ActiveView, Line.CreateBound(XYZ(bb.Max.X, bb.Min.Y, 0), bb.Min)) tx.Commit()
The distance is ~2.12 mm. I hardcoded this value in my code. It seems it works, but I don't know if it works in every possible cases.
So, the question is:
Is there any way to retrieve this value via API?
Thank you!
Cheers, Alexander
Solved! Go to Solution.