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

    Posts

    Recent Best Controversial
    • RE: Error loading file

      There were something wrong with a previous UI.messagebox, mabey a quote problem, I don't realy realize...

      
      	UI.messagebox "Added Bed"
      end #if
      
      end #Place_Component
      #---------------------------
      	
      	
      #-----------------------------------------------------------------------------------------------
      end		#### END OF CLASS ####
      #-----------------------------------------------------------------------------------------------
      
      

      thanks TIG !!

      posted in Developers' Forum
      C
      confitex architure
    • RE: Error loading file

      still got that

      @unknownuser said:

      ^Erreur de chargement du fichier insertc.rb
      C:/Program Files/Google/Google SketchUp 6/Plugins/insertc.rb:210: syntax error
      name_of_plugin = "insertc.rb"
      ^
      C:/Program Files/Google/Google SketchUp 6/Plugins/insertc.rb:212: syntax error
      menu = UI.menu("Plugins")
      ^
      C:/Program Files/Google/Google SketchUp 6/Plugins/insertc.rb:213: syntax error
      menu.add_item("insertc") { Sketchup.active_model.select_tool InCompo.new }
      ^
      C:/Program Files/Google/Google SketchUp 6/Plugins/insertc.rb:213: unterminated string meets end of file
      C:/Program Files/Google/Google SketchUp 6/Plugins/insertc.rb:213: syntax error

      I'm editing my script in notepad++

      I don't see any reason why that happens

      posted in Developers' Forum
      C
      confitex architure
    • RE: I'm lost

      Maybe that's the reason

      @unknownuser said:

      Backup March 12 restored
      Sent at: Thu Mar 13, 2008 6:26 pm
      From: Coen Naninck
      To: Registered users

      Dear SCF user,

      Unfortunately because of a bug in the forum software we experienced major technical problems that were irreversible.

      Our solution was to restore a server backup made yesterday, March 12th.
      Because of this, we lost 68 newly registered members. If you know any of these members or see questions in other boards about this (for example PushPullBar, Google Groups, Etc.) please notify these people of the backup restoration and that they can safely re-register here.

      We apologize for this issue, but are happy it has been resolved now.

      posted in SketchUp Discussions
      C
      confitex architure
    • RE: Error loading file

      Hi TIG
      thanks, you're right it would be easier...

      	
      #--------------------------------------------------------
      end		#### END OF CLASS ####
      #--------------------------------------------------------
      
         name = "insertc.rb" #this one is line 210
         unless file_loaded?(name)
            menu = UI.menu("Plugins")
            menu.add_item("insertc") { Sketchup.active_model.select_tool InCompo.new }
            file_loaded(name)
         end
      
      

      I also have these alerts...

      @unknownuser said:

      C:/Program Files/Google/Google SketchUp 6/Plugins/insertc.rb:212: syntax error
      menu = UI.menu("Plugins")
      ^
      C:/Program Files/Google/Google SketchUp 6/Plugins/insertc.rb:213: syntax error
      menu.add_item("insertc") { Sketchup.active_model.select_tool InCompo.new }
      ^
      C:/Program Files/Google/Google SketchUp 6/Plugins/insertc.rb:213: unterminated string meets end of file
      C:/Program Files/Google/Google SketchUp 6/Plugins/insertc.rb:213: syntax error

      posted in Developers' Forum
      C
      confitex architure
    • RE: Hidden lines problem

      Have you tried the soften/smooth edges tool?
      in the menu, go to window>soften edges. Select the hidden lines and try to move the arrow in the s/s.e. window tool.

      posted in SketchUp Discussions
      C
      confitex architure
    • Error loading file

      Hello,
      When I try to launch a newly written script, at sketchup startup, I get the following message that means Error loading file...

      @unknownuser said:

      ^Erreur de chargement du fichier insertc.rb
      C:/Program Files/Google/Google SketchUp 6/Plugins/insertc.rb:210: syntax error name = "insertc.rb"

      I see no reason it happens because I've launched it once and at the second launch, it failed.
      Please, I need your help
      Thank you.

      posted in Developers' Forum
      C
      confitex architure
    • RE: Autosnap?

      Do you have any solution to place a component less "transparently" than in ruby?
      I mean I can barely place a component from a ruby script using "add_instance" but it acts very "transparently" because you can't detect what realy happened in your sketchup app.
      A weired things would be to simulate in ruby the so slicky sketchup command "place component"...
      any solution to do so? Or any existing script to get inspired?

      posted in Developers' Forum
      C
      confitex architure
    • RE: Autosnap?

      Strange! I can see it.
      Try this one
      http://www.viddler.com/explore/squareclock/videos/13/

      posted in Developers' Forum
      C
      confitex architure
    • RE: Probleme dimmension et ecriture

      La seule façon de sortir un plan à l'échelle est de désactiver la vue camera et d'en faire une vue 2D.
      Menu Camera>Projection Parallele
      Il suffit alors de se mettre en vue en plan, vu d'en haut on peux lancer l'impression et la les options de mise à l'echelle sont déverouillées.
      Pour les numérotations, il ne faut pas utiliser les textes mais plutot les cotations ou le 'leader' (je connais pas la traduction française). Le leader se tournera toujours face à la camera, comme le texte des cotations d'ailleurs.

      posted in Français
      C
      confitex architure
    • Autosnap?

      Hello everyone,
      I've seen this app that seems interesting to me:http://www.squareclock.com/?p=24
      It could be very inspiring for SU uses.
      Who has an idea if there is an autosnap tool or if any code exist.
      What I'm seeking is to realize the snap effect,thanks to a ruby script, f.e. within "ghost" boundaries and/or to activate a kind of component's gluing option to another component.

      posted in Developers' Forum
      C
      confitex architure
    • RE: Trouble With Ruby

      instead of saving the showing ruby code page he should right click on the link from the source page and choose "save target as".
      The extension should be visible when saving the file. If needed change the extension to rb.
      If the extension is not visible he should change the 'show extensions' in the Windows folders options.

      posted in Developers' Forum
      C
      confitex architure
    • RE: Webdialog and active_model

      Hello Koos,

      I understand your concern about publishing your code.
      I'm sure you can help me in my other post.
      http://www.sketchucation.com/forums/scf/viewtopic.php?f=57&t=6543&p=41849#p41849
      Maybe you could have a look there and put me on the rails?

      I'v solved some of my problems nut still have no idea how to put more text boxes in my form and retrieve each single variable into sketchup.

      I feel this :

          dlg.add_action_callback("ValueChanged") {|d,p|
             $avariable = p }
      

      is to short to do so because i can retrieve just one varaiable. Isn't it?
      Do not hesitate to reply in the other post so that I can end this one.

      Thank you Koos.

      posted in Developers' Forum
      C
      confitex architure
    • RE: Webdialog: html and rb example

      Hello,

      So far, i've solved my problem to call a def by using,

      dialog.set_on_close { def_to_run }
      

      For the unique variable to use, I've inserted in the dlg.add_action_callback

      $insertinput = p
      

      and then convert my $insertinput.to_i (not sure if I must set my variable in global)

      So I still have no solution to manipulate more than one text string form my webdialog form.
      How could I get different and multiple text boxes to send to sketchup 3 or more different variables?

      Thanks!

      posted in Developers' Forum
      C
      confitex architure
    • RE: Webdialog and active_model

      Hi,

      I would be glad to get an overview of your code because I think it could help me with my last post.

      Would you be ready to your rb file here?

      Thanks!

      posted in Developers' Forum
      C
      confitex architure
    • RE: Webdialog: html and rb example

      Hello,

      I'm trying to take advantage of this code below, that I found here (Todd was right... well, almost)

      That's the html file

      
      <HTML>
      	<HEAD>
          <title>Webdialog UI </title>
          <style type="text/css">  
      	</style>
      	</HEAD>
      	<body> 
              <div>
              <p><font color="blue">Input</font><br>
      			<input type="text" name="myTextInput" size="24"></input>
      		</p>
      			<p><input type="submit" name="submitButtonName" onclick="tellSketchup(myTextInput.value)"></p>
      		</div>
         		<script type="text/javascript">           
                 
                 function tellSketchup(value)
                 {
                          //this non-intuitive command will call the sketchup function "ValueChanged"
                          //with the name and value of the control that changed
                     window.location='skp;ValueChanged@'+ value;
                 }
             </script>
          </body>
      </HTML>
      
      

      and here is the .rb file

      
      def inputSimple()
          #create
          dlg = UI;;WebDialog.new("inputSimple", true,"inputsimple", 300, 300, 100, 50, true)
          fn= File.dirname(__FILE__)+'/inputsimple.html'
          dlg.set_file fn
          dlg.show {}
          
          dlg.add_action_callback("ValueChanged") {|d,p|
                  puts p 
      			dlg.close {}
      			}
      			
      end
      
      

      But I can't achieve what I'm looking for: getting integer from the webdialog and use it to draw a box (f.e)

      to do so i'm trying to

      • Call another def at the end of the inputSimple()
      • Use the input as a variable in this called def;
      • Use multiple inputs

      But I do not succeed.
      Can someone help?

      posted in Developers' Forum
      C
      confitex architure
    • RE: Webdialog: html and rb example

      You are right, 4 pages that i read before posting it.
      but 4 pages mostly on how to center the webdialog window, it doesn't help.
      At least one inspired my new post,
      http://www.sketchucation.com/forums/scf/viewtopic.php?f=57&t=5958&p=35329&hilit=+webdialog#p35329
      But Koos' concern is far away from mine... At this moment I wouldn't mind if my webdialog would stay active, I simply want to communicate between a html file and sketchup using ruby.

      Any Idea?

      posted in Developers' Forum
      C
      confitex architure
    • Webdialog: html and rb example

      Hello,

      I'm hardly trying to open a webdialog that could send parameters to an entity in sketchup. This entity could be "as simple as creating a box" 😞 that would be defined from a html form (width, length, height).
      I can't get how to retrieve variables from html (or even what exactly to do from SU...)
      Has Someone an example of the simpliest webdialog use with both sources in .rb and .html?

      Thank you.

      Emmanuel

      posted in Developers' Forum
      C
      confitex architure
    • 1 / 1