
Posts
-
RE: Insert Component by "Drawing"
@brad.curnow said:
- Choose Component (drop down list?)
- Get Insert point (click 0,0,0)
- Get Second point (click 0,400,0)
- Insert component (origin 0,0,0 scale Y to 0,400,0)
Something like that??
-
RE: [Plugin] ChrisP_ColorEdge
@oxer said:
I use Sketchup with my students in the technical drawing lessons and it's very useful draw the edges with different colors. Would be possible assign another different key to TAB to select the different colors on Mac?
For example in Ivy plugin the ALT and SHIFT keys work fine.Yes. Any key that works for you will do. However, there is one other problem that I found. On two occasions,
colr1 = results
andcolor1 = results
should becolr1 = results[0]
andcolor1 = results[0]
. These statements appear around line 233 and 754.Another problem is the number of Sketchup Colors far exceeds the number the inputbox pull-down can handle. It needs to be a WebDialog if you really want all the color choices.
-
RE: Insert Component by "Drawing"
No it wouldn't be that difficult but be advised that 'everything' in the component's definition gets stretched or shrunk. If you only want the length of the table top to change, that would require creating it 'on the fly'
What were your expectations?
-
RE: How to create a model "skin" for 3D printing
This is the weirdest model I've ever come across. It somehow contains faces whose outer loop vertices are not planar!! How can this possibly be?
I thought it might be a scale thing but scaling X 1000 made no difference.
-
RE: Moving all components to origin
Is this the 'before' or 'after'?
Could you post a couple of .obj files?
-
RE: [Plugin] Save Copy As Previous Version
@pcucka said:
Hi there!
For some reason I cannot seem to install this plugin on SU 2015.
Thoughts?Since this a '.rb' file, it can not be installed as an extension.
option 1 is to simply copy it to the Plugins folder and restart Sketchup. You should find '[jf]Save Copy As ...' under Files.
option 2 is to Zip the .rb file and change the .zip extension to .rbz. This file can be installed as an extension.
I was able to load and use this plugin in SU2015.
-
RE: [Code] Material picker
@dan rathbun said:
I looked in my 2016 Plugins folder and found what I had working last June 2016.
It seems to work for me on SU2016.
Thanks Dan. I have come up with a different solution to what I was attempting and it works with all versions.
-
RE: [Code] Material picker
I have been testing a plugin that uses the Material Picker code and in SU2014 it works very well but, in SU1015,SU2016 and SU2017, it works ONCE! I select material1 and material2 then execute some code that replaces material1 with material2. Attempting to redefine the materials fails although there are no errors reported in the Ruby Console. Closing the WebDialog and restarting the plugin does not solve the problem. Restarting Sketchup fixes the problem but for only one execution. Anyone have an idea as to why?
-
RE: [Code] Material picker
@dan rathbun said:
Don't miss the updated styling in
http://sketchucation.com/forums/viewtopic.php?f=180%26amp;t=65078%26amp;view=unread#p597010Yes, I copied that. Thanks.
-
RE: [Code] Material picker
I thought I had found just what I was looking for when I found this post but, no matter what I try, I can't get this to work. Hopefully you can explain why.
never mind. I just realized that I wasn't starting the observer. DOH -
RE: Get a list of File names on the input box
@davesexcel said:
[attachment=0:i9zhoo1z]<!-- ia0 -->FileListRuby.jpg<!-- ia0 -->[/attachment:i9zhoo1z]Thank you both for the answers,
Both
list = Dir["C:/Testfolder/*.*"].join("|")
and
Dir.entries("C:/TestFolder/")[2..-1].join('|')
They list all the files, but all on one line and the list ends up in the title with a blank textbox.` ents=Sketchup.active_model.active_entities
def slashify(path)
path.gsub(/\\|\|///,'/')
end#Dir.new('C:\TestFolder\').each { |file| puts file }
prompts = ["Find a file?"]
defaults = ["a"]list = Dir.entries("C:/TestFolder/")[2..-1].join('|')
input = UI.inputbox prompts, defaults,list, "File Name"
a=inputputs a
puts list`list, like prompts and defaults, must be an array
prompts = ["Find a File"] defaults = ["a"] list = [Dir.entries('c;/users/public/test')[2..-1].join("|")] input = UI.inputbox(prompts,defaults,list,"File Name")
-
RE: [Plugin] Face2Frame - Updated 27-Mar-2014
@billmorr said:
Hi
Is it just me or has this plug in stopped working in Sketchup Pro 2017???
Face to Frame updated for SU2017 compatibility. Download new version for PluginStore or blog.
-
RE: Coping with SU2017 entity handling changes
@tig said:
What is the nature of your code's error messages in the Ruby Console - typically mine have been telling me I can't do things to deleted_entities, or trying to get some value for Nil [where that entity is not found or is invalid] etc...
I'm getting the "deleted_entity" message. In Face2Frame, I need somehow to keep the selected face from being destroyed. I need to use this face in multiple subroutines.
-
Coping with SU2017 entity handling changes
Some of my plugins are having problems with how SU2017 handles entities differently and I am not sure what I need to do to over come this. I have tried using .clone and .dup but neither remedy the problem. Any guidance will be greatly appreciated.
-
RE: [Plugin] Face2Frame - Updated 27-Mar-2014
@billmorr said:
Hi
Is it just me or has this plug in stopped working in Sketchup Pro 2017???
No it's not just you. SU2017 strikes again. I will try to fix the problem if I can.
-
RE: Moving all components to origin
@dennis_n said:
Is there any way to automate this process? (I'll have to perform this in the future on many models (()
DennisProbably if you would list the manual steps you are using to accomplish the result you want along with some screen shots of the before and after.
-
RE: No Implicit Conversion fron String in Messagebox
@arcteo said:
OK! I got it to work, thanks to you!
Let me ask you: how did you learn Ruby scripting for Sketchup? Did you use books, videos, search forums? Any tips for new scripters?
I have a Ruby programming reference manual but most of what I have learned is from studying plugins done by others and visiting the Plugins and Developers forums. The Ruby API is also an invaluable tool.
http://ruby.sketchup.com/