🚨 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
  • Revert back to saved version

    8
    0 Szavazatok
    8 Hozzászólások
    4k Megtekintések
    TIGT
    Going back several steps .move! works like .transform! without affecting the stack within an animation ?
  • Vertex Normals... ?

    26
    0 Szavazatok
    26 Hozzászólások
    4k Megtekintések
    Dan RathbunD
    @oajfh said: Sorry for dragging this topic on for so long. Don't worry about it. This is the kind of nitty-gritty dirty details us consummate geeks really love to ponder.
  • Best practice for followme

    2
    0 Szavazatok
    2 Hozzászólások
    347 Megtekintések
    sdmitchS
    Put the face in a group the do the followme. Everything created by the followme will be added to that group myGroup = Sketchup.active_model.entities.add_group myFace status = myFace.followme(lines) Then you can move the group.
  • Group moves far away when i want to scale

    4
    0 Szavazatok
    4 Hozzászólások
    512 Megtekintések
    tt_suT
    @youngosg said: t = Geom::Transformation.scaling 2 There is an issue with this method - it doesn't produce the same transformation as Geom::Transformation.scaling(2, 2, 2) The former change the 16th value in the matrix - instead of scaling the components. I'm not sure why it was implemented as such, but several render engines have had issues with that. I think even SU have issues in some cases. Think we have an issue filed to change it.
  • Executing one call_back executes another.

    12
    0 Szavazatok
    12 Hozzászólások
    984 Megtekintések
    thomthomT
    That would do the same thing - the <form> element usually have the URL to which to submit to. Without a parent <form> the submit button had no default action.
  • Using add_line to automatically create a new face

    6
    0 Szavazatok
    6 Hozzászólások
    748 Megtekintések
    Z
    Thanks I've missed that edge.find_faces, it works great. I think the naming put me off as I wasn't expecting that it will also add faces, I just thought it was going to find potential faces, I think it should may be renamed: find_and_add_faces just for clarity.
  • Correction of codes

    4
    0 Szavazatok
    4 Hozzászólások
    472 Megtekintések
    K
    Thanks, sdmitch and slbaumgartner. Now It works well However, I'm planning to create some shapes more with this way and actually made few shapes. I'm worrying about increase of icons in Sketchup, and am making ideas how to simplify tools. Making dialog box I saw some free tools which 'inputbox' is added together. If the shapes can be individually selected in inputbox, I need not add icons anymore, but don't know how to make it. I know basic codes for creating inputbox, and would like to apply the basic code to what I want(choosing each shapes individually in inputbox). Additionally, Is it possible to add shapes which are saved in .skp file(I know how to load shapes saved in .skp file by using 'Class' method and how to place it on Sketchup space clicking) into inputbox too? Using webdialog If i create webdialog box and add all icons into the webdialog by making tables(categorization), This way may look good as well. I'm trying to use dlg.add_action_callback("") {|d, p|Sketchup.send_action ""} Can i utilize this command for making icons in webdialog? I mean, the command looked like only basic tools(Undo, Redo, New, Cut, PushPull) can be used with the command. For example dlg.add_action_callback("Undo") {|d, p|Sketchup.send_action "editUndo:"} dlg.add_action_callback("Redo") {|d, p|Sketchup.send_action "editRedo:"} dlg.add_action_callback("New") {|d, p|Sketchup.send_action 57600} dlg.add_action_callback("Open") {|d, p|Sketchup.send_action 57601} dlg.add_action_callback("Save") {|d, p|Sketchup.send_action 57603} As you know, these actions are used in HTML and '<scrip> </script>' connects between ruby codes and HTML codes for indicating icons in webdialog. How can I make my own Sketchup.send_action? If it is possible, I will add the icons into webdialog.
  • To Convert Sketchup Points to CNC G-Code

    2
    0 Szavazatok
    2 Hozzászólások
    2k Megtekintések
    Dan RathbunD
    Someone started a project but needs someone else to finish it: Model2GCode - who would like to continue? Other projects: [PlugIn] 3D Printers G-Code importer/Exporter Ver0.0.9 [Plugin] 2.5D CAM Plugin 20121202 [Plugin] Another g-code export
  • RBeautify - Ruby Code Beautifier

    8
    0 Szavazatok
    8 Hozzászólások
    2k Megtekintések
    Al HartA
    I found a different problem. I was using this code to set a string: (This loads all text up to the word HERE into a string with new lines, etc.) ` smess = <<HERE This face will not render in the material you have created, since it is on placed the reverse side of a face. Use "Setup Options/Special/Process 2 Sided Faces" to allow materials on reverse faces to be rendered. HERE` and the beautifier indented the last line (HERE) which cause the ruby to fail
  • Edge.all_connected to curve

    2
    0 Szavazatok
    2 Hozzászólások
    338 Megtekintések
    D
    have a look at TIG_weld.rb, you can even run it from your own script using require...
  • Auto show plugin window at startup

    9
    0 Szavazatok
    9 Hozzászólások
    2k Megtekintések
    Dan RathbunD
    @sawdust_online said: Tell me, can we deal with sketchup API and another language than Ruby? ... is there any other way ? You can write extensions in C & C++. @sawdust_online said: I use it for about a week but I'm not sure to go deeper. At first it looks as a strongly typed language easy to use for developers but this doesn't turn real. How a language could be easy if it requires two keys for commenting a single line? it's the first time I meet such odd thing! It would be better to start a new topic about the Ruby language. Or repost your thoughts to one of the old topics... Should we / could we learn Ruby? Where to Start with Ruby?
  • Questions on Styles and Rendering options

    12
    0 Szavazatok
    12 Hozzászólások
    1k Megtekintések
    CadFatherC
    api definitely needs some development here, you cannot even do a style.erase command. (just purge) i looked inside a *.style file (aka zip), hoping to find some hints. some obscure numbers which surely must be pointing to the settings like face colours etc, but too cryptic. not to mention watermarks.
  • Transformation.x/y/zaxis and transformation.axes

    4
    0 Szavazatok
    4 Hozzászólások
    488 Megtekintések
    Dan RathbunD
    @oajfh said: Perhaps there's an implicit point to vector conversion or vice-versa, but in that case the API makes no mention of it. In mathematics, both are represented as arrays. @unknownuser said: ** class](http://www.sketchup.com/intl/en/developer/docs/ourdoc/array.php)":1hykbm7x] Introduction The SketchUp Array class adds additional methods to the standard Ruby Array class. Specifically, it contains methods allowing an array to behave just as a Vector3d or Point3d object (which can be thought of as arrays of 3 coordinate values.) Therefore, you can use the Array class in place of a Point3d or Vector3d as a way to pass coordinate values. The opposite is also often true, as well. The API docs need updating in regard to allowable parameter types. P.S. - The docs are misleading when it says "The SketchUp Array class ..." There is only one Array class. The SketchUp API just modifies the Ruby Array base class.
  • Make SketchUp API to recognize System PATH

    3
    0 Szavazatok
    3 Hozzászólások
    560 Megtekintések
    G
    Thanks, Dan! Your answer does give A LOT of food for thought. I will try someof these and let you know. Regards
  • Get the coordinates of the corners of the viewport

    31
    0 Szavazatok
    31 Hozzászólások
    3k Megtekintések
    A
    I'm not sure if I used any C++ 11 syntax in that C++ extension, but Ruby C++ extensions as a whole give so much opportunities to writing great plugins in SU. I'm amazed that SU team chose Ruby over all available programming languages. Back then, when SU was first released, Ruby wasn't even popular, but SU team bypassed popularity and chose Ruby because Ruby was both simple and powerful due to a feature in supporting C extensions. Today, Ruby is becoming popular and is improving in performance and in features. Something tells me that SU had and still has really great minds behind it because choosing Ruby was the best path SU team could ever take. Imagine if they chose python or any other high level, limited programming language. SU would have been a totally different story from what it is today. Huge thanks goes to SU team for making SU a very great software for writing powerful plugins.
  • Transformation

    4
    0 Szavazatok
    4 Hozzászólások
    483 Megtekintések
    tt_suT
    You might find it useful to use the Transformation Inspector to visualize the matrix: http://extensions.sketchup.com/en/content/transformation-inspector
  • HoloLens and SketchUp

    2
    0 Szavazatok
    2 Hozzászólások
    2k Megtekintések
    Dan RathbunD
    Corrected link: http://www.engineering.com/DesignerEdge/DesignerEdgeArticles/ArticleID/10051/Microsoft-to-bring-Immersive-3D-to-AEC-Models-with-HoloLens-and-SketchUp.aspx
  • MySQL connexion

    3
    0 Szavazatok
    3 Hozzászólások
    437 Megtekintések
    Dan RathbunD
    @inteloide said: Is there any way to link Sketchup to a MySQL database in pure ruby ? (1) I believe, You or whomever runs the Server still need to install MySQL: http://dev.mysql.com/downloads/windows/installer/ From Ruby Console: (2) Gem::install "ruby-mysql" (Pure-Ruby edition - C edition is "mysql" gem.) source: https://github.com/tmtm/ruby-mysql gem: https://rubygems.org/gems/ruby-mysql doc: http://www.rubydoc.info/gems/mysql/ (3) Gem::install "dbi" gem: https://rubygems.org/gems/dbi doc: http://www.rubydoc.info/gems/dbi (4) Gem::install "ruby-odbc" gem: https://rubygems.org/gems/ruby-odbc doc: http://www.rubydoc.info/gems/ruby-odbc
  • ID - Definition Name

    2
    0 Szavazatok
    2 Hozzászólások
    349 Megtekintések
    TIGT
    You are asking about several different things... model = Sketchup.active_model defns = model.definitions ### the definitions in the model - components/groups/images p defns[0].methods.sort ### for list of a definition's available methods - also see API guide http://www.sketchup.com/intl/en/developer/docs/classes.php defns.each{|d| p d.name ### name of defn p d.instances[0].name if d.group? ### name if it's a group p d.get_attribute("dynamic_attributes", "_name", "???") ### if DC 'name' or '???' if not. p d.guid ### the unique GUID for the definition - Note: this only enduring across sessions in newer SketchUp version. }
  • Are any of you guys interested in programming work?

    9
    0 Szavazatok
    9 Hozzászólások
    3k Megtekintések
    KrisidiousK
    And this post is from 3 years ago soooo... I think we could prolly just ditch it all together.

Advertisement