Warning:IronPythonEvaluator.EvaluateIronPythonScript fehlgeschlagen.
expected an indented block
This is the warning I get with that Python script, but I don’t see where I could add this indented block !!!
Could you help me ?
Warning:IronPythonEvaluator.EvaluateIronPythonScript fehlgeschlagen.
expected an indented block
This is the warning I get with that Python script, but I don’t see where I could add this indented block !!!
Could you help me ?
I found the solution ! “dim.IsLocked” after “else” need one more indented block, I dont know why but it works like that !
I answer to my own post if it can be useful to anyone !
I’ve tried to recreate your problem (next time it will more useful if you give it) and no issues raised.
I post here the code for your reference and use
L = IN[0]
lock = True
doc = DocumentManager.Instance.CurrentDBDocument
TransactionManager.Instance.EnsureInTransaction(doc)
for i in L:
dim = UnwrapElement(i)
if dim.NumberOfSegments > 0:
for ds in dim.Segments:
ds.IsLocked = lock
else:
dim.IsLocked = lock
TransactionManager.Instance.TransactionTaskDone()
OUT = dim