Message 1 of 4
Not applicable
11-05-2016
01:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
very new to API's for Autodesk products. trying to automate a Navisworks session using vb.net and get a document's information - model, layers etc.
code below works in starting the session and loading the file but I cant then select the active document - gets the error attached -= I am sure I am doing something stupid... but help would be appreciated, cant seam to find any vb.net examples all c.
thanks in anticipation
error attached as screen shot
Imports Autodesk.Navisworks.Api.Automation Imports Autodesk.Navisworks.Api . . Dim NWApp As New Autodesk.Navisworks.Api.Automation.NavisworksApplication NWApp.OpenFile(Zone_File_Name.Text) NWApp.Visible = True Dim NWDOC As Autodesk.Navisworks.Api.Document NWDOC = Autodesk.Navisworks.Api.Application.ActiveDocument
Solved! Go to Solution.