Is there an equivalent of "Remove Parametrization" from the Python API?
-
I would like to unite a coil (created using the Template Tool) with a polyline (to close the circuit).
The Boolean operations are not available, however, since the coil objects are locked. Removing the parametrization of the coil works in the GUI but how to do it from Python?
-
No clue if you still need the answer to this, but a solution is:
import s4l_v1.model as model entities = model.AllEntities() # select the group of coils Coil_Group = entities['COIL 1'] # get the entities of in the group Coils = Coil_Group.Entities # loop over the entities and set the remove only to false # this should be enough to use boolean operations for Coil in Coils: Coil.ReadOnly = False # if you also want to remove the parameters from the coil group Coil_Group.Parameters.Clear()Cheers ^^
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login