Hello there, I’m trying to develop a Dynamo and Python code to create a cropped surface within the same file as the source surface.
Due to my workflow it’s a waste of time do the same process over and over again (save file, select boundary, select existing/ create new file/ name/ etc). So, I’m developing a Python code based on the C3D 2025 API’s TinSurface.CreateByCropping(Database, String, ObjectId, ObjectIdCollection, Point2d) Method
So far I have written the following Pyhton code:
However, after executing it, Dynamo retrieves the following message:
"Warning: PyhtonEvaluator.Evaluate operation failed.IdentationError : (‘expected an indeted block’,(',35,17,‘src_surface = tr.GetObject (srcSurfaceId)\n’)).
Has anyone tried this before?. Can anyone please help me to troubleshoot this?