
Not applicable
07-02-2017
08:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We are developing the .net application using navisworks api. In that I have got one error – “Focal distance not set” Document document = Autodesk.Navisworks.Api.Application.ActiveDocument; foreach (SavedItem item in document.SavedViewpoints.Value) { SavedViewpoint SVP = item as SavedViewpoint; Viewpoint vp = new Viewpoint(); vp = SVP.Viewpoint; double focaldistance = VP.FocalDistance; } Can you tell me how I can solve this. 1.I can access properties of manual created viewpoints by this api but when I create viewpoints automatically(Export from Clash)that it gives null properties(AngularSpeed = {System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: <<NavisWorks Error - Element not present>>) such as focal Distance,Angular speed .
Thanks
Solved! Go to Solution.