The value for height and pen widths should be in database units if the last argument is epcbUnitDatabase, 80 seems small. Alternatively, use epcbUnitCurrent instead of epcbUnitDatabase.
Also, if you want to make the user layer visible programmatically, use the DisplayControl object, like this:
pcbDoc.ActiveView.DisplayControl.UserLayer(userLayerNameStr) = True
many thanks - you are right.. the height of text is too small
But I have a next question:
- Is possible to add some text into a NON UserLayerText? E.g. Assembly, silkscreen....?
Sure, you can call PutFabricationLayerText[Ex] for assembly or silkscreen text, or PutConductorLayerText[Ex] for text on a conductive layer.