Message 1 of 1
Update keynote of link models
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Everyone.
I am trying to update keynote of each family of all the linked models of the host file.
However I get this exception upon stepping on the using transaction clause.
var linkInstances = new FilteredElementCollector(doc).OfClass(typeof(RevitLinkInstance)).Cast<RevitLinkInstance>();
foreach (var linkInstance in linkInstances)
{
using (Transaction txLink = new Transaction(linkDoc, "Assign Keynote to Linked Model Family Types"))
{
//update keynote here
}
}
Document is a linked file. Transactions can only be used in primary documents (projects or families.)
Is this a limitation and what are my options?
Thank you in advance.