Thank you Brian.
MichaelT: Ok, properties-Listing is not too difficult.. There is a nice example here:
https://forums.autodesk.com/t5/fusion-360-api-and-scripts/where-to-find-specific-id-in-itembyid/m-p/...
Now I have the properties, but how do I set them?
If I do the following code, I get the message 'None' . There is no Fusion-failure-message. So I guess I called the property in the right way. But there was not any surface_rotation setted, this is why I might get the value "None" in my message. But how do I set a rotation-value?
material = _app.materialLibraries[3].appearances.itemByName('Oak')
new_component.bRepBodies[0].appearance = material
testMessage = material.appearanceProperties.itemByName('surface_rotation')
_ui.messageBox(str(testMessage))
The mean lines by setting a new collor for a appearance are in Brians example:
colorProp = adsk.core.ColorProperty.cast(newColor.appearanceProperties.itemByName('Color'))
colorProp.value = adsk.core.Color.create(255, 0, 0, 0)
But surface_rotation is an other property object type. Perhaps: adsk.core.FloatProperty.cast(prop) ??
If I try:
properti = adsk.core.FloatProperty.cast(material.appearanceProperties.itemByName('surface_rotation'))
properti.value = adsk.core.ValueInput.createByReal(18)
I get the failure: 'NonType' object has no attribute 'Value'