Message 1 of 1
View scale / bounding box

Not applicable
02-12-2020
09:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to change the scale/length of the label line (image below, red), underneath a newly created view. I can change the scale of the view itself (c# below), but the label line under the view is always twice the width of the view itself, because the viewport shows all of the other ortho view section lines (front, right, top) within the view.
I have looked at adjusting the BoundingBox for the view but I am having trouble getting this to work. Could someone tell me how to adjust the viewport size, without using a view template? I would like to hide the view-section lines as well, but my main goal is to change the 'label' line, when the view is created.
Any help would be greatly appreciated. -- Thanks
// Left Elevation
ViewSection elevationLeft = AssemblyViewUtils.CreateDetailSection(_doc, _assemblyInstance.Id, AssemblyDetailViewOrientation.ElevationLeft);
elevationLeft.ViewName = "Elevation Left";
elevationLeft.DetailLevel = ViewDetailLevel.Fine;
elevationLeft.Scale = 10;
Viewport.Create(_doc, viewSheet.Id, elevationLeft.Id, new XYZ(0.5, 1, 0));