Submitted by AJIT on Tue, 05/27/2025 - 11:36
Forums:
I’m looking for a code that lets the user manually select curves, surfaces, points, axes, and planes, and then automatically assigns them a specific color and layer through the script

SelectTaggedObjectWithFilterMembers & DisplayModification
Check out the selectionManager.SelectTaggedObjectWithFilterMembers.
You can input a list of filtermembers, which allow you to specify that the user can only select curves, axes, planes etc.
You can then use NXOpen.DisplayModification to set color and layer.
example in python: