ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Webdialog

    6
    0 Votes
    6 Posts
    365 Views
    M
    Hello, Thank you very much, I am going to look at that.
  • [Code] Parsing arithmetic formulas

    6
    0 Votes
    6 Posts
    2k Views
    K
    I used this code in my joint tools and found it very useful as the user could enter equation if they do not know the actual value. However I could not make it work if the user entered the " for inches as sketch-up does. Keith
  • Problem with Joint Pushpull

    4
    0 Votes
    4 Posts
    443 Views
    fredo6F
    @hrland said: I have the same problem and when I made the change it won't let me save, tells me "access denied". Any way to get this fixed? Thanks. The problem derives from a wrong installation: i.e. For whatever reasons, the image files JPP_....png icon files cannot be found in the JPP_Dir_xx directory. I suggest you check if the files are present. Fredo
  • Moving object in steps

    6
    0 Votes
    6 Posts
    163 Views
    P
    i got it, will post solution later
  • Get form data from webdialogs?

    27
    0 Votes
    27 Posts
    1k Views
    P
    I always do as chris does: collect in one string, send to SU, split there if needed
  • Section Plane

    14
    0 Votes
    14 Posts
    660 Views
    P
    ThomThom, thx for the answers! With auto-creation I mean this: The creation through ruby of a section plane in each of the 20 groups that are in the model.
  • (Windows) Plugins Locations

    5
    0 Votes
    5 Posts
    323 Views
    Dan RathbunD
    @thomthom said: @jim said: @dan rathbun said: User acces to the AppData folder heirarchy on Win 6+ is problematic. Reference? [Citation Needed] .. what for ? Just try it. I'm not saying there is not a solution. But you first need to recreate the situation. 1) Create a new (temporary,) user account on your Win7 machine called "JoeUser" or whatever. Do not give this new user account admin privileges. Just a standard user like in a work or school setting. 2) Now try and access the %APPDATA% path in Windows Explorer. (Heck.. even try it as an Admin,, it's still a PITB !)
  • Linux and Mac Virtual Key Codes

    2
    0 Votes
    2 Posts
    1k Views
    Dan RathbunD
    See these threads: My Apple Keyboard VK_KEYS onKeyDown repeat parameter problem Keyboard translation PC / Mac
  • Ruby rbconfig.rb

    2
    0 Votes
    2 Posts
    430 Views
    Dan RathbunD
    Should be the same, BUT the values of the Config::CONFIG hash attributes WILL DIFFER. The problem with the above statement is that rbconfig.rb is written by mkconfig.rb, (when the Ruby was built,) which may have itself changed over the various versions. Also, on Windows, some users install a one-click installer edition, that was not built on their own computer, and they may install it in a custom path, which may invalidate some of the values in the rbconfig.rb file. AND, only machines with a full Ruby install will have the rbconfig.rb file (in the platform subdir, of the Ruby lib dir.)
  • Model's save method, about chinese filename and path

    6
    0 Votes
    6 Posts
    479 Views
    O
    I would like to support chinese path as Sketchup's open_file method, model's save method why not support it?
  • Make A Component Using only Ruby code

    2
    0 Votes
    2 Posts
    299 Views
    J
    Hi Steve, You seem to have a grip on it for the most part. Instead of creating the geometry before creating the ComponentDefinition, you should create the Definition and then add entities to its Entities collection. You can use ComponentDefinition#save_as to save it out to disk. new_def = Sketchup.active_model.definitions.add("My Component") new_def.entities.add_face(...) new_def.save_as("C;/My Component.skp") model.entities.add_instance(new_def, [0,0,0])
  • Where to Store User Settings?

    29
    0 Votes
    29 Posts
    2k Views
    K
    @thomthom said: That would then not be User data - but Model data. Two very different things. Looks like I interpreted thread subject in a context of my own thoughts I mean, I was going to suggest to use template for storing user settings data. [image: EVA0_template.png] It is less elegant than just click "OK" button in "Settings" dialog of the plugin, of course But the user can save his own presets in template file, add description to it, then it will be possible to revert back to any previously saved configuration. UPD. The point is that I was thinking about abstract "application user" not the operating system user. Application means plugin here. So I thought that application (plugin) usually runs "system wide" (not in "per user mode") and the problem is what is the best way to persist application settings (i.e. user preferences *application user here again). Storing plugin settings right in document allows user preferences persistence across different machines and even across operating systems in theory (when I say "user" I mean plugin user). So user can take his *.skp file anywhere and continue working with it on any device that has SU and plugin and he does not have to care about configuring plugin again on each device.
  • How to do a crossing box select by ruby?

    6
    0 Votes
    6 Posts
    247 Views
    thomthomT
    You could perhaps do a simplified version and map the boundingbox of the groups to a cached array, then use Geom.point_in_polygon_2D to see if any of the points are within the selectionbox of your custom tool. It will miss the cases where a selectionbox crosses the group's boundingbox but the corner points are outside, but if you start to do intersection on all that you might very well end up with a sluggish tool. Might be good enough?
  • Undo stack question

    6
    0 Votes
    6 Posts
    279 Views
    Dan RathbunD
    You are correct ... ... a Layer is a subclass of Entity, so perhaps the EntityObserver might fire the onChangeEntity() callback. You'd have to try it. I do not know if it will work.
  • Unique identifier for model?

    9
    0 Votes
    9 Posts
    375 Views
    D
    Yes the problem comes when you have multiple SU processes running (I'm guessing users do this more on OSX because of the way windows are managed). So when the plugin starts and tries to delete tempfiles, there could be another SU using it. Hence the file lock.
  • SketchupExtension path question

    4
    0 Votes
    4 Posts
    218 Views
    D
    OK, thanks. Good to know.
  • JS - HTML error

    6
    0 Votes
    6 Posts
    171 Views
    Chris FullmerC
    Excellent, thanks Dan. It is working as expected, but I'm still very confused what the error was. This code works: id = "113" t = %Q^<form><input type="button" value="Click me!" id="#{id}" onclick="change_time(this.id)" /></form>^ But this one causes errors: id = "113" t = %Q^<form><input type="button" value="Click me!" onclick="change_time('#{id}')" /></form>^ As I've been playing with it over and over, it seems everytime I introduce the single quote into the function arguments, it crashes. But I'm doing it that was in other very similar onclick functions. Oh well, its beyond me. Thanks for helping everyone, I've got a wokring version now! Chris
  • Accessing Match Photo feature with the Ruby api

    4
    0 Votes
    4 Posts
    336 Views
    Dan RathbunD
    @jrudd said: Any idea what the make_pano_pm.rb file does? @unknownuser said: Creates a set of photo matched pages given a series of panoramic images. Also creates a box (using create_box) which makes it easier to start sketching over top of the images. In the last edition of CatchUp (#5), was a article entitled: "INTERIOR DESIGN how to make a look around background" (midway thru the zine, just after "MAYOR MIKE’S GADGETS" section.) http://78.47.159.221/CatchUp_5_2011_10.pdf
  • Import image with only front face visible.

    3
    0 Votes
    3 Posts
    156 Views
    J
    @tig said: Add the Image inside a new empty group group.entities rather than the model... Manipulate the Image size etc as desired Explode the Image. You now have a face inside the group.entities Find the face in the entities - there's only one. Leave the face.material as it is [i.e. the image now made into a texture]. Make face.back_material=nil to use the 'default back material' or say use face.back_material="Black" to make it 'black'... That did it! Genius, TIG!!
  • BoundingBox.depth. Accurate?

    4
    0 Votes
    4 Posts
    144 Views
    jolranJ
    Ah, thanks. Doing some tiling with thoose mesurements. Should be ok then.. @unknownuser said: The internal unit is converted to user units only in the UI That's why I got back different results in the ruby console when changing the Model precision. Maybe that goes for some other mesurement as well, havent just thought about it until now. @unknownuser said: When dealing with user units, make the Length class do the work for it. And make sure you know if your objects are Floats or Lengths. I'll try to stick to that.

Advertisement