Set Parameter type Reinforcement Length

Set Parameter type Reinforcement Length

jamess166
Advocate Advocate
581 Views
1 Reply
Message 1 of 2

Set Parameter type Reinforcement Length

jamess166
Advocate
Advocate

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;
}
0 Likes
Accepted solutions (1)
582 Views
1 Reply
Reply (1)
Message 2 of 2

jamess166
Advocate
Advocate
Accepted solution

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

0 Likes