sketchucation logo sketchucation
    • Login
    1. Home
    2. Cheez
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    C
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 5
    • Groups 1

    Cheez

    @Cheez

    10
    Reputation
    1
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Cheez Unfollow Follow
    registered-users

    Latest posts made by Cheez

    • RE: Dimension extension lines

      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?

      posted in LayOut Discussions
      C
      Cheez
    • 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.

      posted in LayOut Discussions layout
      C
      Cheez
    • 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.

      posted in Developers' Forum
      C
      Cheez
    • 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?

      posted in Developers' Forum
      C
      Cheez
    • 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
      
      
      posted in Developers' Forum
      C
      Cheez