Sketchucation Tools 5.0.7 | Licensing improvements and bug fixes Learn More

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
  • Plugins Locations

    19
    0 Szavazatok
    19 Hozzászólások
    2k Megtekintések
    Dan RathbunD
    .. and the nested module definition has no end closure.
  • Odd behavior of Draw

    17
    0 Szavazatok
    17 Hozzászólások
    1k Megtekintések
    S
    @sdmitch said: Well I have tried all the suggested combinations and nothing seems to solve the "problem". Perhaps it is just my 7 year old laptop!!!!! Since these draw operations go directly to OpenGL, this explanation seems quite possible! There could be a bug in either your laptop's OpenGL drivers or an incompatibility in how SketchUp uses OpenGL.
  • Save thumbnails components

    2
    0 Szavazatok
    2 Hozzászólások
    359 Megtekintések
    thomthomT
    http://www.sketchup.com/intl/en/developer/docs/ourdoc/componentdefinition#save_thumbnail
  • I have a question, about Model.import of sketchup API

    8
    0 Szavazatok
    8 Hozzászólások
    891 Megtekintések
    Y
    @thomthom said: Do you get any errors? What format are you trying to import? .skp? I import a dae file to sketchup by api. but i need to click to position. is there a way to position it automatically?
  • SVG file Import (importing)

    20
    0 Szavazatok
    20 Hozzászólások
    26k Megtekintések
    M
    @catalyst said: Hi danbig, You need to open your SVG file with inkscape. Go into Inskcape's preferences Under "Tools" select "SVG output" Under "Path data" - uncheck "Allow relative coordinates" Right below that - check "Force repeat commands" Be sure to save the new preferences by hitting the little triangle-in-a-box button in the top right corner of the preferences window. Once you do that, you can save Plain SVG files and import them successfully into Sketchup for further manipulation. I HAVE NOT BEEN ABLE TO SUCCESSFULLY IMPORT A PLAIN SVG FILE INTO SKETCHUP MAKE 2014 USING THIS METHOD. IS THERE ANY ADDITIONAL STEPS I NEED? GOAL IS TO INPUT A SVG FILE (THE WORDS "PEACE" "ON" AND 'EARTH" WHICH HAVE BEEN TRACED AND WELDED TOGETHER IN TO THREE INDIVIDUAL SVGS.) OF A WELDED WORD INTO SKETCHUP AND EXTRUDE IT TO MAKE A 3D 'BOX' ABOUT 2" THICK.
  • Change of style in undo stack?

    7
    0 Szavazatok
    7 Hozzászólások
    715 Megtekintések
    Dan RathbunD
    @xorunison said: This is a smaller but somewhat annoying problem. The situation is this: I have a few Plug-Ins which allow the user to switch between different working modes. To do so each Plug-In with its own button does 2 things: 1: Change the current style (between my predefined styles Construction and Display) 2: Turn on/off certain layers This sounds like a perfect job for scenepages. One for display, one for work. Each has their own styles set, and each has their own set of off layers, and on layers. The button(s) could simply switch between the pages (if you did not want to waste the space for page tabs.) The scenes could be preset into a template model.
  • Returning a value from a Class method

    17
    0 Szavazatok
    17 Hozzászólások
    1k Megtekintések
    Dan RathbunD
    @johnwmcc said: If you are storing Point3d objects, would you need @contents.to_a first, before .max.y or min.y? The min and max methods come from the Enumerable mixin module. Enumerable is mixed into Array, but not Geom::Point3d, nor Geom::Vector3d. To see what modules may be mixed into a class, use *Classname*.ancestors So to answer the question, yes, or if using your own collection class, you might mix in the Enumerable module into it. @johnwmcc said: It does, for me. It was intended to select out the y coordinate (a scalar) from the point coordinates. ary = [pt1, pt2, pt3, pt4, ... ] To select the point which has the minimum y value, from an array of points, do this: miny_pt = ary.min {|a,b| a.y <=> b.y } To select the point which has the maximum y value, from an array of points, do this: maxy_pt = ary.max {|a,b| a.y <=> b.y } ... then get your thickness: thickness = maxy_pt.y - miny_pt.y To translate: [ruby:247d5h9w]ary.max {|a,b| a.y <=> b.y }[/ruby:247d5h9w], into plain English: "iterate [ruby:247d5h9w]ary[/ruby:247d5h9w], each loop compare the current member ([ruby:247d5h9w]a[/ruby:247d5h9w])'s y value, against the next member ([ruby:247d5h9w]b[/ruby:247d5h9w])'s y value, and return the member that resolves to the maximum." The comparison is defined using Ruby's comparison operator, [ruby:247d5h9w]<=>[/ruby:247d5h9w]. Remember that the entire member is returned, so later you still need to ask for just the y value. @johnwmcc said: I wasn't sure if the [ruby:247d5h9w].x[/ruby:247d5h9w] and [ruby:247d5h9w].y[/ruby:247d5h9w] methods would work on arrays, but they seem to in my example code. Because the SketchUp API adds those methods to the Ruby Array class. (It is part of making Ruby arrays compatible with API points and vectors.) @johnwmcc said: I'm unclear about the near-but-not-complete equivalence between SU [ruby:247d5h9w]Point3d(x, y, z)[/ruby:247d5h9w] and [ruby:247d5h9w]Array[x, y, z][/ruby:247d5h9w]- it seems I can use either a lot of the time, but not quite always! Read the API regarding how it adds to Array class: http://www.sketchup.com/intl/en/developer/docs/ourdoc/array
  • &lt;canvas&gt;

    19
    0 Szavazatok
    19 Hozzászólások
    2k Megtekintések
    D
    @Greg updated script runs from the top... @TT please right up the debug info... The biggest hassle I find is injecting Web Inspector on jQ UI's [especially from .rbs files]... john
  • Problem installing joint push pull

    6
    0 Szavazatok
    6 Hozzászólások
    4k Megtekintések
    K
    thanks for (jointpushpull) cause i have the this problem....but i want a resolve for( tools on surface) as fast as you can ....pleassssssssssse cause i have Graduation project and i use sketchup to do it cause sketchup is wonderfull....thanks
  • SketchUp and Rubies on Linux (yes, it works)

    71
    0 Szavazatok
    71 Hozzászólások
    44k Megtekintések
    bomastudioB
    @aerilius said: In the meantime Wine has reached a state where SketchUp can be used without Microsoft's Internet Explorer, but with Wine's own opensource Internet Explorer replacement that is based on Firefox/Gecko. This means we can have all the goodness of Gecko in WebDialogs! [attachment=0:3k7jewnp]<!-- ia0 -->wine-explorer.png<!-- ia0 -->[/attachment:3k7jewnp] How to force to use Gecko instead of IE?
  • Firing Button with Modifier Key

    11
    0 Szavazatok
    11 Hozzászólások
    1k Megtekintések
    CadFatherC
    didn't notice the thread had progressed... @tig said: You could probably also write an AutoHotKeys snippet [PC only!] which would spot a click in SketchUp with a key etc, BUT it'd be mucho complicado... ahk is quite good, i can see it possible but not too good for public consumption - with compatibility etc.. @driven said: if the button you click is a tool, you can watch for modifier keys? I assume [due to lack of use case] that you want one button for 3 tools [as example]... create a simple tool with one button... on click, [activating your tool] start a timer and watch for modifier keys... if key = a activate x if key = b activate y if you run out of time if activate z is that the sort of thing your after? or have I completely misunderstood yet again... john yes, exactly that. @jim said: There's this, but Windows only and not up-to-date and needs compiled, etc. https://code.google.com/p/eventrelay/ will have a look, thanks Jim @anton_s said: There is a way, thought it will require that your extension to require AMS Library. Easy to implement. Here is a snippet: very interesting Anton, will look into it (where's a Christmas holiday when you need it?!)
  • Catch Load Errors

    5
    0 Szavazatok
    5 Hozzászólások
    439 Megtekintések
    tt_suT
    One thing to beware of is that Sketchup::require/load annoyingly doesn't raise ruby errors - but instead just output the error text. So you might want to hook into $stdout and $strerr to catch that as well. (This is something I suggest only because you mention it was for a personal tool.)
  • Where to find developers?

    7
    0 Szavazatok
    7 Hozzászólások
    657 Megtekintések
    B
    Hello again. Just to let you guys know, I have posted a forum topic called "I wish to hire a developer" with a very brief description of my plugin. If any of you are interested, I can send you a more detailed description.
  • Check for existing material

    3
    0 Szavazatok
    3 Hozzászólások
    408 Megtekintések
    PixeroP
    Thanks. Its working now.
  • [code] Win32 Moving/Showing/Hiding Toolbars and Dialogs

    91
    0 Szavazatok
    91 Hozzászólások
    21k Megtekintések
    D
    @pcarret said: ...Is it possible to do hide minimize, maximize andclose buttonon Mac OS ? possibly, but not easily. I'm not entirely sure what your wanting to achieve... What exactly do you want to minimise/maximise? is it purely for yourself or do you want to use it in a Plugin? Some things can be done from Rudy, others by using AppleScript or by modifying the nib files... Outline what you want to do and I'll try and help... john
  • Plugin Developer Wanted ASAP

    5
    0 Szavazatok
    5 Hozzászólások
    546 Megtekintések
    D
    hi jimmy, most people are enjoying xmas with family... you may snag someones interest on a visit if you supplied a working example... it wouldn't need to be your clients product, but a skp with representative scenes and a similar DC, either from scratch or from 3d Warehouse... I'm not one of the "great Ruby Developers in the forum" and work on mac, but I would have had a play with some ideas if it was easy to hide from the family... john
  • Sketchup Crash Webdialog

    17
    0 Szavazatok
    17 Hozzászólások
    2k Megtekintések
    L
    the crash does exist. what is the solution?
  • File.writable? false for DOCUMENTS folder

    6
    0 Szavazatok
    6 Hozzászólások
    641 Megtekintések
    thomthomT
    Ruby's file handling under Windows is frustratingly flaky. We have reported a number of issues to the Ruby developers and I'd encourage people to file whatever you find. I usually wrap file handling in a begin, rescue block instead of testing if a while is writable - simply because Windows file handling is unpredictable.
  • Arrange component names

    13
    0 Szavazatok
    13 Hozzászólások
    1k Megtekintések
    M
    SDMitch (Mitch?), @sdmitch said: Tried your code and found two problems. if(reInc.match(cd)) needs to be if(reInc.match(cd.name)) Thanks for the catches. I edited & corrected the second post. I tested mine with a string array, not an array of cd's. Hence, no name prop. @sdmitch said: the prefix of the new name entered gets incremented as well. That's why you had the new cd name assign at the end of the loop. That's why I shouldn't change code after I've tested it... Thanks, Greg
  • Add column in SU file name

    8
    0 Szavazatok
    8 Hozzászólások
    862 Megtekintések
    D
    @dan rathbun said: ...But how to do that for both OSX and Windows in the same format ? on a mac you can add tags to any file, but for the OP's request, why not just append the filename with a serial number? john

Advertisement