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
  • Aborting a .rbz install

    16
    0 Szavazatok
    16 Hozzászólások
    1k Megtekintések
    danielbowringD
    @driven said: I'm under the impression Windows will see it as a space and error out Error: #<NoMethodError: undefined methodwindows' for #Object:0x56b89ec>` Depends what encoding you save it in. Western (Windows 1252) gives this: Error; #<SyntaxError; (eval);5231;in `load'; path/to/nbsp.rb;1; Invalid char `\240' in expression> UTF-8, however, will load and work fine windows use = "o.~" puts "Success #{windows use.inspect}" # -> load 'path/to/nbsp.rb' Success "o.~" true Note: Browsers will replace the character in question (160, "non-breaking space") with a regular space (32, "space"), but I did correct for this for this test.
  • Transforming an object with SketchUp Ruby

    3
    0 Szavazatok
    3 Hozzászólások
    2k Megtekintések
    K
    Aerilius You are a star ! Thanks a million Kevin
  • Launch Sketchup from inside AOO/LO Draw or Writer?

    3
    0 Szavazatok
    3 Hozzászólások
    533 Megtekintések
    V
    RE OLE....I know about OLE but its hap hazard in AOO/LO....problematic RE embed picture....Yes...do that now all the time...very manual...doesnt lend well to update and managing versions. Since AOO/LO draw is not much more than impress (abstract shapes, simple diagrams, 2D) just curious if anybody was looking to take the productivity package to the next level. AOO/LO filters for Visio are real weak...so that is not an option. Could look at inkscape,etc...but those seem to be more about making logos and icons. Could look at vpython since there is a python bridge but vpython is really used for scientific visualization (relatevely crude colors and shapes, no real library of shapes to build off of, etc). so just curious.
  • Export images to saved file location with file name

    15
    0 Szavazatok
    15 Hozzászólások
    1k Megtekintések
    B
    I have run into an issue when I'm working on the same image on two different computers - when exporting the Sketchup image, the Width & Height are locked (when one is edited, the other automatically matches that computer's viewport ratio). I am trying to find a way to export an image with independently filled in Width and Height resolutions. This seems to be the closest Ruby I could find to fixing my issue. Is there any way to modify this to get what I'm looking for? I export so often that I would like to create a button on a new toolbar to keep at the top of the screen, instead of entering the Ruby Console every time. Is there any way to do this?
  • Need a plugin?

    11
    0 Szavazatok
    11 Hozzászólások
    725 Megtekintések
    pilouP
    No problem! I'ts my pleasure! ...et le français québécois est encore meilleur que celui du vieux continent!
  • Check if group of entities exist, if true delete them

    5
    0 Szavazatok
    5 Hozzászólások
    611 Megtekintések
    D
    Thanks for your help everyone! TIG's advice did the trick. Also thomthom, thank you for pointing out your editable 3d text plugin. I've wished it existed for a long time. Awesome work!
  • Anyone up to this??

    11
    0 Szavazatok
    11 Hozzászólások
    776 Megtekintések
    bsintzelB
    Great Canadian beer, Beaver tails and hockey....man, what a country we live in. Happy Canada Day
  • Failed saving image on plugin directory. (solved)

    3
    0 Szavazatok
    3 Hozzászólások
    288 Megtekintések
    renderizaR
    Hi, Doing some research I found this post by TIG and it was pretty much what I was looking for. http://sketchucation.com/forums/viewtopic.php?p=281017#p281017 Thanks!
  • [Code] Printing color range as grid for preprint checking

    11
    0 Szavazatok
    11 Hozzászólások
    1k Megtekintések
    atelierpaarA
    Hello Tig, thanks for looking into it. Just the SU Material file "colors" contains 310 Colors. Each Color has to be selected and applied to some surface in order to get the color into the model. It`s the tedious manual work that discouraged to make a color guide. Is there perhaps a another way of mass-loading materials into a model ? Uli
  • Safe place to store user-defined parameters

    114
    0 Szavazatok
    114 Hozzászólások
    18k Megtekintések
    thomthomT
    Norwegian XP - User "Tæst": ` ENV.to_hash { "PROCESSOR_ARCHITECTURE"=>"x86", "HOMEDRIVE"=>"C:", "CLASSPATH"=>".;C:\Programfiler\Java\jre1.6.0_07\lib\ext\QTJava.zip", "APPDATA"=>"C:\Documents and Settings\T\221st\Programdata", "USERPROFILE"=>"C:\Documents and Settings\T\221st", "TMP"=>"C:\DOCUME~1\TST~1\LOKALE~1\Temp", "SESSIONNAME"=>"Console", "ProgramFiles"=>"C:\Programfiler", "PROCESSOR_REVISION"=>"0d08", "PROCESSOR_LEVEL"=>"6", "CommonProgramFiles"=>"C:\Programfiler\Fellesfiler", "USERNAME"=>"T\221st", "PROCESSOR_IDENTIFIER"=>"x86 Family 6 Model 13 Stepping 8, GenuineIntel", "OS"=>"Windows_NT", "FP_NO_HOST_CHECK"=>"NO", "windir"=>"C:\WINDOWS", "SystemRoot"=>"C:\WINDOWS", "PATHEXT"=>".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH", "ALLUSERSPROFILE"=>"C:\Documents and Settings\All Users", "USERDOMAIN"=>"WEEBLE", "NUMBER_OF_PROCESSORS"=>"1", "HOMEPATH"=>"\Documents and Settings\T\221st", "TEMP"=>"C:\DOCUME~1\TST~1\LOKALE~1\Temp", "SystemDrive"=>"C:", "QTJAVA"=>"C:\Programfiler\Java\jre1.6.0_07\lib\ext\QTJava.zip", "Path"=>"C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\FELLES~1\SONICS~1\;C:\Programfiler\Fellesfiler\Autodesk Shared\;C:\Programfiler\backburner 2\;C:\Programfiler\Fellesfiler\Roxio Shared\DLLShared;c:\Programfiler\Microsoft SQL Server\90\Tools\binn\;C:\Webdev\MySQL\MySQL Server 4.1\bin;C:\Programfiler\QuickTime\QTSystem\", "LOGONSERVER"=>"\\WEEBLE", "ComSpec"=>"C:\WINDOWS\system32\cmd.exe", "COMPUTERNAME"=>"WEEBLE" } TT::System.local_data_path C:\DOCUME~1\TST~1\LOKALE~1\PROGRA~1 ENV['TEMP'] C:\DOCUME~1\TST~1\LOKALE~1\Temp File.dirname( ENV['TEMP'] ) C:\DOCUME~1\TST~1\LOKALE~1 TT::Win32.get_folder_path_ansi( TT::Win32::CSIDL_LOCAL_APPDATA ) C:\Documents and Settings\Tæst\Lokale innstillinger\Programdata TT::Win32.get_short_folder_path_ansi( TT::Win32::CSIDL_LOCAL_APPDATA ) C:\DOCUME~1\TST~1\LOKALE~1\PROGRA~1 path = TT::Win32.get_short_folder_path_ansi( TT::Win32::CSIDL_LOCAL_APPDATA ) C:\DOCUME~1\TST~1\LOKALE~1\PROGRA~1 File.exist? path true file = File.join( path, 'test.txt' ) C:\DOCUME~1\TST~1\LOKALE~1\PROGRA~1/test.txt File.open( file, 'w' ) { |f| f.puts 'Hello World' } nil File.exist? file true File.size file 13` PROGRA~1 in the local appdata folder is just a coincidence as the Norwegian work is very similar to English. C:\Documents and Settings\Tæst\Lokale innstillinger\Programdata It'd be nice to have this tested on a computer with very different language.
  • Download skp files directly into Sketchup

    14
    0 Szavazatok
    14 Hozzászólások
    4k Megtekintések
    thomthomT
    Yea, I also found awkward ways to drop files to the WebDialog - but it's so awkward that I won't bother making a public release for it. It'll just be confusing - and defeat the purpose of trying to make an easy drag and drop feature...
  • Save Model using Ruby API on Windows

    7
    0 Szavazatok
    7 Hozzászólások
    962 Megtekintések
    Dan RathbunD
    @conchords said: @chris fullmer said: From that same thread, Dan mentions you can use this command to simulate the actual File > Save: Sketchup.send_action( 57603 ) Then you could use the regular Model.save for Mac and the send_action for PC's. I've not tried it, but it might be a solution. That worked great, thanks. Actually at that time I did not know of the cross-platform send action string, "saveDocument:" ... ... so you can just use Sketchup.send_action( "saveDocument:" )
  • Lengths over trigonometric

    3
    0 Szavazatok
    3 Hozzászólások
    384 Megtekintések
    TIGT
    This is pretty basic 'trigonometry'... [Should have listened more carefully in class ] The ' opposite_side' of a right-angled triangle is found by adjacent_side * Math::tan(angle) The 'angle' needs to be in radians, so if you have it in degrees then you need to use angle.degrees There are similar equations for finding the other sides depending on the known angles/sides etc... There are many Internet sites giving advice...
  • Web dialog pass data from Ruby to webdialog

    6
    0 Szavazatok
    6 Hozzászólások
    2k Megtekintések
    A
    That is because you "kill" the document when you do document.write(query). Look at the documentation of document.write. This works: @name = "the name" @description = "the description" dialog = UI;;WebDialog.new("Details", true, "sachi_pluginname_dialogname", 410, 875, 1030, 0, true) dialog.add_action_callback("pass_data") { |dialog, htmlpage| js = "set_details(#{@name.inspect}, #{@description.inspect})" # It's not java. dialog.execute_script(js) } dialog.set_file 'C;\Program Files\Google\Google SketchUp 8\Plugins\set_id\details.html' dialog.show() <html> <head> <script> function callRuby(htmlpage) { // Declare the variable with "var" so that it is not global. var query = 'skp;pass_data@' + htmlpage; window.location.href = query; } function set_details(a, b){alert(a); // Example 1 var text = document.createTextNode(a); document.getElementById("detail1").appendChild(text); // Alternative // document.getElementById("detail1").innerHTML = a; // Example 2 document.getElementById("detail2").value = b; } </script> </head> <body> <div id="detail1"></div> <input id="detail2" /> </body> <script> // If you will access element in the page, you need to do this after the page (body) has loaded. callRuby("pull_selection_count"); </script> </html>
  • How to add multiple groups into one group?

    18
    0 Szavazatok
    18 Hozzászólások
    1k Megtekintések
    nithi09N
    Hope this explains my requirement a little better. I have a sunroom comprised of many groups: corner post, floor channel, door, window etc. I want the user to select their sunroom color by clicking the model. In order to do this I need to gather all the sunroom groups into a parent group where I will use the onClick function to change the Material attribute. I expect the Material change will automatically cascade to the sub-groups but if not I can easily set the Material of the sub-groups to something like=Parent!Material The question is how do I wrap all of my groups into this parent group? Thom Thom thank you for the advice regarding start opertaion, but I do not need undo for this model, the user is starting with a blank canvas and will simply delete top level group if they have to start over
  • Get attribute roty

    11
    0 Szavazatok
    11 Hozzászólások
    1k Megtekintések
    existmeE
    I wonder if you had find an answer to your problem, I also need to know the value of lenY but I cannot get it through get_attribute with out entering them manually in dc panel
  • Drop-Down List Options

    18
    0 Szavazatok
    18 Hozzászólások
    2k Megtekintések
    pingpinkP
    Maybe,the problem is about the component , and face color functions . I did it separately in the external files. My webdialog have to be chosen all options and run by clicking. I'm trying to develop the curtain wall structure modeling .I'm not finished all the codes yet. I use Window , and SU7 to test a program. I changed all the color_value names which you suggest it would cause the conflict about component's color and face's color. It's looked easier in the code. I've attached the files for you If you would like too see. And If you have any suggestions , I love to read for improvement. Thank you for helping and teaching me ,Jolran .I keep doing codes every day.I'm trying !
  • [Doc] Official LanguageHandler Docs

    2
    0 Szavazatok
    2 Hozzászólások
    230 Megtekintések
    A
    That's the end. Once it's an official API they won't fix/rename/add what has been urgently requested.
  • Reference to deleted Group

    9
    0 Szavazatok
    9 Hozzászólások
    590 Megtekintések
    J
    Following this conversation I realized I am doing something Sketchup was not meant to do, So I switched to rotating points instead of edges, and rotate them one by one instead of in a group. I still need to keep references to the points (not to the edges), but so far it looks OK. Thank you
  • Understanding overlayed transparent OpenGL polygons

    9
    0 Szavazatok
    9 Hozzászólások
    2k Megtekintések
    thomthomT
    @aerilius said: The best (nicer) but it seems only to affect pngs. The example should be fully working. Do you see the same phenomenon? I see the same on my nVidia 8800GT card. (SU8)

Advertisement