Message 1 of 2
Can't see new SketchPlane

Not applicable
10-09-2020
09:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone! Trying to create a new SketchPlane with this code
using (Transaction tx = new Transaction(doc)) {
tx.Start("Start");
View activeView = uidoc.ActiveGraphicalView;
SketchPlane sketch = activeView.SketchPlane;
XYZ direction = activeView.ViewDirection;
XYZ origin = activeView.Origin;
Plane plane = Plane.CreateByNormalAndOrigin(activeView.ViewDirection, activeView.Origin);
sketch = SketchPlane.Create(uidoc.Document, plane);
activeView.ShowActiveWorkPlane();
tx.Commit();
}
But I don't see anything in one of projects in revit, but expect that I see something like this blue square on background.
So what I do wrong that in one project I can see new SketchPlane but in another can't?
Thank you!