Solid not recognized from first lunch

Hi guys,
I don’t understand why it doesn’t see the solid in first instance. it works after I disconnect the last node and connect it back.
Any idea?

create slab edge.dyn (12.1 KB)

the idea is that I create a foundation slab and I want to add slab edge to it later on

First guess: because in Revit speak the first run is creating both the slab and the slab edge as a single transaction. Try adding a Transaction End after the first Python node to see if that fixes it.

1 Like

Thank you Jacob, it worked

1 Like

there appears another problem:
when I try to use the obtained solid for extracting its edges, it does first time, and the second time it brings a empty list :frowning:
the solid is still provided but can’t extract its egdes

for i in solid:
edges = i.Edges

import clr
import math
# Import Dynamo Nodes
import DSCore
from DSCore import *
#Import Revit Nodes
import Revit
#from Revit.Elements import *
from Revit.Elements import Family as EFamily
from Revit.Elements import FamilyType as EFamilyType
from Revit.Elements.Family import Types as ETypes
from Revit.Elements import Element as EElement
from Revit.Elements.StructuralFraming import BeamByCurve as EBeamByCurve

# Import RevitAPI
import Autodesk
from Autodesk.Revit.DB import * 
from Autodesk.Revit.UI import *
from clr import StrongBox

# Import DocumentManager and TransactionManager
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
from Autodesk.DesignScript.Geometry import *
import System
from System.Collections.Generic import *
import RevitServices
import sys
import System
pyt_path = r'C:\Program Files (x86)\IronPython 2.7\Lib'
import os

slab = IN[0][0]

doc = DocumentManager.Instance.CurrentDBDocument

#extract references
opt = Options()
opt.ComputeReferences = True
opt.IncludeNonVisibleObjects = False


#extract references
if True:
	solid = UnwrapElement(slab).get_Geometry(opt)
	for i in solid:
		edges = i.Edges

OUT = solid, edges

what am I doing wrong?