Thanks, I wonder if I am doing something wrong. If move the grip to where I want the text changes, which I can correct by changing the dimension scale but is this right?
Posts made by Cheez
-
RE: Dimension extension lines
-
Dimension extension lines
Hi,
Is it possible to change the extension line on a dimension? When I click the second point and drag away to place my dimension the extension line stays to close to the point and looks like a part of the object I am dimensioning.
-
Storing Data
Hello,
How do you guys go about storing data between opening and closing your models?
If you have a class which draws say a box of a size entered by the user and you have several methods in your class for adjusting the box, obviously the object created in your script is deleted when you close down Sketchup, Also I haven't tested but is your object deleted if you select another tool?
Ideally being able to store everything in the model with no external files seems the more convinent approach, but I can see how the file size and model performance could be comprimised.
-
RE: Array woes
Thanks works like a charm.
I take it you added the @pts[0] to the test because @pts[] is not initialized with anything?
-
Array woes
Hello,
I have the following methods in a class, the idea being that the user is to click various points on a model and the tool knows the user selection is finished when a click matches the first click, so if they were tracing a square the 5th click will be the same as the first and trigger the puts(). However the puts() is always triggered by the second click even when it is definately not clicked in the same place.
Any advice much appreciated.def initialize @ip = nil @pts = [] end def activate @ip = Sketchup;;InputPoint.new end def onLButtonUp(flags,x,y,view) @ip.pick(view,x,y) if(@ip == @pts[0]) puts("Start Point Clicked") else @pts << @ip end end