How to import XML of viewpoints?

Anonymous

How to import XML of viewpoints?

Anonymous
Not applicable

I am trying to do an automation to create nwd with specific viewpoints xml imported. Should I simply use command line roamer.exe or use .net API ( I would use VB.net) ?  Looks like roamer.exe does not have viewpoint xml. Please advise or show me a sample code.

 

Thanks in advance

0 Likes
Reply
748 Views
1 Reply
Reply (1)

xiaodong_liang
Autodesk Support
Autodesk Support

Hi,

 

no API loads the XML of viewpoint. You could parse the XML yourself to get the information of the view and configure the camera:

 

InwNvViewPoint.Camera

 

e.g. the XML has the info of the position of the viewpoint. Then we can set the position.

 

InwNvViewPoint.Camera.Position = oViewPos.

 

Hope this helps.

 

Regards,

Xiaodong Liang

Developer Technical Services

0 Likes