@thomthom said:
would help if we got the whole error - with the line number and traceback
The file "test.rb" is in plugins folder.
That´s the whole code of test.rb
model = Sketchup.active_model
layer = model.layers.add "ABS_Grundriss_Wand2"
layer.color = [255,255,255]
The following error message appears if Sketchup start:
%(#FF0000)[Fehler beim Laden der Datei test.rb
undefined method `page_behavior=' for nil:NilClass]
That error appears in context with "layer-color=.rb" which is in
plugins folder too. If I remove "layer-color=.rb" from plugins folder
there is the following error message:
%(#FF0000)[Fehler beim Laden der Datei test.rb
undefined method `color=' for #Sketchup::Layer:0x6dfe1ec]
That error I understand.