A component is named by adding a label. Look for Component.Label, if it is Nothing you can use Component.AddLabel, otherwise use Component.Label.TextString to get/set the name. If there is no label, the name of the component is the UID (unique ID).
thanky you. But why not call it "label" then ?
It is somewhat misleading that the real property name is not what is shown in the property window.
Unfortunately this leads to the next question :
During PCB forward I get some "duplicate name" errors on fractured parts.
As already mentioned the Name/Label is unset, i.e. UID should be taken into account.
How can it be that some UIDs are not unique ?
After deleting and replacing the parts in question (=getting new UIDs) the error is gone.
Any ideas ?