Multiple segment editor plugin
-
Maybe http://sketchucation.com/resources/pluginstore?pln=TIG_equalsegs to draw them like that initially OR my http://sketchucation.com/resources/pluginstore?pln=ArcCurve_set_segments to fix them later ? It has a Ruby Console tool
TIG.changearcsegments 64
using the new API method and a Plugins menu item in the newest version... -
About the number of segments
Curiously only Ruby console works and only for the Arcs!
Circles are ignored!
Menu makes nothing!
(tested on V7 free) -
Works fine for me in both v8 & v2013.
From menu OR Console for both Arcs & Circles
Any Ruby Console errors?It should change Arcs & Circles - BUT of course connected geometry can prevent changes being made - just like with Entity Info's limitations.
Try it on lone a lone unconnected Circle and report back...
-
For one a several arcscircles selected : all works fine in the Ruby Console!
For one a several arcscircles selected nothing happen with the menu!
For one a several circles selected this error is happening with Ruby Console
Error: #<NoMethodError: C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:65:in
set_segments=': undefined method
is_polygon?' for #Sketchup::ArcCurve:0x1104e140>
C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:65For one a several circles selected nothing happen with the menu!
All this is very curious because seems in the old past all worked fine
Maybe the new API ?(Tested with Su 7 free)
-
.is_polygon?
was introduced in v8 ?
This checks if a looped curve is a polygon OR a circle...I had made an API addition that was dropped when it became part of the new API...
So if you are trying to work on circles, then sadly it's >=v8 use only then...
UNLESS you also include this attached rb file in your <v8 Plugins folder!!![mod=:1cut554m]Removed the attachment - better version in next few posts...
TIG[/mod:1cut554m] -
with the new file test added
Must have the 2 rb files ArcCurve-set_segments=.rb and ArcCurveTests.rb installed ?
(it that I made)2 circles and an arc-circle selected
Menu : Nothing happenand with the ruby console
nothing change and this error message
TIG.changearcsegments 64
Error: #<ArgumentError: C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:61:in `is_loop?': wrong number of arguments(1 for 0)>
C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:61for only an arc-circle selected
Menu : Nothing happen
same error message on the ruby console
TIG.changearcsegments 64
Error: #<ArgumentError: C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:61:in `is_loop?': wrong number of arguments(1 for 0)>
C:/Program Files/Google/TGoogle SketchUp 7/Plugins/ArcCurve-set_segments=.rb:61 -
OK, another issue is .is_loop? is causing problems.
I've bodge up a new version - test it and report back...
It should now be compatible with this tool, other tools and v7 & other versions
-
You were very efficicient!
All is perfect! Menu or / and console
Works even you choose other things inside the selection!
(tested on SU 7 free)Bravo!
-
I've now incorporated this updated ArcCurveTests.rb in the 'segemnt-setting' tool's PluginStore RBZ for the tool, as it works 'backwards' down to v7...
-
@tig said:
I've now incorporated this updated ArcCurveTests.rb in the 'segemnt-setting' tool's PluginStore RBZ for the tool, as it works 'backwards' down to v7...
Thanks a lot for looking at this post and sharing your time generously for another good plugin, what's the specific plug in name again? Thanks, cheers!
-
SketchUp Plugins | PluginStore | SketchUcation
SketchUp Plugin and Extension Store by SketchUcation provides free downloads of hundreds of SketchUp extensions and plugins
(sketchucation.com)
-
@tig said:
SketchUp Plugins | PluginStore | SketchUcation
SketchUp Plugin and Extension Store by SketchUcation provides free downloads of hundreds of SketchUp extensions and plugins
(sketchucation.com)
I tried it.. wow, this is amazing. I can set it endlessly, from high to low and vice versa Thanks a lot!
Advertisement