πŸ’‘ LightUp 7.1 | SketchUp's only real-time renderer that uses object-based rendering Download Trial
  • 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
  • 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
  • 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...

  • Semantic: Options vs Settings vs Preferences

    15
    0 Votes
    15 Posts
    12k Views
    eneroth3E

    Just the other day I read a Microsoft guideline stating which one was preferred in Windows, but I just can't find it anymore, and instead found my way back here (Hello everyone!). "Preferences" seem to be preferred on Mac. Config or configurations seem to be exclusively used in very technical contexts, not to what a user could change from a graphical UI.

    Is any of the terms more used than others for SU extensions? I'm thinking about using Preferences as it matches SU's own phrasing, even though it might contradict MS guidelines.

  • Attaching arbitrary data to a model

    5
    0 Votes
    5 Posts
    3k Views
    B

    Please forgive me. I was convinced that I'd already replied. This is exactly what I needed (and I'm further at a loss wrt how I didn't see that in the the API reference). Thanks very much

  • DevCamp 2017 - Leeds, UK

    2
    0 Votes
    2 Posts
    3k Views
    SiPieFaceS

    Did this event happen? I've seen nothing about since this post. No YouTube vids, write ups or anything. Was wondering if it was any good as I couldn't make it at the time.

  • [Concept] Materials++

    35
    0 Votes
    35 Posts
    11k Views
    renderizaR

    @thomthom said:

    [*]Material Context Menu - Copy/Paste Hex values.

    I was planning to do an extension which allowed me to use Hex instead of RGB ❗

    I work with HEX values a lot and think SketchUp should support this feature natively. I might still give it a try to see what I can come up with.

    Keep the great work Thomthom! πŸ‘

  • Trying to get a string

    4
    0 Votes
    4 Posts
    3k Views
    Dan RathbunD

    @web said:

    That explains why I couldn't figure out how to do it.

    The real reason is because standard IO has been redirected to SketchUp's Ruby Console.

  • #show_modal - HtmlDialog vs. WebDialog

    2
    0 Votes
    2 Posts
    2k Views
    fredo6F

    Yes, WebDialogs are not truly modal on Mac. So you have two problems:

    The code processing continues after you called wldg.show_modal. You thus have to implemnet a
    callback in your Web dialog class to tell the main code when the dialog box is dismissed. Visually the web dialog appears on top but does not prevent to use other elements of the GUI.
    Although the user may not do that naturally, he could technically.

    It seems that HTML dialog has addressed the problem on Mac, that is blocking code and dialog box preempting the focus and events.

    Fredo

  • Small Green Box in scale tool

    10
    0 Votes
    10 Posts
    21k Views
    P

    I found the solution. .

    the file won't give a readable code . . when downloaded via Google chrome . .it should be downloaded through extension warehouse . .

    Going back to the small green cube in the scale tool. .
    ( i already know how to make colors for the cube )

    can anyone help me how make sketchup recognize the temporary drawing green cube when I hover the mouse over it?

Advertisement