第 1 条消息(共 3 条)
Hi,
I have created the parameter "Instance_Name" for all of the elements in my project and its has value in some of the elements and its empty in the rest. I want to check the value of the parameter but I dont know how to access it. Using revitlookup I found out that it exists in parameters. I have tried different methods like:
IList<Parameter> p = EF.GetParameters("Instance_Name");
string pp = p[0].ToString();
Parameter ppp = EF.LookupParameter(pp);
string pppp = ppp.AsString();
TaskDialog.Show("instance name", pppp);
or
Parameter p = EF.LookupParameter("Instance_Name");
string pp = p.AsString();
TaskDialog.Show("instance name", pp);
Can you help me?
已解决! 转到解答。