Problem with viewport titles, "Show when multiple"

Problem with viewport titles, "Show when multiple"

colin_magner
Advocate Advocate
710 Views
1 Reply
Message 1 of 2

Problem with viewport titles, "Show when multiple"

colin_magner
Advocate
Advocate

I'm automating the placement of views onto sheets, and I'm finding that views I've placed don't show title correctly in accordance with their viewport type.

 

The viewport type being used has the setting "Show Title" set to "When multiple viewport".

 

If I manually add a second viewport to the sheet, of the same type, the second viewport shows a view title but the first doesn't. If I create a new sheet and manually add two viewports they both have titles.

 

I've tried manually changing the viewport to a different type, and changing viewport type properties to see if that gives the viewport a kick, but any viewport I place onto a sheet simply refuses to follow the show title setting.

 

During placement of the viewport on sheet, I'm:

  • Creating a new viewport using Viewport.Create
  • Moving the viewport to the correct position on the sheet using ElementTransforumUtils.MoveELement

[edit] I'm using Revit 2019.2.2

 

Has anyone else experienced this?

 

Any tips on things to try as a workaround?

0 Likes
Accepted solutions (1)
711 Views
1 Reply
Reply (1)
Message 2 of 2

colin_magner
Advocate
Advocate
Accepted solution

The problem was creating the sheet then immediately adding the viewport.

 

If I regenerate the model after creating the sheet, the viewport behaves fine. I think this is an API bug - you shouldn't be able to create a viewport that is 'broken'.

0 Likes