Message 1 of 4
Set parameter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
could anybody explain what are the difference between revit macro and revit api?
because I am playing around the codes,
String pName = "12asdf";
using (Transaction t = new Transaction(doc, "set"))
{
t.Start();
elem.LookupParameter("Comments").Set(pName);
TaskDialog.Show("result", pName);
t.Commit();
}
this code works perfectly in macro even the parameters are built in or shared.
however when I try to implement in Api, it doesn't work in Shared parameter.
thank you in advance.