Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
When using the API to create a rectangular Revision Cloud, I ran into the problem of Revision Cloud inversion.
The position of the IndependentTag in the diagram is the first point of the Revision Cloud, and the diagonal is the second point.
I think it is the direction of Line that causes this problem, but how should I judge or deal with the direction of Line? How do I pick or compute the four points?
thank you
love you
var fPoint = selection.PickPoint();
var sPoint = selection.PickPoint();
var tPoint = new XYZ(sPoint.X, fPoint.Y, fPoint.Z);
var foPoint = new XYZ(fPoint.X, sPoint.Y, sPoint.Z);
var bian1 = Line.CreateBound(fPoint, tPoint);
var bian2 = Line.CreateBound(tPoint, sPoint);
var bian3 = Line.CreateBound(sPoint, foPoint);
var bian4 = Line.CreateBound(foPoint, fPoint);
List<Curve> lines = new List<Curve>() { bian1, bian2, bian3, bian4 };
var newRevisionCloud = RevisionCloud.Create(doc, doc.ActiveView, revision.Id, lines);
Solved! Go to Solution.