Message 1 of 3
Not applicable
04-21-2021
12:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to create a script that creates a floor for a room but ignores room separators.
Here is what I have so far:
var boundarySegments = room.GetBoundarySegments(opt);
if(boundarySegments.Count != 0)
{
var points = new List<XYZ>();
foreach(var boundSeg in boundarySegments[0])
{
if(userInfo.IgnoreSeperators)
{
var element = doc.GetElement(boundSeg.ElementId);
if (!(element.Category.Id.IntegerValue == BuiltInCategory.OST_RoomSeparationLines))
However (element.Category.Id.IntegerValue == BuiltInCategory.OST_RoomSeparationLines) still lets the Room Separator through.
Any ideas on how I can catch an element if it is a room separator?
Solved! Go to Solution.