Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66694

Re: Set active work plane

$
0
0

The method for the creation of the Plane has changed, in case anyone needs this i'll leave a code snippet:

 

using(Transaction t = new Transaction(doc, "Creating sketchplane")) { t.Start(); Plane plane = Plane.CreateByNormalAndOrigin(doc.ActiveView.ViewDirection, doc.ActiveView.Origin); SketchPlane sp = SketchPlane.Create(doc, plane); doc.ActiveView.SketchPlane = sp; t.Commit(); }

Viewing all articles
Browse latest Browse all 66694

Trending Articles