Api to create Multiple named views

Api to create Multiple named views

nubrandao
Collaborator Collaborator
559 Views
1 Reply
Message 1 of 2

Api to create Multiple named views

nubrandao
Collaborator
Collaborator

Hi, i work a lot with powermill workplanes to view and attack from various angels.

 

Is it possible to create me Multiple named views 

 

For example 

One - origen

Two - X 15°

There - X30 °

 

 

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

j4n.vokurka
Advocate
Advocate
Accepted solution

Hello,
of course it is possible to create new named views via API. Use the add method of NamedViews object. I guess what you are really asking is can I manipulate and "turn" the camera in a way to then make the named view from angle I want?

For that you will have to play with vectors and properties of camera object. There is a lot you can do but I found some threads where similar topics were discussed and there are many samples you can try out. Hopefully this will clarify how you should proceed.

1) https://forums.autodesk.com/t5/fusion-api-and-scripts/getting-setting-changing-the-camera-view/m-p/5... 
2) https://forums.autodesk.com/t5/fusion-api-and-scripts/script-to-level-the-camera/m-p/7192125#M3952