sketchucation logo sketchucation
    • Login
    1. Home
    2. glro
    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!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    G
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 29
    • Posts 403
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: [Plugin] AddPage v1.4 20110810

      @tig said:

      This http://forums.sketchucation.com/viewtopic.php?p=345385#p345385 is v1.4 that has an option 'ALL' version that processes all scenes in one go...

      yes, you are right; i had downloaded the plugin here
      http://forums.sketchucation.com/viewtopic.php?f=323&t=28782

      it works perfectly
      thank you

      posted in Plugins
      G
      glro
    • RE: [Plugin] AddPage v1.4 20110810

      @tig said:

      This is an old script brought into the mainstream from a sub-post... It adds the current Scene-Tab's name to the screen as 'screen-text', visible for that scene only, using a dedicated layer[attachment=0:2w5o75x7]<!-- ia0 -->AddPage.rb<!-- ia0 -->[/attachment:2w5o75x7].

      your plugin is ideal to print a set of views of the model with references

      just a suggestion: possibility to add the title to all the scenes of the model, with only one click (when there are 25 scenes, for example, it would help)

      posted in Plugins
      G
      glro
    • RE: Explode 1 level component

      @jolran said:

      @unknownuser said:

      it took you a few seconds, while i had been looking for a solution the whole day...

      😄 I know the feeling

      Does this give the same result for you? I've heard iterators are a good bet.
      I'm just a hack, just something I picked up..
      Acctually looking for the contrary of what you are, exploding everything that's nested.
      So I will try the opposite of what TIG recommended for you. Good thread!

      ents.to_a.each{|e|
      > 	      next if not e.valid?
      > 	       e.explode if e.class==Sketchup;;ComponentInstance
      > 	   }
      >   end
      > 
      > 
      

      No, what i get is:
      Error: #<SyntaxError: (eval):8:in `initialize': compile error
      (eval):8: syntax error, unexpected kEND, expecting $end
      end

      To explode nestled components, maybe you could try this
      http://www.smustard.com/script/Bomb

      posted in Developers' Forum
      G
      glro
    • RE: Explode 1 level component

      @tig said:

      Use ents.to_a - that freezes the list; if you use ' ents' it keeps looking into what's available in the 'entities' and it will find some things that have just been added from the one you've just exploded !

      Yes, this is exactly what was happening

      i made the correction

      ents = mod.entities
      ents.to_a
      for e in ents.to_a
            if e.is_a? Sketchup;;ComponentInstance
               e.explode
            end
         end
      
      

      and now it works perfectly

      Thank you very much; it took you a few seconds, while i had been looking for a solution the whole day...

      posted in Developers' Forum
      G
      glro
    • Explode 1 level component

      Hi,

      I have components containing components(nestled components? sub components?)

      I would like to explode only the first level of components, to keep the information contained in the sub components

      i tried this code

      
      ent = mod.entities
      
      	for e in ent
      		if e.is_a? Sketchup;;ComponentInstance 
      			e.explode
      		end
      	end
      
      

      but instead on exploding only the initial components once, it seems that sketchup explodes completely the first component, then the sub components of the first initial component, ...

      is there a way to explode only once the initial components?


      2 nestled components


      some components a exploded twice, and others never

      posted in Developers' Forum
      G
      glro
    • RE: [Plugin] Solids Penetration Check

      is the plugin able to check intersections between solids when they are part of components?
      i checked, and it doesn't seem so

      the connections are solids, intersection is detected when they are outside the component, and not when theyare inside

      is there a way to solve the problem?


      bracing connection intersection

      posted in Plugins
      G
      glro
    • RE: [Plugin]T2H_BuildingStructureTools2.2.4 in20141207

      [quote="tak2hata"]Building structure tool for Sketchup
      Draw Structures and Modify Easy.
      v0.2--solved probrem about reading default first time by TIG.Thanks.
      [attachment=0:1inpg13m]<!-- ia0 -->building_structure_tool.zip<!-- ia0 -->[/attachment:1inpg13m]

      very efficient

      a limitation, though, that makes it useless when you have to draw steel beams that are not parallel to the global axis

      changing to a provisional axis system doesn't help

      in addition to girder, beam, column, which a re horizontal or vertical, ... would it be possible to draw a structural member in any direction?

      posted in Plugins
      G
      glro
    • RE: Joyeux Noël 3D !

      @unknownuser said:

      Joyeux Noël! 😄
      petit test 😎
      (faire page précédente pour sortir 😉

      merci...

      c'est interessant.

      pour cette fonction, j'utilise simlab pdf exporter

      http://www.simlab-soft.com/3d-plugins/3D-PDF-from-sketchup-main.aspx

      mais il ne reconnait pas les traits simples (loose edges), seulement les surfaces

      vous utilisez quel logiciel pour arriver a ce résultat?

      posted in Français
      G
      glro
    • RE: Midpoint plugin

      @morgan_greywolf said:

      I just wrote a plugin that creates a cpoint at the midpoint of any two arbitrary points. You can get it from its page at github and you can read about it on my blog.

      the fist one is a good one... thank you for writing this plugin

      it will save me time... until now, i would draw a provisonal cercle or line, to get the point, and then delete it...

      now i won't have to delete anything

      posted in Plugins
      G
      glro
    • RE: [Plugin] Model Info

      @thomthom said:

      Oooh... I never noticed that option before! 😲

      if you choose this option, the statistics include the nestled components
      the whole problem is: how to retrieve this information?

      i think i might have a solution coming, but since it is not finished, i have to wait

      posted in Plugins
      G
      glro
    • RE: [Plugin] Model Info

      @thomthom said:

      @glro said:

      could you do the same job, but for "components" instead, and precisely with the developped hierarchy?

      You mean the stats for a selected component?

      What do you mean by the "developed hierachy"?

      the stats for components, instead of "for the whole model"

      this...


      essai_CR.jpg

      posted in Plugins
      G
      glro
    • RE: [Plugin] Model Info

      @thomthom said:

      Overview
      Outputs the model statistics to either console or file.
      ...

      http://forums.sketchucation.com/download/file.php?id=53761

      this is interesting...

      when you choose statistics, you have 2 options:

      entire model (that's what you exported)
      components

      could you do the same job, but for "components" instead, and precisely with the developped hierarchy?

      posted in Plugins
      G
      glro
    • RE: Create a text file from the components list

      @tig said:

      @glro said:

      @dedmin said:

      http://rhin.crai.archi.fr/rubylibrarydepot/plugin_details.php?id=198

      the text written by this plugin shows one line for each instance of a component

      it doesn't make the total for each component

      You never asked for that 😒

      your plugin "ComponentReporter++.rb" produces 3 text files:
      *_CR-Component+Report.csv
      *_CR-Instances+Report.csv
      *_CR-Parentage+Report.csv

      With the included example:

      "essai_CR-Component+Report.csv":

      DEFN-NAME,COUNT,DESCRIPTION,GUID
      Composant#1,1,,29b53a7c-2e6c-40b9-9f78-41e4abc0a62f
      Composant#2,1,,2306d93d-9156-46c9-bf4a-5a4e8a2f5e38
      Composant#3,4,,c969203b-e788-468f-b495-5936ea9bdd48

      As you can see, Composant#1 and Composant#2 are counted once only, when in reality, they appear 4 times in the model; the problem comes from the fact they are nested within Composant#3

      If Composant#3 instances are exploded, Composant#1 and Composant#2 are counted 4 times, and it is what i am looking for.

      But would be possible to get this result without exploding anything, using the information in your file "essai_CR-Parentage+Report.csv":
      'essai_CR'<Model>,''Composant#3<Instance>,
      'essai_CR'<Model>,''Composant#3<Instance>,
      'essai_CR'<Model>,''Composant#3<Instance>,
      'essai_CR'<Model>,''Composant#3<Instance>,
      'essai_CR'<Model>,'Composant#3'<Definition>,''Composant#1<Instance>,
      'essai_CR'<Model>,'Composant#3'<Definition>,''Composant#1<Instance>,
      'essai_CR'<Model>,'Composant#3'<Definition>,''Composant#1<Instance>,
      'essai_CR'<Model>,'Composant#3'<Definition>,''Composant#1<Instance>,
      'essai_CR'<Model>,'Composant#3'<Definition>,''Composant#2<Instance>,
      'essai_CR'<Model>,'Composant#3'<Definition>,''Composant#2<Instance>,
      'essai_CR'<Model>,'Composant#3'<Definition>,''Composant#2<Instance>,
      'essai_CR'<Model>,'Composant#3'<Definition>,''Composant#2<Instance>,

      By counting the last definition instance of each line, and produce the result in a file like "essai_CR-Component+Report.csv"?

      This is what sketchup does in the statistics windows, when you ask to developp for the component hierarchy, and it was my first question...


      nested components example

      posted in SketchUp Discussions
      G
      glro
    • RE: Create a text file from the components list

      @tig said:

      @glro said:

      @dedmin said:

      http://rhin.crai.archi.fr/rubylibrarydepot/plugin_details.php?id=198

      the text written by this plugin shows one line for each instance of a component

      it doesn't make the total for each component

      You never asked for that 😒

      right; i have been on this problem for such a long time that i forgot to mention it; anyway, your plugin does make the right total in one text file; except for the nested components.
      And in another text file, you establish the relation between the nested component and the nesting component

      So it would be possible to multiply the right numbers between them...

      posted in SketchUp Discussions
      G
      glro
    • RE: Create a text file from the components list

      @anssi said:

      @glro said:

      would it be possible to write a plugin that would produce automatically a text file, in the current folder, listing the components list, as it appears when you do
      windows>model info>statistics>components (developp hierarchy)
      ?

      You can select and copy the report from the statistics window to an empty text file or an Excel sheet. No need for a plugin

      Anssi

      yes, i could do that; but he idea is to use the text file as an input for a further operation; and the less clicks, the better...

      posted in SketchUp Discussions
      G
      glro
    • RE: Create a text file from the components list

      @dedmin said:

      Welcome to component's hell 💚 I have been struggling with this a lot and finally started using components only at the top level hierarchy - everything down are groups 😆

      yes, but you cannot list groups, can you?... and the purpose is to get a list; so i have to use only components

      posted in SketchUp Discussions
      G
      glro
    • RE: [Plugin] Finite Element Analysis (FEA) - Spring-mass model

      @bomastudio said:

      @glro said:

      It seems that somebody is trying to write something similar

      http://sites.google.com/site/teclait/home

      the structural part is still not available... but it will probably include some finite elements program...

      Yes, of course ... I'm a structural engineer .... I want to extend TECLA (see the project home

      http://sites.google.com/site/teclait/home

      to build a FEM software based on SU. Ad the moment I'm developing the Architectural modulus (that will be, with some changes, the Pre_processor).
      I'm looking for some FEM software open-source and find some:

      Calculix, GmsH, FreeFEM++ but nothing in ruby!!! Someone has news?

      i am afraid you won't find anything in Ruby; the language has not been used for structural analysis, as far as i know

      but it might not be a problem; you could link a program in Ruby, to another program in another language, by exchanging information through text files

      i did it between Ruby and Basic, and it worked...

      posted in Plugins
      G
      glro
    • RE: Create a text file from the components list

      simple things are not as easy as they seem, sometimes.

      i tried 'ComponentReporter++.rb'; it does a lot of things; the component-report.csv would be the closest result to what i am looking for; but there is a problem with nested components

      if COMP1 is nested once in COMP2, and there are 6 instances of COMP2, for example, COMP2 will be counted 6 times in the list, but COMP1 will be counted only once...

      on the countrary, in the list you get in sketchup from
      windows>model info> statistics>components
      COMP2 AND COMP 1 are both counted 6
      and this is what i would like to be in the text file too

      i tried to copy paste the code you wrote in a ruby console, but it doesn't work... i am sorry for being so ignorant... what would be the way to test the code you wrote?

      posted in SketchUp Discussions
      G
      glro
    • RE: Create a text file from the components list

      @dedmin said:

      http://rhin.crai.archi.fr/rubylibrarydepot/plugin_details.php?id=198

      the text written by this plugin shows one line for each instance of a component

      it doesn't make the total for each component

      posted in SketchUp Discussions
      G
      glro
    • Create a text file from the components list

      would it be possible to write a plugin that would produce automatically a text file, in the current folder, listing the components list, as it appears when you do
      windows>model info>statistics>components (developp hierarchy)
      ?

      posted in SketchUp Discussions sketchup
      G
      glro
    • 1 / 1