🚨 Skimp | 25% Off until March 30 Buy Now

Alkategóriák

  • No decscription available

    20 Témakörök
    462 Hozzászólások
    HornOxxH
    @pilou said: More appetizing in chocolate! Eggs are good as well - but only very fragile when falling down in SketchyPhysics
  • Minimize WebDialog from code?

    5
    0 Szavazatok
    5 Hozzászólások
    412 Megtekintések
    D
    maybe I'm missing the point... @dlg.set_size(100,100) @dlg.set_position(100,100) @dlg.set_size(1000,1000) @dlg.set_position(100,100) can switch between 2 sizes at the same position... john
  • EntitiesObserver Weirdness

    3
    0 Szavazatok
    3 Hozzászólások
    316 Megtekintések
    K
    Hi Dan, Holding a reference does't make any difference. The only time the reference held by @m is actually stored is when the observer is assigned to Sketchup.active_model.entities. Also, I noticed that in cases where I have a new file, and I first add the observer to a group's entities collection, the observer does not alert onElementModified for the material. It only alerts for the face. Thanks, -- Karen
  • Trying to Display a Help File (Help.jpg)

    6
    0 Szavazatok
    6 Hozzászólások
    389 Megtekintések
    K
    This is what finally worked: def dowelHelp dowel_help_File = File.join(File.dirname(__FILE__),"K2_ToolsSupportFiles","k2ws_DowelHelp.html") UI.openURL("file;///#{dowel_help_File}") UI.messagebox("Dowel Help Complete " + dowel_help_File.to_s) end #def dowelHelp The html file was: <!DOCTYPE html> <html> <body> <p> <img src="K2_ToolsDowelHelp.png" > </p> </body> </html> Thanks Keith
  • 3D_text color

    4
    0 Szavazatok
    4 Hozzászólások
    359 Megtekintések
    J
    Jim/Dan, Thanks for the reply. Adding material (and back_material) to grp works for me. Understanding why this happens is even better.
  • [Code] PCFileTools

    27
    0 Szavazatok
    27 Hozzászólások
    5k Megtekintések
    Dan RathbunD
    BUMP
  • EntitiesObserver in SU 2014

    4
    0 Szavazatok
    4 Hozzászólások
    417 Megtekintések
    Dan RathbunD
    @kwalkerman said: Is there any other way to detect new objects in a model ... groups and component instances? Try the DefinitionObserver # onComponentInstanceAdded callback.
  • Help me solve a mystery

    11
    0 Szavazatok
    11 Hozzászólások
    828 Megtekintések
    D
    Is this editor will have the same behavior? http://www.alexschreyer.net/projects/sketchup-ruby-code-editor/ the author said it was based on the Ruby Web Console
  • Own Plugins in 2014

    5
    0 Szavazatok
    5 Hozzászólások
    373 Megtekintések
    F
    ok, my mistake i saved some values by write_default, at the start the plugin get them by read_default and in these values i had some non-utf-characters i changed the values and now it works like before Frank
  • Cross domain testing with ajax and JSONP

    7
    0 Szavazatok
    7 Hozzászólások
    913 Megtekintések
    G
    I was hoping to do a POST because I will be updating a database with my real JSONP call. Unfortunately when I do a check on the php side I see that the call is turned into a GET. I agree that a timeout and an on error function is a good idea. My main question is will this work with OSX Lion. I was hoping that someone could try it out and tell me.
  • Move instances softly, using the mouse

    4
    0 Szavazatok
    4 Hozzászólások
    372 Megtekintések
    D
    @dacastror said: ... I wanted to look at your plugins and I did not find them, look in the pluginstore and select search by author... you won't find them, there's a couple on limited beta release and a few of mac only dev tools that almost no-one else has even seen... I keep adding to them on the day I decide to release, then I want to test again, ect... etc... I PM the closest to release one if you want to comment on it... john
  • How to fetch all material in SKP via Ruby?

    2
    0 Szavazatok
    2 Hozzászólások
    281 Megtekintések
    TIGT
    You can only access the Materials that are loaded into the Model. You can iterate the list and get various aspects of the material. Sketchup.active_model.materials.each{|material| puts material.name puts material.display_name puts material.color puts material.alpha puts material.texture ### and so on... puts } I have included the puts so the info is shown in the Ruby Console but of course you can do other things with that... A Material's '.display_name' is not always the same as the '.name' [depends on its creation/source] A Texture can also be further probed to get info like its image, size and so on... Read the API http://www.sketchup.com/intl/en/developer/docs/classes.php If you must get details of SKM files not yet loaded [and not loadable using native API methods] then you could look at my SKMtools which offer many additional tools to import/export/interrogate SKM files etc... But please learn to walk before you run
  • How to check if two ComponentInstances are in contact?

    3
    0 Szavazatok
    3 Hozzászólások
    320 Megtekintések
    R
    Thank you sir.
  • ViewObserver doesn't fire messages on Zoom tool

    5
    0 Szavazatok
    5 Hozzászólások
    417 Megtekintések
    Chris FullmerC
    Yeah, I can see this too. Thanks for reporting it. We've got it logged in our bug database now Chris
  • Negative uniform scale

    10
    0 Szavazatok
    10 Hozzászólások
    712 Megtekintések
    R
    @tt_su said: That disappearing group (visually) sure looks like a bug. I'll file a bug internally (SU-29499). Meanwhile, the workaround is to specify scaling in X Y and Z explicitly. Ok, Thom. It is a small bug but it took me a long time to be assured it was not my code fault and try another way to do it.
  • Problem about ruby searching path in sketchup

    9
    0 Szavazatok
    9 Hozzászólások
    1k Megtekintések
    W
    @dan rathbun said: I've already written a patch, and TIG has updated it twice. See: Re: Sketucation plugin load error Thank you! I use the patch,but there is still different. when sketchup install in drive c,and start with shortcut in desktop Encoding.find("locale") #<Encoding;GBK> when sketchup install in drive c,puts the patch file in tools folder,then start sketchup with shortcut in desktop Encoding.find("locale") #<Encoding;ASCII-8BIT> This different will lead some error if filename uesed some Chinese character. The patch file is still missing something?
  • Gluing Text label (in creation / modification)

    2
    0 Szavazatok
    2 Hozzászólások
    268 Megtekintések
    TIGT
    I think the new Dim methods do allow you to get the 'entity tree' for a Dim's two start/end. You can also specify them when adding a new Dim - start=/end=... Unfortunately Text does not have the equivalent linking possibilities for its arrowhead. There are many Text methods missing - these were discussed at length at last year's BaseCamp - as were Dims, but only a few got through...
  • Can a Ruby tool return a value to a 'calling' program?

    5
    0 Szavazatok
    5 Hozzászólások
    424 Megtekintések
    Dan RathbunD
    @johnwmcc said: Is it possible or allowable to have module-wide variables that aren't global? YES. ALL of your plugins should be within a company or author namespace module. Each of your separate plugins would be within a sub-module of that toplevel module. Let us say for example your toplevel module is named McC and within that you define a @@last_point variable. You can also define getter and setter methods to set and access that variable within the toplevel module: module McC def McC;;last_point @@last_point end def McC;;;astPoint=(pt) @@last_point = pt.is_a?(Geom;;Point3d) ? pt ; Geom;;Point3d.new(0,0,0) end end # module McC OR you could define your shared functionality within a mixin module, and then include it within any of your sub-modules or classes, with which you want to share it with. See the the "Pick-Axe" book on Programming Ruby. It's in the Ruby Resources thread. AND also online in HTML format.
  • WebDialog encoding bug found!

    44
    0 Szavazatok
    44 Hozzászólások
    3k Megtekintések
    G
    Sketchup 2014 Mac 10.9.2 testing text in Simplified Chinese [image: 023i_encoding_issue_14.0.4899.png]
  • Context menu in Materials Window (Inspector)?

    2
    0 Szavazatok
    2 Hozzászólások
    357 Megtekintések
    tt_suT
    Afraid not. But I think it sounds like a useful thing. I'd recommend you file a feature request. (Please include use case - it helps so much more than just the technical request.)
  • Why does this code break?

    9
    0 Szavazatok
    9 Hozzászólások
    720 Megtekintések
    J
    The advantage of code tags is they can easily be copied and pasted in a code editor, or one of the SketchUp console dialogs. I have my editor and SketchUp set up[1] where I can run the pasted code in SketchUp with the push of a key. So testing posted code is fast and easy - copy, paste, run. That's why it's important to post "run-able" code - leaving variables and constants undefined makes it harder to help. [1] https://github.com/noelwarr/su-tunnel

Advertisement