How to create a new view

How to create a new view

Anonymous
Not applicable
1,558 Views
1 Reply
Message 1 of 2

How to create a new view

Anonymous
Not applicable

Hello ,

 

If I have a view created through the center of an element and parallel with length of element , how can I create a new one for an element rotated with 90 degrees also parallel with element length . Programatically.

 

Thank you

0 Likes
1,559 Views
1 Reply
Reply (1)
Message 2 of 2

augusto.goncalves
Alumni
Alumni
You'll probably need to get the bounding box of the rotated element, use that information to calculate the view, and finally create it.

The actual code will really depend on the view type and element type, but there are some samples on that direction at Jeremy's blog, but this should be close to what I believe you need: http://adndevblog.typepad.com/aec/2015/03/revitapi-how-to-resize-cropbox-of-view.html
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes