toggle dimension equality label does not update

Yonas89
Collaborator
Collaborator

toggle dimension equality label does not update

Yonas89
Collaborator
Collaborator

Hello, I am trying to create a dimension with 2 segments which both would be equal to each other.  The code snippet below looks to work fine, but it does not change equality label as it is in the image below: 

capt.PNG

 

 

public void CreateDim (ReferenceArray ratop)
{
 XYZ pt1top = new XYZ(0, 0, (h + 500) / 304.8);
 XYZ pt2top = new XYZ(10, 0, (h + 500) / 304.8);

Line dimline1 = Line.CreateBound(pt1top, pt2top);
              
Dimension dimTop = RvtDoc.revdoc.FamilyCreate.NewLinearDimension(RvtDoc.revdoc.ActiveView, dimline1, ratop);
Parameter p = dimTop.get_Parameter(BuiltInParameter.DIM_DISPLAY_EQ);
p.Set(1);
}

 

0 Likes
Reply
Accepted solutions (1)
512 Views
1 Reply
Reply (1)

aignatovich
Advisor
Advisor
Accepted solution

Hi!

 

Try to set dimTop.AreSegmentsEqual = true;