- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a small add-in, which creates an elevation and places it on a sheet. Everything works fine and is generated as expected.
Unfortunately, the elevations created by this method lock the control of their extent from within the plan view (i.e. these small blue circles, as per attached screenshot).Control circles locked
The way to unlock it is to edit the crop of elevation with 'Edit Crop' and confirm with the green tick (i.e. 'Finish Edit Mode'). *Note: This does not even require any changes to the shape.Finish Edit Mode I have no problem doing this, but it may be confusing for other users, or sometimes simply forgotten locking the elevation for future users.
Below is the code generating the issue.
...
doc.Regenerate(); // Create elevation using the marker ViewSection elevationView = marker.CreateElevation(doc, newVPId, i); // Set the crop to elevation accordingly ViewCropRegionShapeManager crsm = elevationView.GetCropRegionShapeManager(); crsm.SetCropShape(cl_0_2); // Refresh the document doc.Regenerate(); // Create the location object for the elevation var locationElev = new XYZ(elevX, elevY, 0); Viewport vPortElev = Viewport.Create(doc, sheet.Id, elevationView.Id, locationElev); // Refresh the document doc.Regenerate();
Is there anything that could be done to solve this issue? Or maybe it's an internal Revit bug?
Thanks
OS: Windows 10
Revit: 2018
Solved! Go to Solution.