[Plugin] Simple Shell (scaled copy)
-
The answer is within.
-
Good job, Jim
-
@unknownuser said:
so the problem between the keyboard and the chair
Surelly
Does the plug works in any version or just in the last V8?I have this in the ruby console (i am in V6)
jf_simple_shell.rb Error; #<NameError; (eval);27; undefined local variable or method `jf_simple_shell' for main;Object> (eval);27
Edit: Works in the V7 !
so the problem is outside the keyboard and the chairSo does it possible to make something for working in the V6?
-
Jim, I tried running your plugin on a simple sphere in V8. I got the following:
Error; #<NoMethodError; undefined method `copy' for #<Sketchup;;Face;0xd44930c>> C;/Program Files/Google/Google SketchUp 8/Plugins/jf_simple_shell.rb;31;in `simple_shell' C;/Program Files/Google/Google SketchUp 8/Plugins/jf_simple_shell.rb;2 C;/Program Files/Google/Google SketchUp 8/Plugins/jf_simple_shell.rb;31;in `call' C;/Program Files/Google/Google SketchUp 8/Plugins/jf_simple_shell.rb;31
-
And some add for have a "complex result" ?
because now there is no inside the plug close function of open surfaces
And Scale function from Specific axis
-
@dave r said:
Jim, I tried running your plugin on a simple sphere in V8. I got the following:
Dave,
Are you selecting a Group? I've modified the menu to be grayed-out unless a single Group is selected.
-
@unknownuser said:
I have this in the ruby console (i am in V6)
This I don't understand at all. Nowhere have I used
jf_simple_shell
in the plugin. -
No. I just selected loose geometry. The input box came up so I didn't think I was doing anything wrong. Just got to work and downloaded it. Will give it a try. I assume this is a change from the version I downloaded at home? Could it be made to work on components, too?
-
@unknownuser said:
This I don't understand at all. Nowhere have I used jf_simple_shell in the plugin.
There is no possible conflict with forbidden names of variables in Ruby language?
Or maybe V6 Ruby engine is too old for new version? -
Did you type jf_simple_shell.rb in the Ruby Console? Because that has no meaning in Ruby.
It would be:
load "jf_simple_shell.rb"
Followed by:
JF.simple_shell
But there should be a menu: Plugins/JF Simple Shell available when a single Group is selected. Is the menu visible?
-
Jim, it does work on a group in V8. I must have missed the part about making a group.
And while I'm being a pain, would it be possible to have an option to make the inner shell part of the selected group/component instead of its own component or group?
Maybe it wouldn't be Simple Shell, then.
-
@dave r said:
And while I'm being a pain, would it be possible to have an option to make the inner shell part of the selected group/component instead of its own component or group?
Maybe it wouldn't be Simple Shell, then.
So you want a Group in a Group, or 2 Groups in a Group?
Either way, I don't think moving Groups in this way is directly supported by the API, and there may be a bug involved if not done right. But I'll see what can be done.
-
Actually, I'd rather not have the inner shell made as a group at all. I'd rather it be part of the selected group, or better in my case, component. Better, it could be an option to have it made into a separate component/group and if the selected thing is a component, make a component. If it is a group, make a group.
Here's a quick example of where it would be nice to have the shell be part of the selected C/G.
I made a simple sphere to test the plugin. After getting the shell, I decide to cut it open to make a sort of bowl. I had to explode the shell and then cut and paste in place the shell into the Sphere group before slicing off the top with a cutting surface. If the shell geometry was loose inside the selected G/C, there'd be no need to explode, cut and paste in place because the shell would be part of the selected component definition.
Not that it makes any difference but I used the circle from the Follow Me path as the cutting plane and didn't delete the edge of the circle.
-
Ah, version 6 compatibility - should be fixed now.
-
Yes I have the Menu JF Simple Shell
Here the code in Ruby Console after I select the group and call the plug by the Menu
and enter some measures in the Dialog box
(same result with the direct Ruby console commands)Error; #<ArgumentError; wrong number of arguments(2 for 1)> C;/Program Files/Google/Google SketchUp 6/Plugins/jf_simple_shell.rb;30;in `start_operation' C;/Program Files/Google/Google SketchUp 6/Plugins/jf_simple_shell.rb;30;in `simple_shell' C;/Program Files/Google/Google SketchUp 6/Plugins/jf_simple_shell.rb;2 C;/Program Files/Google/Google SketchUp 6/Plugins/jf_simple_shell.rb;2;in `call'
-
Works fine now in the V6
You rocks!
I don't retry with the V8 and V7
Edit : works also with the V7
-
@Dave, I would like to keep the created shell as a Group. This is so the operator can make sure the shell does not intersect with anything else before moving on. There may be scaling or other adjustments (snoothing, reverse faces) that should be done, too. This allows the operator the most choices on the next action.
One small thing I will have the plugin do is to select the created shell Group as the last step. Then at least it is ready to explode if you want.
For shelling a Component, right now you could open the Component, select all, make it a Group, shell it, then explode again. I know it's not optimal, but is one way to do it.
It's possible to make the plugin work on a selected surface as well as a selected Group, so then you could open the Component, make the selection, and generate the shell; which is fewer steps. This is something I want the script to do, so it'll be available soon either way.
-
Hi Jim
FYI: ?
I get this error loading SU 7.1 free with the script installed per your first thread posted.
Error Loading File jf_simple_shell.rb
C:/Program Files/Google/Google SketchUp 7/Plugins/jf_simple_shell.rb:1: syntax error
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
^
C:/Program Files/Google/Google SketchUp 7/Plugins/jf_simple_shell.rb:2: syntax error
<html xmlns="http://www.w3.org/1999/xhtml">
^
C:/Program Files/Google/Google SketchUp 7/Plugins/jf_simple_shell.rb:3: syntax error
<head>
^
C:/Program Files/Google/Google SketchUp 7/Plugins/jf_simple_shell.rb:5: syntax error
<title xmlns="http://www.google.com/ns/jotspot">Download Attachment</title>
^
C:/Program Files/Google/Google SketchUp 7/Plugins/jf_simple_shell.rb:6: syntax error
<style xmlns="http://www.google.com/ns/jotspot">
^
C:/Program Files/Google/Google SketchUp 7/Plugins/jf_simple_shell.rb:19: syntax error
content: ".";
^
C:/Program Files/Google/Google SketchUp 7/Plugins/jf_simple_shell.rb:70: syntax error
<body xmlns="http://www.google.com/ns/jotspot">
^
dtr -
dtrarch,
That looks like a HTML file.
Try right-clicking this link, then select Save Link As (or Save Target As) to download the file.
-
Updated to create a shell from selected surface, in addition to a selected Group.
Advertisement