Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Greetings to everyone,
I'm collecting the boundary lines for every room then Im looking to generate railings base on those lines but I'm facing the following error:
foreach (Room room in rooms)
{
...getting boundary lines and group then to theBottomLinesLoop
if (theBottomLinesLoop.Any()) {
//foreach line check if lines continue
//CurveLoop cvL = CurveLoop.Create(new List<Curve>{theBottomLinesLoop[0]});
//Railing rail = Railing.Create(doc,cvL,railType.Id,level.Id);
foreach (Line line in theBottomLinesLoop) {
CurveLoop cvL = CurveLoop.Create(new List<Curve>{line});
Railing rail = Railing.Create(doc,cvL,railType.Id,level.Id);
}
}
If I comment the Railing.Create(doc,...) line, no errors are thrown However I cant place the railings lol,
I'm confused about this matter, any possible explanation to this issue?
Best regards,
Miguel G.
Solved! Go to Solution.