- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear Colleagues
I am looking for a possibility to change hyperlink to individual object in Navisworks. I know that through right clicking any object, i can assign / change / load any web link. I need to change a lot of hyperlink.
Please help correct the code.
// get current selected items
ModelItemCollection modelItemCollectionIn =
new ModelItemCollection(
Autodesk.Navisworks.Api.Application.ActiveDocument.
CurrentSelection.SelectedItems);
//convert to InwOpSelection of COM API
ComApi.InwOpSelection comSelectionOut =
ComApiBridge.ComApiBridge.ToInwOpSelection(modelItemCollectionIn);
// set the hyplerlink of the model items
state.SetOverrideURL(comSelectionOut, oMyURLOoverride);
// enable to the hyperlinks visible
state.URLsEnabled = true;
Solved! Go to Solution.