sketchucation logo sketchucation
    • Login
    1. Home
    2. Jorgensen
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 89
    • Posts 368
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: [Plugin] Sketchup Ivy

      When I press SHIFT+CLICK, I get the attaced errors.

      Does anyone know if I can fix this?

      Thanks 😄
      Jorgensen


      Capture.JPG

      posted in Plugins
      J
      Jorgensen
    • RE: Thea For SketchUp 1.0 (Preview video)

      Ok Thanks Pete

      posted in Extensions & Applications Discussions
      J
      Jorgensen
    • RE: Thea For SketchUp 1.0 (Preview video)

      Any news on this exciting product? e.g release / demo date? 😄

      posted in Extensions & Applications Discussions
      J
      Jorgensen
    • RE: 'Dynamic' array

      Works like a charm now 😄

      Thanks !

      posted in Developers' Forum
      J
      Jorgensen
    • RE: 'Dynamic' array

      Hi sdmitch

      How do you fit in 'areas[group.name]=0 if !areas[group.name]
      areas[group.name] += faces[0].area' into

      groups.each{|group|faces=group.entities.to_a.find_all{|e|e.class==Sketchup::Face}
      areas[group.name]=faces[0].area

      ?

      Sorry I'm a noob 😕 but I'll try to learn

      posted in Developers' Forum
      J
      Jorgensen
    • RE: 'Dynamic' array

      First thanks to your both for the fast reply.

      @TIG
      the code looks far more professional than my code would look like, I'm not sure if coding in Ruby/SU has change a lot since my last attemt three years ago.

      As I understand your code, if two groups has the same name e.g. Office - it won't be saved as a total, but only the area of the last object will be saved.

      Do I need something like areas[group.name] += areas[group.name] + faces[0].area to sum the areas?

      I have added
      model = Sketchup.active_model groups = model.active_entities

      Is this still the right way of getting the groups?

      Thanks 😄

      posted in Developers' Forum
      J
      Jorgensen
    • RE: 'Dynamic' array

      Hi all

      I think I'm a bit lost here.

      Could this part somehow be split up? I think that could help me to understand whats going on 😄
      groups.each{|group|faces=group.entities.to_a.find_all{|e|e.class==Sketchup::Face} areas[group.name]=faces[0].area

      Because I can't figure out where to place this part areas[group.name]=0 if !areas[group.name], and when I add the += I get an error saying Error: #<NoMethodError: undefined method+' for nil:NilClass>`.

      Right now my (your) code looks like this:

      <span class="syntaxdefault">def tmArea<br /><br />    groups</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">Sketchup</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">active_model</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">active_entities</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">find_all</span><span class="syntaxkeyword">{|</span><span class="syntaxdefault">e</span><span class="syntaxkeyword">|</span><span class="syntaxdefault"> e</span><span class="syntaxkeyword">.class==</span><span class="syntaxdefault">Sketchup</span><span class="syntaxkeyword">;;</span><span class="syntaxdefault">Group</span><span class="syntaxkeyword">}<br /><br /></span><span class="syntaxdefault">    areas </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">{}<br /></span><span class="syntaxdefault">    groups</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">each</span><span class="syntaxkeyword">{|</span><span class="syntaxdefault">group</span><span class="syntaxkeyword">|</span><span class="syntaxdefault">faces</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">group</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">entities</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">to_a</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">find_all</span><span class="syntaxkeyword">{|</span><span class="syntaxdefault">e</span><span class="syntaxkeyword">|</span><span class="syntaxdefault">e</span><span class="syntaxkeyword">.class==</span><span class="syntaxdefault">Sketchup</span><span class="syntaxkeyword">;;</span><span class="syntaxdefault">Face</span><span class="syntaxkeyword">}<br /></span><span class="syntaxdefault">    areas</span><span class="syntaxkeyword">[</span><span class="syntaxdefault">group</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">name</span><span class="syntaxkeyword">]</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">+=</span><span class="syntaxdefault"> faces</span><span class="syntaxkeyword">[</span><span class="syntaxdefault">0</span><span class="syntaxkeyword">].</span><span class="syntaxdefault">area    </span><span class="syntaxkeyword">}<br /><br /></span><span class="syntaxdefault">names </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> areas</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">keys</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">sort</span><span class="syntaxkeyword">!<br /><br /></span><span class="syntaxdefault">tot</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">0<br />names</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">each</span><span class="syntaxkeyword">{|</span><span class="syntaxdefault">name</span><span class="syntaxkeyword">|<br /></span><span class="syntaxdefault">tot</span><span class="syntaxkeyword">+=</span><span class="syntaxdefault">areas</span><span class="syntaxkeyword">[</span><span class="syntaxdefault">name</span><span class="syntaxkeyword">]<br /></span><span class="syntaxdefault">puts name</span><span class="syntaxkeyword">+</span><span class="syntaxstring">" "</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">areas</span><span class="syntaxkeyword">[</span><span class="syntaxdefault">name</span><span class="syntaxkeyword">].</span><span class="syntaxdefault">to_s<br /></span><span class="syntaxkeyword">}<br /></span><span class="syntaxdefault">puts<br />puts </span><span class="syntaxstring">"Total "</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">tot</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">to_s<br /><br />end<br /><br /></span><span class="syntaxkeyword">if(</span><span class="syntaxdefault">not file_loaded</span><span class="syntaxkeyword">?(</span><span class="syntaxstring">"TM_Area.rb"</span><span class="syntaxkeyword">))<br /></span><span class="syntaxdefault">  Mejeriet_menu </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> UI</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">menu</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Plugins"</span><span class="syntaxkeyword">).</span><span class="syntaxdefault">add_submenu</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"TM"</span><span class="syntaxkeyword">).</span><span class="syntaxdefault">add_submenu</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Arealer"</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">  Mejeriet_menu</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">add_item</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"On"</span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">{</span><span class="syntaxdefault">  tmArea </span><span class="syntaxkeyword">}<br /></span><span class="syntaxdefault">end<br />file_loaded</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"TM_Area.rb"</span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span>
      

      Sorry for my noob questions.

      posted in Developers' Forum
      J
      Jorgensen
    • 'Dynamic' array

      Hi

      I'm not sure if this is the right forum for asking ruby questions, so please feel free to move my topic.

      I'm trying to create a simple function that collects the areas of the face inside groups and puts a text note that shows the totals.

      But I'm having some problems figure out how to store the areas.

      I have some groups. Every group consist of one face. The face has a name eg. Office home etc.

      I then would like to collect the areas as:
      Office 50.000 m2
      Home 24.000 m2
      Disp. 3.000 m2
      Total 77.000 m2

      I thought I could use something like AreaTotal[name] = AreaTotal[name] + object.area, and then run through the array and list the name of the key and value, but it seems arrays don't accept variables as keys.

      Can anyone please help me to find a solution?

      Ps. I know there might be a plugin that does the job, but I find it somehow exciting to create it myself.

      Thanks
      Jorgensen
      Denmark

      posted in Developers' Forum
      J
      Jorgensen
    • RE: [Plugin]FPS Nav

      Hi Alan

      I've just started to play around with Lumion witch uses the WASD+shift combination - just like FPS games, and I find it a very easy way to navigate around the model..... but when I go back to Sketchup it takes some time to get use to navigate the Sketchup way - mousewheel mousewheel mousewheel mousewheel mousewheel.... 😞

      So what I really would like a WASD navigation in Sketchup - and it Should work without I need to activated it by pressing a menu button first.

      That's my dream, but I sure know the limitations of Skethup, and it might not be possible to do at all.

      I use Windows 7.

      Could shiftloc be of any use? - I find the right click mousebutton quite problematic, because the context menu keeps popping up 😞

      Thanks 😄

      btw - I can't figure out why it's not implemented in Sketchup as default.

      posted in Plugins
      J
      Jorgensen
    • RE: [Plugin]FPS Nav

      Hi Alan

      Just stubled over your plugin, and what a nice found 😄

      I have a few questions:

      It is possible to change the 'speedkey' from the right mousebutton to the Shift key like it's normal in games (an some editors)? - right now I often get the context menu when using the plugin.

      I can move while just pressing WASD - I don't need to activate 'shift' wich I find nice 😄

      Would it be possible to 'activate' your scipt automatic when ever WASD is pressed?

      Or could one activate / deactivate with a shortcut?

      Thanks

      posted in Plugins
      J
      Jorgensen
    • RE: Idea for an 'window' plugin ?

      Oh I see 😄

      I have tried windowizer, but it seems fail to create some of the faces 😕

      posted in Plugins
      J
      Jorgensen
    • Idea for an 'window' plugin ?

      Hi

      A suggetion for a window plug in, that generates the frame and glas in one click 😄

      I have added a sketch of the princip.

      Maybe one could use the idea ?

      One could for an example define the glass and frame material ?


      window_plugin.jpg

      posted in Plugins
      J
      Jorgensen
    • RE: [Plugin] AreaTextTag

      Hi TIG

      Would it be possible to add the "generate faces via excel / csv" ? Maybe as an comercial plugin?

      Thanks 😄

      posted in Plugins
      J
      Jorgensen
    • RE: [Plugin] AreaTextTag

      Hi TIG

      Thanks for your reply.

      Su7 crashes when I select "add.... to selected faces" SU quits and a splashscreen pops up.

      I was not awere of the "inside the group" feature.

      You write that You have made a 'pro' version. Do you consider releasing a commerciel Pro version ?

      Thanks

      posted in Plugins
      J
      Jorgensen
    • RE: [Plugin] AreaTextTag

      Hi TIG

      I think this plugin could become very usefull for me 😄

      But I have some problems, but it might just be me that use it wrong.

      My workflow would be, create some rectangles and add the tag e.g.:
      office (30)\n<> where 30 is the size the client would like.

      But the problem is that the different rooms can't be grouped, so when they get close to one another the 'glue' together.

      Could it be an idea that the tags glues to groups ?

      Just an idea 😄

      some other future features could be:
      import excel / csv files and automatic create the rooms
      room_name room_size
      office 20

      Scheme
      Generate a scheme that calculates the actual room size vs the size client wishes.

      Thanks
      I really admire the hard work you (and others) do to improve SU.

      ps. SU7 seems to crash when using this plugin.

      posted in Plugins
      J
      Jorgensen
    • RE: [request] plugin to use while distribute an program

      hi jeff and dukejazz

      I stumbled on TIGs AreaTextTag, and it gets my on the road for now 😄

      Thanks

      posted in Plugins
      J
      Jorgensen
    • [request] plugin to use while distribute an program

      Hi

      Does anyone know if there is a plugin for use inside sketchup while one is sketching ?

      We often start with a list of rooms and their sizes, a program. And it would be nice to use sketchup to distribute the rooms.

      What I would like is a plugin where you enter the program (import excel file?) and somehow relate the single room to an face (or other object?) and when you scale the face the area updates.

      The program and actual areas should be listed, on a scheme and on the object so one can se if the areas has the requestet size.

      Does anyone know if such plugin exists ?

      Thanks 😄

      posted in Plugins
      J
      Jorgensen
    • RE: Place component by click

      Thanks for your input. Align axis, CRTL + move did it 😄

      Finshed...

      posted in SketchUp Discussions
      J
      Jorgensen
    • RE: Place component by click

      Hi TIG

      It seems to that aligning the axis and use CRTL+move is working ok.

      posted in SketchUp Discussions
      J
      Jorgensen
    • RE: Place component by click

      Thanks Dave

      The component already glues to any, but the ¤%#¤&#& default axis align in SU is a pain in the ...

      I'll try to align the axes to the face

      posted in SketchUp Discussions
      J
      Jorgensen
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 18
    • 19
    • 6 / 19