Autodesk Navisworks API
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Re: Get all selected viewpoint
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
unit affects this. API shows the value in document unit, while product uses meter. You can see a small 'm' atfer the values in the dialog viewpoint>edit>position.
Xiaodong Liang
Developer Technical Services
Autodesk Developer Network
Re: Get all selected viewpoint
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
ok.. but how can i translate units coordinates in meters?
Re: Get all selected viewpoint
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I do not think it will be difficult for you to convert the values in different units, though Navisworks API does not provide the conversion.
btw, the document unit is told by Document.Units
Xiaodong Liang
Developer Technical Services
Autodesk Developer Network
Re: Get all selected viewpoint
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
actually i dont get it how can i transform sv.Viewpoint.Position.X = 2028,...
into meters with Document.Units - enum class
Re: Get all selected viewpoint
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
no Navisworks API, but this is a math question. e.g.
if the document unit is foot. while 1 foot = 0.3048 meter. thus the value in meter is : value * 0.3048
does this make sense?
Xiaodong Liang
Developer Technical Services
Autodesk Developer Network
Re: Get all selected viewpoint
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Now i get it, what you want to tell me..
with Document.Units we get default doc units and after that we translate it!
Thx for help!
Re: Get all selected viewpoint
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
exactly! glad my comment could help ![]()
Xiaodong Liang
Developer Technical Services
Autodesk Developer Network


