Code problem between windows-versions ??
-
hi,
i have a strange problem:in windows vista / skp 8 and skp 6 this peace of code (within the whole ruby) works perfectly (the group is copied, named and transformed copy-times:
angle = @arena_angle_half*2 puts angle entities = @group_stair.entities group_arena = entities.add_group for copy in 1..@arena_angle_devider angle1 = copy * angle group = @group_stair.copy 3863 group.name = "arena-copy" + copy.to_s tr = Geom;;Transformation.rotation(point,vector,angle1) @entities2.transform_entities(tr, group.entities.to_a) end
to my surprise, it does not work on
win 7 / skp 8
win xp / skp 8this error is reported in the console
Error: #<NoMethodError: undefined method
name=' for nil:NilClass> C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/01.rb:3863:in
arena'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/01.rb:3860:ineach' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/01.rb:3860:in
arena'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/01.rb:212has anybody an idea, what this problem could be?
thank you very much!
stan
-
Do you have the same plugins installed in all the SketchUp versions. sounds like you are suddenly getting a nil from @group_stair.copy - there might be some plugins that override this and change it's behaviour.
-
hi tt, although i synchronise the plugin-folders carefully,
making the win7 folder empty in deed was the solution.so now i have to find out , which plugin has a conflict and can correct my code.
it was the first time, something like that happend. interesting!
thanx a lot for your "expert's eye".
stan
ps: i just wonder, where to send all the cookies afterwards,,,,
-
You try to search the RB files for "class Sketchup::Group" or "def copy" - hoping the culprit is not scrambled. Might same you some investigation time.
-
hi,
problem solved, it was sketchy physics. i will try to redifine my code later, maybe i will find the problem.
stan
Advertisement