⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
  • Why is my Group deleted while trying to add entities to it?

    20
    0 Szavazatok
    20 Hozzászólások
    905 Megtekintések
    T
    Also, even if you don't use it, group.entities.add_faces_from_mesh and group.entities.fill_from_mesh seem to delete everything existent in that group. Edit: thomthom corrected me, sorry. Also, i wrote group.fill_from_mesh instead of group.ENTITIES.fill_from_mesh. I'm going to crawl back to my hole now, one post, two mistakes is quite embarrassing.
  • Detect if SU was started with a template or a model

    3
    0 Szavazatok
    3 Hozzászólások
    119 Megtekintések
    daikuD
    Worked Perfectly. Thanks, Tig!
  • Push pull problems/face orientation wobbly

    3
    0 Szavazatok
    3 Hozzászólások
    362 Megtekintések
    S
    Thanks Dan. Will do. [edit] In the end I set up a vector in the direction I wanted the face to go and used "samedirection" to check and used reverse liked you suggested. Initially I tried 'parrallel?' not thinking that that wouldnt catch vectors in the exact opposite direction. if not(face.normal.samedirection? correctV3d ) then face.reverse! end This worked.
  • Rotation about the origin

    6
    0 Szavazatok
    6 Hozzászólások
    353 Megtekintések
    daikuD
    This already exists here: http://rhin.crai.archi.fr/rld/plugin_details.php?id=345 and here: http://forums.sketchucation.com/viewtopic.php?f=323&t=9739&hilit=rot90 Perfect for mapping to a shortcut key.
  • Retrive the tool selected before launching my plugin

    12
    0 Szavazatok
    12 Hozzászólások
    714 Megtekintések
    N
    Now, I'm using name to identify the tool For this moment it works I don't understand the ID method, maybe when I feel ill at ease with ruby, I can understand how it works Thank you Dan and Karen !!
  • Webdialog: set_url and write html in a file? how?

    11
    0 Szavazatok
    11 Hozzászólások
    714 Megtekintések
    bomastudioB
    I've just used the wget.exe tool. And it works!! But I had some trouble with the system command....
  • Hierarchy question

    3
    0 Szavazatok
    3 Hozzászólások
    145 Megtekintések
    Dan RathbunD
    Edited the first paragraph of my reply (above,) to make it more clear that the entities collection, belongs to the ComponentDefinition, and not the instance (be they groups or components.)
  • Sketchup and ruby

    5
    0 Szavazatok
    5 Hozzászólások
    461 Megtekintések
    S
    Thank you very much TIG and kwalkerman. I have tried some simple codes.And the tool interface and pickhelper will be just fine for the task. But now it raised a problem. I want to select a whole sketchup entities object, as one object. So that when I click anywhere on that object (like a house or a building), the same data record will be retrieved from the database. The database contains a record for each house. Do you have any idea about this? Thank you
  • Meshing question

    10
    0 Szavazatok
    10 Hozzászólások
    331 Megtekintések
    M
    Merci quand meme! Ca fait plaisir de discuter de toutes facons. OK, It's still on! Pilou thought I was looking for plugins, not for coding methods.
  • 3D view inside my website

    12
    0 Szavazatok
    12 Hozzászólások
    945 Megtekintések
    T
    A friend of mine sent me the following link, looks like another reason to buy an iPad soon. http://itunes.apple.com/ca/app/magicplan/id427424432?mt=8&ls=1 I'm curious for feedback, .... any ipadies out there willing to testdrive this app?
  • HELP setting up a SU code editor

    97
    0 Szavazatok
    97 Hozzászólások
    8k Megtekintések
    C
    I did a search on the aptana site for "sketchup" and didn't find anything. Are there any installation instructions on how to pair up aptana and sketchup? @thomthom said: That's an interesting article. @unknownuser said: You can download Aptana Studio and RadRails, but the installation process is long and complicated. Besides, if you just want a Ruby editor, downloading a 30-day evaluation version of the gigantic Aptana Studio isn't worth it. Complicated installation process? And the thing is free. http://www.aptana.org/ Anyway - are you able to set breakpoints etc in SU plugin scripts and run them from Eclipse?
  • One-liners

    22
    0 Szavazatok
    22 Hozzászólások
    825 Megtekintések
    N
    I've actually gone and changed my first post so that semi colons are allowed, and have modified your magic formula so the 3 steps are all in one line. I wanted no semicolons to avoid people going crazy with them (you could essentially write a whole program with them in one line of text). How about 3 semi colons maximum?
  • Copy tool --> no preview

    14
    0 Szavazatok
    14 Hozzászólások
    426 Megtekintések
    N
    @dan rathbun said: @thomthom said: Instead of a timer, wouldn't DefinitionObserver.onComponentInstanceAdded be better..? https://developers.google.com/sketchup/docs/ourdoc/definitionobserver#onComponentInstanceAdded He is a month-old newbie.. I didn't want to go into observers with him yet. right ! thanks not "month-old", I'm "week-old" newbie !
  • Stumped

    2
    0 Szavazatok
    2 Hozzászólások
    175 Megtekintések
    TIGT
    I moved your post to a more appropriate place. There are several good threads here - e.g. http://forums.sketchucation.com/viewtopic.php?f=180&t=10142 Also 'Automatic Sketchup' is a good general primer. http://www.autosketchup.com/ On your particular subject... You have already go something like mytext=Sketchup.active_model.active_entities.add_3d_text(xxxxxxxxxxxxxx) where ' xxxxxxxxxxxxxx' represents the various arguments that you need to pass to the method... This then adds the 3d-text as 'raw geometry' into the current context [usually the model's entities]. If you look at the API section on 'entities' https://developers.google.com/sketchup/docs/ourdoc/entities there are lots of ways to add things to ANY 'entities' collection... So to add a group to the model.entities use group=Sketchup.active_model.entities.add_group() Now you have a group in the model and can add things to that group's entities, instead of the model, thus... group.entities.add_3d_text(xxxxxxxxxxxxxx) Now the 3d-text's geometry is inside 'group'... You can add more things into it, or change its name, material, layer etc as you now have a reference to it ' group'... You can even add groups inside such new groups etc, as you desire...
  • Mystery

    4
    0 Szavazatok
    4 Hozzászólások
    208 Megtekintések
    M
    @tig said: Are all of your methods wrapped inside a module and/or class ? I'd be surprised that Fredo has a raw 'deactivate' method I suspect you do ! It might be an observer trapping your error into his own error reporting, assuming it's his tool's error... The standard Tool deactivate method is def deactivate(**view**) ...Try adding that inside a Tool class... ??? https://developers.google.com/sketchup/docs/ourdoc/tool#deactivate YES! That did it! Yes it was all within a class. Just adding "(view)" solved the problem. I didn't change anything else. The deactivate method was within the class and still is. Yes indeed I strongly suspected that Fredo had nothing to do with this. Thanks TIG and Dan.
  • Looking for a Developer

    4
    0 Szavazatok
    4 Hozzászólások
    163 Megtekintések
    J
    @dan rathbun said: Are you the JL2004 who posted this ?? https://groups.google.com/forum/?fromgroups#!topic/sketchupruby/2Tdb5bYyyd8 No that is not me. I am looking through the Ruby Guide as well as teaching myself Ruby. Just feel its taking a long time and its something I would like to get out sooner than later.
  • Define possible (manifold) groups in a model

    2
    0 Szavazatok
    2 Hozzászólások
    135 Megtekintések
    TIGT
    Perhaps start from a different angle... A manifold solid group has the following properties... It contains only faces and their edges. AND these edges can only have two faces - no fewer, no more. So this is start - you can eliminate all other faces/edges ? The number of permutations will always expand exponentially... What is it you are trying to do, exactly ?
  • Menus & Tools

    11
    0 Szavazatok
    11 Hozzászólások
    450 Megtekintések
    N
    @dan rathbun said: @niccah said: Just a small question: Why you are writing " Sketchup.require"? Are there any differences to the "normal" require? FYI: The "normal" require (and load,) comes from module Kernel. Sketchup.require and Sketchup.load can call the internal decryption for rbs files, but the Kernel ones cannot. Okay, this sounds logic! Thanks for the information!
  • Plugin for Gaussian bells

    5
    0 Szavazatok
    5 Hozzászólások
    238 Megtekintések
    D
    thank you very much for the help, great links
  • Explode group, retrive all entities and recreate group

    14
    0 Szavazatok
    14 Hozzászólások
    2k Megtekintések
    N
    @dan rathbun said: Does your boss ever use the [image: file.php?id=87554] Model Info > Statistics panel ?? [attachment=1:1ebrpxvl]<!-- ia1 -->ModelInfo_Statistics.png<!-- ia1 -->[/attachment:1ebrpxvl] Yes he knows this tool, but it don't give you the texture (in m²) and of the components neither groups thanks to all everybody !!! I think I found the solution. When I need to found each entities in a group I use that : if g.is_a?(Sketchup;;Group) g.entities.each do |element| if element.definition.name[0] != 0 && element.name == "" element.name = "#{element.definition.name}" end # end if end #|element| With that, I can change the name of component inside a group The first code of TIG gave me an idea, I combine my code with a piece of code from him and it worked ! (it was only a sample of code used to test for me) Now I have to copy that piece of code in the big one ! Before : [image: 33890297.png] After launching the plugin : [image: 18942418.png]

Advertisement