- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Does anybody experience this kind of external command error?
how did you sort this out?
when I use this in macro it works perfectly. but when I use external command, I get the error.
using (Transaction t = new Transaction(doc,"Create ViewSet"))
{
t.Start();
string setName = "SheetSet Name";
try
{
viewSheetSetting.SaveAs(setName);
}
catch (Autodesk.Revit.Exceptions.InvalidOperationException)
{
TaskDialog.Show("Error", setName + " is already in use");
t.RollBack();
return;
}
t.Commit();
}
Solved! Go to Solution.
Link copied