This script does not seem to be available. Anyone know where I can get it?

Posts
-
RE: Time Display in Shadow Animation
-
RE: Let's have a Hardware speed test for SU
I agree, Mike. But I don't know of any other way to test SU performance. And I have to say that the configuration that gives me the best benchmark numbers is definitely faster in everyday use. Especially orbiting and zooming with the space navigator.
-
RE: Let's have a Hardware speed test for SU
Not sure why, but If I move the big display to the secondary port on the secondary card, it runs really well. Over 45 fps, at 2560x1600. That's the x4 slot, shared with another monitor. Go figure.
-
RE: Let's have a Hardware speed test for SU
I find this frame rate is very dependent on the window size. I just got a 30" display with 2560x1600 resolution. With the window maximized, I get 16 fps. If I shrink it to about half, I get 20 fps. I ran it several times on each setting to get an average.
Core2 Duo E8400 3Ghz
GeForce 9500 GT (x2)But here's what's really puzzling me:
One of the GPUs (sitting in a PCIE x16 slot)is driving the big monitor. The other (sitting in a PCIE x4 slot) is driving two 1050x1680 displays. If I size the sketchup window to span over and fill both the small displays, I get over 20 fps. If I then drag that same window onto the big display, I see much lower rates, around 15 fps. Anyone have an idea what's happening? I'm disappointed with the frame rate compared to what I had on the smaller monitors.
Also, we should run the test full screen, and report our screen resolution, so we are comparing apples to apples.
-
RE: Win32ole issues
My Notebook is running Win7-64. It runs exactly the same there. No Bugsplat.
-
RE: Win32ole issues
And no, I did not use any of the 64-bit code you put in the second code window.
-
RE: Win32ole issues
Works just the same. I now get the 'file already exists/are you sure?' dialog from excel, and if I delay, it will still cause the 'server busy' popup in sketchup. But no Bugsplat. You may want to try xls.close(1), which will always save and not ask. That will avoid the 'server busy' popup.
SU v8M2, Win VistaSP2 64.
-
RE: Win32ole issues
Hi Tig.
I tried this on my machine (Vista64), and it does not bug splat. I had to add require('win32ole') to get it to work.
One thing I noticed is that I get a popup from Excel asking if I want to save the changes I made. If I let that sit unanswered for a while, I get a "server busy" popup from Sketchup, saying "this action cannot be completed because the other program is busy".... Maybe you want to try xls.saveas("whatever.xlsx") -
RE: "something minor is messed up in your model"
Thanks, TIG. That fixed it.
BTW, to anyone else lurking here, Layer0 is referenced with a string:
ents.each {|ent| ent.layer = "Layer0"}
but:
ents.each {|ent| ent.layer = 0}
does not work.
-
RE: "something minor is messed up in your model"
Thanks for that, Tig. Here's the result:
@unknownuser said:
Results of Validity Check.
Non-default layer found for CComponentDefinition (106082) - fixed
Not sure what that means, though. In the script, I create a new layer, add a definition to the model, then assign the definition to that new layer, along with all the entities in the definition:
peg_layer = Sketchup.active_model.layers.add "Pegs for Presentation" o = Geom;;Point3d.new(0,0,0) v = Geom;;Vector3d.new(0,0,1) pd = model.definitions.add("pegette") pd.layer = peg_layer ents = pd.entities.add_circle(o, v, 0.5, 16) ents.each {|ent| ent.layer = peg_layer}
I want all the instances of the definition (which I create later) to be on the new layer. Should the definition itself be on the default layer?
-
"something minor is messed up in your model"
I get this message from Sketchup when I try to save a model that has had geometry added by my script:
"something minor is messed up in your model...".
I click OK to fix it, and everything is fine, but I can't figure out what I'm doing that causes this. It happens consistently. Anyone else seen something like this?
-
RE: Full Screen Sketchup
Two Monitors. One has the drawing window, the other has all the toolbars and windows.
-
RE: Same Face in Group plane not same
Global coordinates vs local coordinates?
-
RE: Move an edge?
Misunderstood how entities.transform_entities works. It's a method of an existing entities container (in my case, a comp def). You pass it the transform, and an array of entities to be transformed. Moving forward again!
-
RE: Move an edge?
OK, So I need to put all the edges I want to move into an entities container, and then use the container's transform methods. Can I put existing geometry into an entities container? It seems that the only way to add an edge is to pass in the endpoints, and it will return the resulting edge. Doesn't seem like this will add the original edge, but rather create a new one.
-
RE: Move an edge?
@dan rathbun said:
Only subclasses of
Sketchup::Entity
can be stored into the model. Most of what you "see" in a model, are subclasses ofSketchup::Drawingelement
(which is a child class ofSketchup::Entity
.)You would need to transform a
Sketchup::Vertex
, not aGeom::Point3d
object.But Sketchup::Vertex is not a subclass of Drawingelement, and does not respond to transform!
-
Move an edge?
This seems so basic, but how do you move an edge? It does not have a transform! method. I tried transforming the two point3d objects of the two vertices, but could not get it to work.
-
RE: Safely extend sketchup class
Well, I wouldn't overwrite an existing method. And what I have in mind is a little more complicated than .between? Mine would be Point3d.same_side_of_plane?(Point3d, plane). But I could just write points_on_same_side_of_plane?(Point3d, Point3d, plane), which is safer, if somewhat less elegant.
-
Safely extend sketchup class
I'd like to extend the functionality of Geom::Point3d by adding new methods. But of course I'm worried about conflicting with someone else who has already added the same method. I've read here before that extending a sketchup base class is discouraged for that reason. Is there a safe way to do this? Can I keep my own methods in my own module, or my own namespace somehow?
If I create my own subclass of Point3d, then my new methods won't work on objects that I get from examining existing geometry. Say I'm looking at an Edge, find one of the vertices, and then want to do something with vertex.position. It's type is not of my subclass, so I can't call my special methods.