That worked wonderfully too!
Thanks cotty!
That worked wonderfully too!
Thanks cotty!
Hmmm... I have a component called "2DTREE-CEDAR01". When I input your line of code with that replacing 'MyTree':
n='2DTREE-CEDAR01';m=Sketchup.active_model;ps=m.selection.grep(Sketchup::ConstructionPoint);d=
I get the following error:
Error: #<SyntaxError: <main>: syntax error, unexpected end-of-input
...Sketchup::ConstructionPoint);d=
... ^>
SketchUp:1:in `eval'
Thanks for the response TIG. It sounds like a great solution. Where would I paste that line of code? Is this an option in SketchUp?
I am able to import a GPX file into Adobe Illustrator CS through a GIS plugin. It's showing tree locations on a specific site. When I export a CAD file of points, even if I change them to symbols in Illustrator, they are imported into SketchUp as Guide Points.
Is there a way to place a component using a guide point as reference? Similar to the "replace selected" in the components window. Or maybe there's a plugin that would let you "place component at guidepoint."
Thanks,
Fraser
Note I've tried this using QGIS to export as a DXF too with the same result.
I'm using SU on an iMac with 32GB RAM, OSX10 and SketchUp Pro 2017.
I have two separate groups (2 sets of tables grouped chairs) within a sketchup model. I want to be able to select the corner of one table and line it up with the corner of the other table. When I go to select the group (either table or chair) the corner snap (to select it) doesn't show up. If I double click to edit the group I can select any group or component corner. I've tried Rebooting as well as exploding the group and regrouping it, but nothing seems to work.
Does anyone have an idea why these two groups aren't selectable but the other groups and components in my model are? What can I do to fix it... I'd rather not redraw it...
Thanks,
Fraser
Hello,
I'm looking for a way to create a "Smart Tree" or 2.5d tree in sketchup. I'm not quite sure how to start. I'd like to either create it from scratch or modify something from the 3D warehouse so that I can use local species. Can anyone point me to a good tutorial on how to do that?
Performance-wise I'm looking for:
Thanks,
Fraser
Hi Again,
Is there any way to get this plugin working for me? As you can see I've got a lot of trees, so it'd be great to avoid doing this manually again in the future.
Thanks for all your help so far.
Below is ThomThom's assessment of the issue.
Fraser
@thomthom said:
@didier bur said:
Does this not work on a Mac the same way than on a PC ??
As you see in his error report, the plugin is trying to look for the file at:
/Users/Fraser/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/CompoSpray
while the plugin itself is located under:
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/compoSprayToolbar.rb:14
OSX has a system Library folder and a User Library folder that looks very similar, and some users end up adding plugins to User Library. And I think Podium installs there.
And then you can get issues withSketchup.find_support_file
The best way to determine the base path of your supporting folders are:
File.dirname(__FILE__)
In your case it'd be:
@path_cs = File.dirname(__FILE__) + "/CompoSpray/"
However, that won't work in .rbs files.
In Vertex Tools I made the uncrypted loader, which was a regular .rb file, determine the paths and assign it to constants which the .rbs files could use.I've never had any path issues that way, and the plugins can be installed anywhere on the system. (if the user prefers to install in a custom location.)
So is there a way I can update my plugin to get it to work or do I have to wait for an update? Can I change some code? I looked for the code attached to Didier's post but couldn't find it in any of the files I had. Again, I'm not super familiar with code so it may be somewhere else.
Any help would be appreciated. Thanks for the discussion and attempts to resolve my issue. Much appreciated.
Fraser
The only files under the user library is a podium script. Can I edit one of the files in the folder (CSS) to make sure it looks in the HD library folder rather than the user library folder? I'm not sure how a ruby script works, but this would be a great one to get up and running.
Thanks for the help so far,
F