sketchucation logo sketchucation
    • Login
    1. Home
    2. dacastror
    3. Topics
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 30
    • Posts 138
    • Groups 1

    Topics

    • D

      Pass array to a c/c++ ruby extension

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      2k Views
      Dan RathbunD
      Never could understand SWIG much. Cryptic interface language. If you intended to write a library that needs interfaces in multiple scripting languages, then SWIG might lessen the workload. Or if you are wanting a Ruby interface for some library already written that has SWIG interface files, then again I can see using SWIG. But for an extension that will be written specifically for SketchUp, since it only uses Ruby, I cannot see much use for SWIG. https://en.wikipedia.org/wiki/SWIG http://www.swig.org/tutorial.html http://www.swig.org/
    • D

      Send mail from Sketchup

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      606 Views
      Dan RathbunD
      And to have an email form filled out, but not automatically sent: UI;;WebDialog;;new( "Email...",true,nil,200,100,300,200,false ).instance_eval { email = "mailto;//someone@example.com"<< "?subject=This%20is%20the%20subject"<< "&cc=someone_else@example.com"<< "&body=This%20is%20the%20body" set_html( "<!DOCTYPE html>\n<html>\n <head>\n </head>\n"<< " <body>\n <br/>"<< " <a id='elink' href='#{email}'>Firing an email!</a>\n"<< " </body>\n"<< "</html>" ) show() { execute_script("elink.click();") } } http://en.wikipedia.org/wiki/Mailto But there must be a registered email client for the system. Ie, it does not work on my machine because I use browser based gmail, and never registered any email client application on this machine. (So for me two error messages popup stating there is no registered email client.)
    • D

      HoloLens and SketchUp

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      2
      0 Votes
      2 Posts
      2k Views
      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
    • D

      HoloLens and SketchUp

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions sketchup
      1
      0 Votes
      1 Posts
      115 Views
      No one has replied
    • D

      Get the coordinates of the corners of the viewport

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      31
      0 Votes
      31 Posts
      2k Views
      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.
    • D

      Error creating groups and components

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      382 Views
      D
      nope, I have not copied, create the object there. There are also problems when making copies when it is inside a group or component nonorthogonal... is very strange behavior you describe (google translator)
    • D

      Put forward drawings openGL

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      14
      0 Votes
      14 Posts
      547 Views
      D
      Anton_S your code is very interesting (highlight_picked_body.rb), I have never used Start and stop operation inside a custom tool, I like the result, I am studying this code
    • D

      Units in the input value through the VCB

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      282 Views
      D
      Dan thanks for replying, I found a recommendation yours here http://sketchucation.com/forums/viewtopic.php?f=180%26amp;t=55722%26amp;p=505915%26amp;hilit=units+vcb#p505915 which led me to the article by thomthom http://www.thomthom.net/thoughts/2012/08/dealing-with-units-in-sketchup/ I only have problem for receiving angles values ​​with comma as decimal separator, then I am forced to use the following text_input.sub!(',','.') text_input.to_f.degrees I do not know if there is a better method
    • D

      Unexpected result (closest_points)

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      242 Views
      D
      sorry for my silly mistake, thanks Sdmitch
    • D

      Problem with the boundary of the viewport and my tool

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      272 Views
      jolranJ
      Same here on SU8. On both sides of the window. If I hold down the mousebutton near border of window(at the right side where there's no tools)and do a mousemove/nudge it starts panning right sometimes.
    • D

      Create text in the viewport

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      367 Views
      tt_suT
      Yea, it's a known - annoying - limitation with draw_text. Both color and size would be good to have.
    • D

      Move instances softly, using the mouse

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      261 Views
      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
    • D

      Error in the view (Vray 2.0)

      Watching Ignoring Scheduled Pinned Locked Moved V-Ray render plugins extensions
      2
      0 Votes
      2 Posts
      261 Views
      D
      apparently this problem has been fixed in version 2.00.24
    • D

      Count instances correctly

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      275 Views
      D
      Thanks Dan, this can give me a hint, I'm testing with the definition given there, but in my testing model (instances.skp) gives me a wrong number of instances, sometimes less or sometimes more, I do not know if I'm misapplying the definition count_instances () # you must have a selected instance def count_instances() num = 0 if @editpath.size == 1 i = @editpath.last else revpath = @editpath.reverse i = revpath.shift end if i.is_a?(Sketchup;;ComponentInstance) num = i.definition.instances.size elsif i.is_a?(Sketchup;;Group) num = i.entities.parent.instances.size end if @editpath.size > 1 revpath.each {|i| if i.is_a?(Sketchup;;ComponentInstance) num = num * i.definition.instances.size elsif i.is_a?(Sketchup;;Group) num = num * i.entities.parent.instances.size end } end return num end mod = Sketchup.active_model sel = mod.selection ruta = mod.active_path (ruta) ? (ruta[ruta.size] = sel[0]) ; (ruta = []; ruta[0] = sel[0]) @editpath = ruta count_instances()
    • D

      Create groups of instances correctly

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      342 Views
      Dan RathbunD
      @dacastror said: ... Dan, but I think you need to add the following properties; material, attribute_dictionaries, layer, description, entity_name, name, receives_shadows, casts_shadows I wonder if there are more properties that can be inherited by the new instance (google translator) Yes you are correct. Just before the old instance is deleted, it's properties need to be copied over to the new instance.
    • D

      New things in the API (sketchup 2014)

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      331 Views
      tt_suT
      @dacastror said: think there had never been so many changes and corrections in a single version! And we're just getting warmed up!
    • D

      Fit_plane_to_points problem

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      9
      0 Votes
      9 Posts
      438 Views
      D
      I did not understand point.offset, with this example I understand a little more, thank you very much Thom, very interesting this
    • D

      Remove layer

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      297 Views
      jiminy-billy-bobJ
      @tig said: I did write a whole raft of 'missing' layer methods... I just thought I'd let you learn by doing... I learn by looking at what you wrote !
    • D

      Add_polygon seems very slow

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      11
      0 Votes
      11 Posts
      227 Views
      D
      thank you very much for the replies dan and Thomthom, I'll take a look at the code Thomthom experimental, to see if I can use some of this code (google translator)
    • D

      Help with .followme

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      177 Views
      D
      you sent me on the right track, thanks sdmitch
    • 1 / 1