The attributes are defined in the Technology, so an attribute can be created there with the required usage, then added. Any possible change in type can be set there for current ones.
Hello Steve, thank you for your reply. Perhaps my question was not precise enough.
I want to add an attribute to a design with a javascript. I can do that with
var Design = ActiveDocument(); Design.AddAttribute( "PCB", "FR4");
This works. I can see the attribute "PCB" in my technology and the attribute has the right value. Now i want to change e.g. the Show Name setting with my script. How can I do that?
Another question is how I can change the value of a built-in attribute.
var Design = ActiveDocument(); Design.SetAttribute( "<Design Title>", "test");
You cannot do either of those things in the current implementation (alter the Show Name settings of an attribute name, or set built-in design level attributes). This has been logged as enhancement 43835.