View scale / bounding box

View scale / bounding box

Anonymous
Not applicable
697 Views
0 Replies
Message 1 of 1

View scale / bounding box

Anonymous
Not applicable

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.510));

Annotation 2020-02-12 084150.png

 

0 Likes
698 Views
0 Replies
Replies (0)