Add Multiple URLs to element
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've read through what I think are all the pertinent posts, and they all point to this blog:
http://adndevblog.typepad.com/aec/2012/05/create-hyperlinks-for-model-objects-using-net-api.html
Which was a great start point, but I am trying to add multiple hyperlinks to the same element. This code, and my failed attempts at updating it, simply overwrite the previous hyperlink.
Someone in the comments of the blog said they figured it out but never shared the solution. Anyone have a fix or tweak to the blog's code they can share that can point me in the right direction?
Here's more details:
I am using Data Tools to read in an Excel file. That file links via GUID to elements in my Navisworks model. That Excel file has 3 different URLs. My code reads those data properties and sends each one to the AddURL function (modified from the blog post above). But each time, only the last URL ends up being added as a link. It is clearly overwriting the prior hyperlink. I've tried a lot of different things here (my COM knowledge is poor, and frankly, my .NET knowledge isn't awesome) and was hoping someone could help me out.
Thanks!
Jason Kunkel
Senior Practice Manager, Architecture and Engineering
CADD Microsystems Blog
RVIT Blog | Twitter | LinkedIn