Message 1 of 4
DatumPlane SetCurve problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to use DatumPlane.SetCurveInView to duplicate 2d extents of grids across views. I am taking a reference view and using GetCurvesInView to get the curve to set with. This works fine for views that are essentially copies of the primary view (Same Associated Level)
But when I attempt it for plan views that are at a different level than the reference plan view, it does not work. Which makes sense....the ref curve is not at the correct elevation.
No problem, I'll use Curve.CreateTransformed(Transform.CreateTranslation(XYZ(0,0,offset))) where offset is the Z value (level elevation) of my new view minus the Z value of the reference level. But this fails for some reason. The error states that the curve must be bound and coincident with the datum plane. I tested using Curve.IsBound and that returned "True"....so how can the curve not be coincident if it was only offset in Z??
I also tried getting the start and end points of the reference curve, and creating new XYZ with the new Z value and using Line.CreateBound but that too gave me the same error.
So my question is - how do I use SetCurveInView when the reference curve is taken from a datum plane that is in a plan view at a different elevation than the plan view containing the datum plane I am trying to set.
But when I attempt it for plan views that are at a different level than the reference plan view, it does not work. Which makes sense....the ref curve is not at the correct elevation.
No problem, I'll use Curve.CreateTransformed(Transform.CreateTranslation(XYZ(0,0,offset))) where offset is the Z value (level elevation) of my new view minus the Z value of the reference level. But this fails for some reason. The error states that the curve must be bound and coincident with the datum plane. I tested using Curve.IsBound and that returned "True"....so how can the curve not be coincident if it was only offset in Z??
I also tried getting the start and end points of the reference curve, and creating new XYZ with the new Z value and using Line.CreateBound but that too gave me the same error.
So my question is - how do I use SetCurveInView when the reference curve is taken from a datum plane that is in a plan view at a different elevation than the plan view containing the datum plane I am trying to set.