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: 

Set Parameter type Reinforcement Length

1 REPLY 1
SOLVED
Reply
Message 1 of 2
jamess166
435 Views, 1 Reply

Set Parameter type Reinforcement Length

Good day, I am trying to assign a value to a shared parameter of type reinforcement length but I do not know why I can not apply it, I have considered it of the Double type but I do not get any modification.

 

foreach (Rebar r in rebar)
{
Parameter ParQC_RebarLength = Parameter(r, "8acbe253-9336-4934-925d-7e2dff0be89d");
Double LongPieza=0;
ParQC_RebarLength.Set(LongPieza);
}

public Parameter Parameter(Element e, String guid)
{
Guid parameterShared = new Guid(guid);
Parameter parameter = e.get_Parameter(parameterShared);
return parameter;
}
1 REPLY 1
Message 2 of 2
jamess166
in reply to: jamess166

I found the solution, I had a try catch that is blocking a line.

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

Post to forums  

Forma Design Contest


Rail Community