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

    Topics

    • K

      Plugin Location in Windows 7

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions sketchup
      5
      0 Votes
      5 Posts
      139 Views
      KrisidiousK
      Nice tip Jim...
    • K

      Program needs Messagebox to complete Scene Up Date

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      246 Views
      K
      Thanks TIG after understanding what you were saying I found a solution. I discovered that if the view was set to Front View before the program started the pages all updated correctly without the UI.messagebox delay. By using code from Extended Standard Views, Chris Fullmer I was able to achieve automatic scene updates. I was not comfortable doing this so I compromised by adding the UI.messagebox to the first page only and then the rest of the pages updated correctly. To summarize: Use new_camera = new_camera.set eye, target, up Set to desired View or as I did use Sketchup.send_action "viewFront:"with a UI.messageboxto wait for the update. Use status = page.update(127) in place of Sketchup.send_action "pageUpdate:" thanks Keith
    • K

      PagesObserver.onElementAdded

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      241 Views
      K
      Thanks Dan I had finally figured that out and then I tried different observers since my post and I don't think the overhead is worth it. If the user forgets to move the dim to the dwg layer it only means there will be stray dim in other dwg scenes. I am thinking of adding a note when the dwg scene is first made to remind the user that added dim will need to be placed on the dwg layer. Keith
    • K

      New Version K2WS_Tools ver. 2.1.0

      Watching Ignoring Scheduled Pinned Locked Moved Woodworking
      4
      0 Votes
      4 Posts
      916 Views
      K
      Thanks for the feedback. Authors of plugins always like to know their work is being used. Also any requests for fixes and improvements are welcome. Keith
    • K

      Inputbox chedking for cancel

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      479 Views
      Dan RathbunD
      Sketchup::active_model.select_tool(nil) if results == false But Jim is correct. Your boolean expression in the conditional if statement was incorrect.
    • K

      Trying to Display a Help File (Help.jpg)

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      282 Views
      K
      This is what finally worked: def dowelHelp dowel_help_File = File.join(File.dirname(__FILE__),"K2_ToolsSupportFiles","k2ws_DowelHelp.html") UI.openURL("file;///#{dowel_help_File}") UI.messagebox("Dowel Help Complete " + dowel_help_File.to_s) end #def dowelHelp The html file was: <!DOCTYPE html> <html> <body> <p> <img src="K2_ToolsDowelHelp.png" > </p> </body> </html> Thanks Keith
    • K

      Page UpDate problems

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      227 Views
      Dan RathbunD
      As I recall from the last build cycle (2013,) the Sketchup::Page and Sketchup::Pages classes had issues filed on them regarding updates not working correctly. (As well as a bunch of feature addtions, by myself.)
    • K

      Create Face to PushPull along a curve

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions sketchup
      7
      0 Votes
      7 Posts
      465 Views
      pilouP
      If you see my example above that is exactly the result you want but with another method!
    • K

      Layer Name of Parent of Nested obj

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      120 Views
      No one has replied
    • K

      Align component boundingbox to global axis

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      301 Views
      M
      You are a good man Chris. ....as Rosanne Rosana Dana once so eloquently said.....never mind.
    • K

      Component Axis Display Option

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      9
      0 Votes
      9 Posts
      203 Views
      Dan RathbunD
      @ktkoh said: Dan that code controls the global axis. I am trying to control the individual component axis visibility. And if you had read the NEXT post after THAT, before posting you would have seen I gave you the instance key as well. Lesson: Read the whole thread before posting.
    • K

      Namespace and Tool Class Question

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      328 Views
      thomthomT
      @aerilius said: Looks good so far. I haven't seen anyone using ² in a module name (but if it works, though Unicode characters like ᚠᚢᚦᚨᚱᚲ are not supported in our version of Ruby in SketchUp, otherwise my plugins would be full of them). ² also exists in the ANSI set - so I could be a simple one byte character is he used that encoding. @aerilius said: Looks good so far. I haven't seen anyone using ² in a module name (but if it works, though Unicode characters like ᚠᚢᚦᚨᚱᚲ are not supported in our version of Ruby in SketchUp, otherwise my plugins would be full of them). I copied the example from this page: http://www.oreillynet.com/ruby/blog/2007/10/fun_with_unicode_1.html <span class="syntaxdefault"><br />module&nbsp;Kernel<br />&nbsp;&nbsp;&nbsp;alias&nbsp;λ&nbsp;proc<br /><br />&nbsp;&nbsp;&nbsp;def&nbsp;∑</span><span class="syntaxkeyword">(*</span><span class="syntaxdefault">args</span><span class="syntaxkeyword">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="syntaxdefault">sum&nbsp;</span><span class="syntaxkeyword">=&nbsp;</span><span class="syntaxdefault">0<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;args</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">each</span><span class="syntaxkeyword">{&nbsp;|</span><span class="syntaxdefault">e</span><span class="syntaxkeyword">|&nbsp;</span><span class="syntaxdefault">sum&nbsp;</span><span class="syntaxkeyword">+=&nbsp;</span><span class="syntaxdefault">e&nbsp;</span><span class="syntaxkeyword">}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="syntaxdefault">sum<br />&nbsp;&nbsp;&nbsp;end<br /><br />&nbsp;&nbsp;&nbsp;def&nbsp;√</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">root</span><span class="syntaxkeyword">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="syntaxdefault">Math</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">sqrt</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">root</span><span class="syntaxkeyword">)<br />&nbsp;&nbsp;&nbsp;</span><span class="syntaxdefault">end<br />end<br /></span> And it worked: ` # A real lambda λ { puts ‘Hello’ }.call => ‘Hello’ Sigma - sum of all elements ∑(1,2,3) => 6 Square root √ 49 => 7.0` You can also do this: <span class="syntaxdefault"><br />module&nbsp;MyTest<br />&nbsp;&nbsp;def&nbsp;self</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">ᚠᚢᚦᚨᚱᚲ<br />&nbsp;&nbsp;&nbsp;&nbsp;puts&nbsp;</span><span class="syntaxstring">'world'<br />&nbsp;&nbsp;</span><span class="syntaxdefault">end<br />end<br /></span> But not this: <span class="syntaxdefault"><br />module&nbsp;ᚠᚢᚦᚨᚱᚲ<br />&nbsp;&nbsp;def&nbsp;self</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">hello<br />&nbsp;&nbsp;&nbsp;&nbsp;puts&nbsp;</span><span class="syntaxstring">'world'<br />&nbsp;&nbsp;</span><span class="syntaxdefault">end<br />end<br /></span> Return an error: Error: #<SyntaxError: (eval):516: compile error (eval):516: class/module name must be CONSTANT module ᚠᚢᚦᚨᚱᚲ; def self.hello; puts 'world'; end; end ^> (eval):516 That seem to be related to ᚠ not being recognised as a capital letter. Because this works: <span class="syntaxdefault"><br />module&nbsp;Xᚠᚢᚦᚨᚱᚲ</span><span class="syntaxkeyword">;&nbsp;</span><span class="syntaxdefault">end<br /></span>
    • K

      Plugin installation recomendations

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      180 Views
      K
      Thanks I will make use of that. Keith
    • K

      Plugin Comp2LayerScene

      Watching Ignoring Scheduled Pinned Locked Moved Woodworking
      1
      0 Votes
      1 Posts
      487 Views
      No one has replied
    • K

      [Plugin] Comp2LayerScene

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      13
      0 Votes
      13 Posts
      11k Views
      gudio83G
      Dear Keith Krueger, can you update the plugin for Sketchup 2017. I've tried on two PCs, Sketchup 2017 x64, Win 10 The only thing that work its dwg views. Comp2Scene and comp2scene\layers creates only assembly scene. Thanks
    • K

      Adding Flipped Component Instance

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      177 Views
      TIGT
      He wanted to copy a selected component-instance [that happens to be mirrored] and was trying to get its definition and place an instance etc. Obviously he could reuse the original's transformation...*** I was trying to show him how he might copy "anything" that is selected, by grouping it. The code groups the selection, adds another instance of it and explodes the original. At that point if he knows the selection was the one component-instance then he has the option to explode its group, giving the same result as placing a second instance using the original's transformation, but if the selection is of something different - e.g. groups, geometry, mixed objects etc - he can choose to do other things with them within the safety of his group - e.g. non-merging geometry is preserved... ***For the avoidance of doubt here is how to duplicate an instance with the same matching transformation [i.e. position,rotation,scaling,mirroring etc]... Assuming that 'instance' is what's been selected/found and it has been tested and found to be a ComponentInstance... copy_of_instance = instance.parent.entities.add_instance(instance.definition, instance.transformation)
    • K

      Creating rbz files on Win7

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      11
      0 Votes
      11 Posts
      1k Views
      K
      Mistry with win7 zip files solved!!! Some how my folder option to hide known extensions was selected and this created the problem making a ziped file a ziped folder. I know I had nothing to do with that change as it took me a long time to find Folder Options after I started looking for them. Keith
    • K

      Review of Plugin/NameSpace/Extension Format

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      209 Views
      K
      Thanks Dan for the review and changes. I have adjusted my files to include your suggestions and when I have a how to vidio completed I will post in the plugin section. Also I expect to be back for help on putting my Joint Tools under the namespace umbrella as I have just started that process. Keith
    • K

      Layer Names to Array

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      13
      0 Votes
      13 Posts
      320 Views
      K
      I use webconsole.rb Copyright (C) 2006 Jim Foltz and have not looked for updates. Keith
    • K

      Problem adding instance of child component

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      127 Views
      K
      Ok I tried the other method c2=@model.entities.add_instance(ent_def,insert_tran) when I first looked at the suggestion I thought that was how I added the instance in my origional code but closer inspection I noted that I was using c2=@model.active_entities.add_instance(ent_def,insert_tran) Once I replaced active_entities with just entities the code worked also. Thanks Keith
    • 1 / 1