Hello,
Is there a way to dimension the endpoints of a rebar horizontally and vertically? I can get the lines of the rabars with rebar.GetCenterlineCurves, but it seems that the endpoints of these lines cannot be referenced.
Can anyone help me?
Thanks
Solved! Go to Solution.
Solved by Joe.Ye. Go to Solution.
You can read the geometry data from the rebar by Rebar.Geometry property. This property requires an Option argument. you need to set the option.CaculateReferences to true.
Then read the edge of the rebar. and get the curve from the Edge object. Finally get the end point reference from the curve.
Hope this helps,
______________________________________________________________
If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!
Hi,
but this aproach dosen't give geometry of rebarsSet. There is nothing in collection.
------
Options opt = new Options();
opt.DetailLevel = ViewDetailLevel.Fine;
opt.ComputeReferences = true;
opt.IncludeNonVisibleObjects = true;
GeometryElement ele = raber.get_Geometry(opt);
foreach (GeometryObject geomObj in ele)
{
...
}
-------
I even tried sth different, but got only one curve.
GeometryElement ele = doc.GetElement(reb.Id).get_Geometry(opt);
Could You help?
Not sure whether you got the solution for what you were looking for. I was also looking for something similar and has posted it here. Please have a look.
Also, if you have any better solution let me know.
Thanks
Can't find what you're looking for? Ask the community or share your knowledge.