🏒 PlaceMaker | 25% off for February including new Google Earth data imports! Learn more
  • Get_datfile_info

    2
    0 Votes
    2 Posts
    181 Views
    thomthomT
    The file seem to be a config file of SU. @unknownuser said: // NOTE TO USERS: Making modifications to this file is not recommended as it will be overwritten // each time an upgrade is installed. I don't see much useful info in it for us... Possibly it could be used to brand SU - but as the file warns - it'll be overwritten upon SU updates...
  • Small face fails

    5
    0 Votes
    5 Posts
    324 Views
    S
    @jim said: You may be able to use a PolygonMesh instead of adding each Face. The mesh will also be faster to create than individual faces; but which is better depends on your goal. See also: http://code.google.com/apis/sketchup/docs/ourdoc/entities.html#add_faces_from_mesh http://code.google.com/apis/sketchup/docs/ourdoc/entities.html#fill_from_mesh Yes I thank you, but I am working about some interfaces between SketchUp and other CAD system. At this moment I am unable to find the unique criterion that SkUp uses to dispense the order of the ponts in the mesh. Especially about faces edited by subtraction of other faces or with holes. The mesh is really difficult to decode because the vertexes seem to hop and to return using a lot of different combinations. This is really laborious and so I use to split triangular faces, that in CAD is a 4 vertexs faces with a duplicated vertex, or, where it'i possible, a couple of SkUp triangles that are a unique (cad) 3DFACE. Anyway I thank you very much, because I'll to import also textures, and I will need of the meshes also, I fear... Excuse my bad english..
  • Manipulate a ruby from command line?

    11
    0 Votes
    11 Posts
    485 Views
    M
    ah, OK cheers Jim. It looks like it will be possible one way or another! now I know its possible, time to hunt down someone with the capabilities Thanks a lot for the help, Tom
  • Groups to components plugin ploblem

    8
    0 Votes
    8 Posts
    327 Views
    thomthomT
    hmm... that can be a problem with symmetrical objects like this - there are several possible ways to orient them...
  • Help with ruby

    4
    0 Votes
    4 Posts
    2k Views
    A
    My previous ruby file didn't even have the ./ to delete.in that script... tried for days to make it work. Cleared up now with this one ..Many Thanks :O)
  • Get objects at specified poitn

    11
    0 Votes
    11 Posts
    474 Views
    Chris FullmerC
    Good question, hopefully soon. Now we'll have to add a version check to make sure people are not running SU 8, original release. But that's ok, the fix will be well recieved.
  • A clone of an active_view.camera

    9
    0 Votes
    9 Posts
    295 Views
    TIGT
    But it is a transient setting! If you click in the view it evaporates... It would be good if it were accessible but it is pretty transient...
  • Close webdialogs on File-New/Open

    14
    0 Votes
    14 Posts
    584 Views
    Dan RathbunD
    Agreed. I logged several Feature Requests for MDI support (new methods) in the API, including a Models collection.
  • Face Me

    9
    0 Votes
    9 Posts
    366 Views
    thomthomT
    What makes it more troublesome is that the documentation doesn't mention bugs that appeared in the various methods in the various SU versions.
  • Vector transformation ... whut?

    3
    0 Votes
    3 Posts
    255 Views
    thomthomT
    Never - my brain was being silly.
  • Problems saving user preferences

    8
    0 Votes
    8 Posts
    368 Views
    honoluludesktopH
    Wow, Sketchup.read_default and Sketchup.write_default were easy to implement. Attaching the defaults to individual models can also be advantageous, and I will have to think about the best way to save user defaults. Thanks guys. a_values=[] s_value="" s_value = Sketchup.read_default "honoluludesktop","values","None:Inches:Model:to Faces:by Number" a_values = s_value.split(":") . . results = inputbox prompts,a_values,enums,my_file_name+" Options" . . a_values = ["None",scale_sel,origin_sel,dface_sel,material_sel] s_value = a_values.join(":") result = Sketchup.write_default "honoluludesktop","values",s_value
  • Face loop vertex order?

    15
    0 Votes
    15 Posts
    2k Views
    honoluludesktopH
    TIG, As you suggest, I will work on this and post what I find. Thanks.
  • Transformation in scale

    6
    0 Votes
    6 Posts
    304 Views
    honoluludesktopH
    tt, and cf, Thanks. Got it to work as follows: my_definition.entities.transform_entities(t,my_definition.entities.to_a) Off and on for 4 days, this has got to be the longest time I've spent getting a single line of code right. Hopefully I'm getting better.
  • Launching Google Sketchup from external application

    2
    0 Votes
    2 Posts
    380 Views
    thomthomT
    http://forums.sketchucation.com/viewtopic.php?f=180&t=30000
  • ACad Colors 2 RGB

    8
    0 Votes
    8 Posts
    436 Views
    honoluludesktopH
    I unzipped a skm to see what it contained. If I learn enough, maybe working with skm's is something I can attempt to tackle a year from now?-)
  • Extract Zip files via SU Ruby?

    5
    0 Votes
    5 Posts
    289 Views
    tbdT
    I think it can be ported on OSX as zlib (library that I used in dezip) is available on OSX as well.
  • Confused about using gems...

    3
    0 Votes
    3 Posts
    303 Views
    Chris FullmerC
    SketchUp runs its own version of Ruby. That is why it is reporting 1.8.6.
  • Model.raytest and Entity visibillity

    28
    0 Votes
    28 Posts
    2k Views
    Al HartA
    @thomthom said: Right, so the raytest should have an argument to ignore hidden. And, hopefully, they will make it an optional argument, so they don't break all the existing ruby files once again.
  • Mac Plugins in home folder

    3
    0 Votes
    3 Posts
    231 Views
    thomthomT
    The holy grail would be if people just followed the instructions of the API docs...
  • Commit_operation bug

    28
    0 Votes
    28 Posts
    1k Views
    Dan RathbunD
    Manuela, Add into your onQuit method, statements that detach your plugin's observers, then dispose of the observer instances by setting them to nil, and then call GC.start (Garbage Collection.) See if that prevents the BugSplat!s when SU closes.

Advertisement