Hi everyone, I'm looking for a way to set the Scoping Method and Named Selection of an Imported Load Temperature Object automatically with a pymechanical script. Can anyone help me with that? Many thanks in advance.
I believe you're actually doing Mechanical Scripting (and not PyMechanical). You don't need to change the scoping method to named selection when you are using scripting. Simply scope to a named selection and that'll do the trick.
One method to do that would be to grab the named selection by its name, provided it's unique, and use:
importedload.Location=ExtAPI.DataModel.GetObjectsByName("MyNamedSelection")[0]