Community
And I want to use the above union command for more than 2000 regions. I can do it manually, but I would like to know how to do it using the API.
Solved! Go to Solution.
Solved by Jeff_M. Go to Solution.
region.BooleanOperation(BooleanOperationType.BoolUnite, otherregion);
This is what I use to unite many regions:
var regions = Region.CreateFromCurves(polys);
var overall = new DBObjectCollection();
foreach (Region reg in regions)
{
try
{
regions.Remove(reg);
foreach (Region x in regions)
{
if(!x.IsNull)
reg.BooleanOperation(BooleanOperationType.BoolUnite, x);
}
if (!reg.IsNull)
overall.Add(reg);
}
catch { }
}
Can't find what you're looking for? Ask the community or share your knowledge.