Hi,
I am having a problem with the following code, which is failing beacuse it thinks Newvp is an unsupported type of SavedItem.
Dim Newvp AsNew Autodesk.Navisworks.Api.SavedViewpoint(doc.CurrentViewpoint)
Newvp.DisplayName = "Test"
doc.SavedViewpoints.AddCopy(Newvp)
How can this be, when I explicitly create Newvp as a SavedViewpoint?
Cheers
Mike
maybe you need to do smth like this:
Dim Newvp AsNewAutodesk.Navisworks.Api.SavedViewpoint(doc.CurrentViewpoint)
doc.SavedViewpoints.AddCopy(Newvp);
doc.SavedViewpoints.EditDisplayName(Newvp, "Test");
Hi,
please take a look at this blog if it helps.
http://adndevblog.typepad.com/aec/2012/06/navisworks-net-api-2013-new-feature-saved-viewpoint.html
Can't find what you're looking for? Ask the community or share your knowledge.