i have an error when i'm trying to get the column base offset instance parameter it gives me error i tried to use built in parameter Enum and i tried to use look up parameter and both give me error although the storage type is double as i checked in revit look up tool as iam trying to give it offset
foreach (var columnid in columnsid)
{
Element column =Doc.GetElement(columnid);
var parameterbaseoffset =
column.LookupParameter("Base Offset").AsDouble();
//parameterbaseoofset.Set(offset);
}
Solved! Go to Solution.
Solved by RPTHOMAS108. Go to Solution.
You should avoid using LookupParameter for parameters that are built-in or shared since the name of the parameter alone does not distinguish it.
In your case you can use:
BuiltInParameter.FAMILY_BASE_LEVEL_OFFSET_PARAM
There is another one of the same name called:
SCHEDULE_BASE_LEVEL_OFFSET_PARAM
Can't find what you're looking for? Ask the community or share your knowledge.