Skip to content

Instantly share code, notes, and snippets.

@chuongmep
Created June 13, 2020 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuongmep/a0e14471b83cb879baf36733a8b4510e to your computer and use it in GitHub Desktop.
Save chuongmep/a0e14471b83cb879baf36733a8b4510e to your computer and use it in GitHub Desktop.
using (Transaction tran = new Transaction(doc, "Set Parameter"))
{
tran.Start();
foreach (Element e in elements)
{
Parameter p = e.get_Parameter(BuiltInParameter.ALL_MODEL_INSTANCE_COMMENTS);
p?.Set(_viewModel.TxtStatus);
e.Dispose();
}
tran.Commit();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment