Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

column base offset parameter retrieves null

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
khalidfathyuar
244 Views, 2 Replies

column base offset parameter retrieves null

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);
}

@jeremytammik   

@mikako_harada 

@didik.achmadiSQCG4 

@vincebohner 

2 REPLIES 2
Message 2 of 3

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

Message 3 of 3

Thank you it works now@RPTHOMAS108  

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report