ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Shadow Control Possible? (solved)

    10
    0 Votes
    10 Posts
    6k Views
    M
    dude, did you know that everytime you save a scene there is the option to save it with the current settings? Maybe this wasn't the case back in 2013 but there you go
  • SKM files and the API

    5
    0 Votes
    5 Posts
    3k Views
    medeekM
    Most users of the plugin are SU 2018 but I've received some kickback from others so I may have to put this plan on hold and go a different direction.
  • Set the last column of a Geom::Transformation

    2
    0 Votes
    2 Posts
    3k Views
    F
    You may find information on this in: "Automatic SketchUp - Creating 3-D Models in Ruby" by Mathew Scarpino Permissions may be sought directly from Eclipse Engineering LLC: Fax: (925) 262-1757 E-mail: info@eclipseengineer.com Appendix B: Advanced Geometry..................................... 391 B.3 Introduction to Transformation Matrices .........................................406 B.4 Combinations of Transformations...................................................415 B.5 Transforming Points and Vectors....................................................418 B.6 Mathematics of Combining Transformations....................................423 You may find helpful links here: http://sketchucation.com/forums/viewtopic.php?f=180&t=10142&p=573943&hilit=automatic+sketchup#p269709
  • [Obsolete] Offset On Surface (v1.0)

    48
    0 Votes
    48 Posts
    25k Views
    fredo6F
    @einstein said: Hi! I know, it's a dusted thread but maybe someone will make me know. Is it possible that Offset on Surface would treat separately several neighbouring surfaces selected at one time? I mean, instead of creating one big offset from selection border, it would make several offsets, each out of one surface separately. Not sure I understand. Could you be more precise or give a concrete example. Fredo PS: you can use the Thread of ToolsOnSurface, or start a new discussion thread for this subject.
  • Ruby command to rotate or move on axis.

    2
    0 Votes
    2 Posts
    3k Views
    S
    That sort of thing is done with a Transformation. Look up Transformation in the SketchUp Ruby API documentation.
  • Triangle orientation

    3
    0 Votes
    3 Posts
    3k Views
    IltisI
    Thank you very much for this explanation and for the special case. It helps a lot.
  • Combining components into 1 component

    6
    0 Votes
    6 Posts
    3k Views
    K
    Thanks Mitch your code worked very well once I figured out the transformation I needed. The code also left the component entities on Layer0 which was a problem for my code. The forum is an amazing source of info thanks to the many people who are willing to share their knowledge. Keith
  • Exporting vertices of every edge to csv

    3
    0 Votes
    3 Posts
    3k Views
    CoreMaster110C
    Oh wow, thank you! It works great. It's actually pretty simple and straight forwards. I did hope that start and end positions allow something like this to be done. Regards, Karl
  • Offset a line Ruby command

    7
    0 Votes
    7 Posts
    5k Views
    TIGT
    You can replicate an offset for a face. The code is not so simple. Install my old tool https://sketchucation.com/pluginstore?pln=TIG_Smart_offset Read the code and try to understand how it works... It's somewhat more complicated than you need, but you should be able to extract what you need...
  • [Code] Tracking Models during a Ruby session

    14
    0 Votes
    14 Posts
    5k Views
    eneroth3E
    Any news on this topic? Can model specific states be safely indexed by the model object now or do we still need to use hacks such as using the DefinitionsList object id as index?
  • IFC and problem with rfa.

    4
    0 Votes
    4 Posts
    3k Views
    jujuJ
    @dan rathbun said: @juju said: 1: No direct Revit import. If you want to import Revit files you'll need to export from Revit to a format that SketchUp will import. SketchUp User Guide: Using SketchUp Data with Other Modeling Programs or Tools @juju said: 2: IFC export is possible from SketchUp Pro, not sure which was the earliest version (2016?) @unknownuser said: ](http://ruby.sketchup.com/Sketchup/Model.html#export-instance_method)":jm81no8r]SketchUp Pro 2015+ added IFC export capability. thx Dan!
  • Grouping and ungrouping

    3
    0 Votes
    3 Posts
    12k Views
    TIGT
    Use model.active_entities, working in model.entities IF it's not the current context will BugSplat. You can get references to the objects which result from the explode operation [any previous reference to that line etc will get lost as it explodes] exps = group.explode Gives you an array - in your case it'll probably be an array containing one line... You could then remake a group in the active_entities with group2 = entities.add_group(exps) or perhaps exps.grep(Sketchup::Edge)[0] If you want to replicate the group then after the first group is made you simply add a copy of it, then explode the original, so that the edge is now in the copied group, and it is replicated back in the active_entities... group.entities.add_line(...) group2 = entities.add_instance(group.definition, group.transformation) Now explode the original 'group' back to the edge in the active_entities... The second copy 'group2' remains, it contains the replicated edge...
  • Message for Fredo6

    12
    0 Votes
    12 Posts
    5k Views
    E
    Hi fredo6, can u update XRaySelection ? ty !
  • Import DAE, place it to center and save SKP

    3
    0 Votes
    3 Posts
    3k Views
    S
    Hi TIG, sorry for the late reply - I have been busy finishing another project project. I have just tested your code and it works perfectly! Thank you million times! Best regards, Stan
  • Force import as Image

    2
    0 Votes
    2 Posts
    3k Views
    jiminy-billy-bobJ
    Use this : http://ruby.sketchup.com/Sketchup/Entities.html#add_image-instance_method
  • Selection to component

    8
    0 Votes
    8 Posts
    3k Views
    D
    Thanks to both of you for a very useful code snippet. Especially helpful when you're making a component from loose geometry and forgot to check "Replace selection with component", and have to go through the process twice. Always good to save clicks and annoyances.
  • SVG Toolbar Icons - Gradients Missing

    21
    0 Votes
    21 Posts
    5k Views
    M
    @placidfury said: or manually edit the SVG code so SketchUp will read it properly Well, SVG is XML and Nokogiri would certainly be up to the task. Wouldn't even need SketchUp to do the processing... Greg
  • Detecting/selecting a temporary Drawing

    2
    0 Votes
    2 Posts
    3k Views
    Dan RathbunD
    No one will attempt to even read you code until it is properly formatted within [ code ] ... [ /code ] tags. There is a button on the post edit toolbar to insert these tag sets, or highlight a bunch of text and click the button to wrap the text in these tags.
  • Socket.so sketchup 8 and 13

    5
    0 Votes
    5 Posts
    3k Views
    Dan RathbunD
    Search this forum for discussions. This has been answered before ... http://sketchucation.com/forums/search.php?keywords=SKSocket&fid%5B0%5D=180 ... which hits on ... http://sketchucation.com/forums/viewtopic.php?f=180&t=29836&p=271469&hilit=SKSocket#p271469
  • Add an array of entities to an existing group?

    3
    0 Votes
    3 Posts
    3k Views
    TIGT
    Unfortunately, if the model.active_entities is not the @existinggroup.entities context and/or the array of added entities is not in that same context, then a BUgSplat! awaits... You cannot 'cross-thread' entities across contexts...

Advertisement