Hi @aelqabbany. Yes, I believe this is possible. Much the same way that the NamedEntity system works, that allows you to right-click on Faces, Edges, & Vertices on your part model, and assign names to them, but just not with that same user interface tool. Behind the scenes that tool assigns an AttributeSet & Attribute to the selected object. That attribute has a very specific name, and is put in a very specifically named AttributeSet on that object, then the Attribute's Value is set to the name you specify. Then to find that same object, you find that specific AttributeSet (by its name), which contains that specifically named Attribute, that has the Value you specified. The object that the AttributeSet is attached to is the object you are looking for.
You will notice that the SketchLine3D object has a Property called AttributeSets. That's where you can create a new, specifically named AttributeSet within, then a specifically named Attribute within that new AttributeSet, then set the name you want as the Attribute.Value. Does all that make sense to you?
Wesley Crihfield

(Not an Autodesk Employee)