Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IRstuff on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

python code for simulate supports in ifc design

eng-tips.ecologist244

Civil/Environmental
May 28, 2025
1
adjacent_segments.py

# ───── dentro del for gid in (seg_A, seg_B): … ─────
if getattr(obj, "ObjectType", "") == "SUBEQUIPMENT":
print(f" → BOX adyacente detectada ({gid})")
# ► marcar el vecino como BOX ← NUEVA ÚNICA LÍNEA
if gid == seg_A: seg_A = "BOX"
else: seg_B = "BOX"


medir_span_conduit.txt

# 2.8) Avanzar al siguiente segmento ➜ parar si llega "BOX"
candidatos = []
for s in (next_B, next_A):
# ► FIN DEL SPAN si el adyacente ya viene marcado como BOX
if s == "BOX":
print(f" → fin de conduit por SUBEQUIPMENT (BOX) en {direccion}")
candidatos = [] # fuerza el corte del while exterior
break

if not s or s in visited:
continue
 
Replies continue below

Recommended for you

Part and Inventory Search

Sponsor