I’m a bit stressed with the commands to trim or intersect surfaces or polysurfaces. I’m trying to make a very simple script that should give me the intersection curve of a vertical plane (wich belongs to layer1), and a polysurface (wich is in layer2). I’ve tried many things and commands, like “trimbreps”, “trimsurface”, “Splitsurface”… but no one Works. I put the script below, with the command “intersectbreps”. The thing is that it doesn’t give me any error or message, it simply doesn’t do anything. Do you know what could be the error? Thank you a lot
is expecting a single object ID in each of the first two arguments. Your variables s1 and s2 contain the number of selected objects and no object ID, and you are passing the two numbers as strings if you set the variables in quotes eg. by using “s1” or “s2” which cannot work.
If you are sure that each layer only contains a single object, just pass the first object returned from these two method results: