Message 1 of 5
IsRebarInSection()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have place a set of rebars in a viewPlan that only have 1 segment:
I was expecting the IsRebarInSection() command to throw a true boolean as the rebars are shown as a cross section. If that is not the case, what this method stands for and which api method should I be looking up instead?
Test code:
foreach (Element element in rebars) {
if (element is RebarContainer) {
}
else if (element is Rebar) {
Rebar el = element as Rebar;
if (el.IsRebarFreeForm() == true) {
}
else if(el.IsRebarShapeDriven() == true){
RebarShapeDrivenAccessor acc=(element as Rebar).GetShapeDrivenAccessor();
XYZ dir=acc.GetDistributionPath().Direction;
double angle=dir.AngleTo(view.ViewDirection);
angle=angle*(180/Math.PI); //90,0
stb.AppendLine(angle.ToString());
stb.AppendLine(el.IsRebarInSection(view).ToString());
}
}
TaskDialog.Show("dd",stb.ToString());
Best Regards