sketchucation logo sketchucation
    • Login
    1. Home
    2. gmolina1
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    G
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 6
    • Groups 1

    gmolina1

    @gmolina1

    10
    Reputation
    1
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    gmolina1 Unfollow Follow
    registered-users

    Latest posts made by gmolina1

    • LD_LIBRARY_PATH ... call executables and dynamic libraries

      Hello All,

      I am dealing with some weird behaviour. I am trying to make SketchUp call Emp. Since Emp requires some dynamic libraries to be available, what I am doing is to add the path where they are located to the ENV["LD_LIBRARY_PATH"] (see THIS).

      Then, when I call Emp from the Ruby Console, it works (I am using THIS method). However, when I call the same method from an HTMLDialog using a callback, it does not work, saying that my dynamic libraries are not available.

      Any suggestions? Is this the recommended method?

      THANKS!

      posted in Developers' Forum
      G
      gmolina1
    • RE: Definitions.load_from_url failing when called from an HTMLDi

      It worked wonderfully! I was using the load_from_url method with a file:// prefix before, and it also worked... but this makes more sense.

      Thanks!

      posted in Developers' Forum
      G
      gmolina1
    • Definitions.load_from_url failing when called from an HTMLDi

      Hello,

      I am trying to load a ComponentDefinition from a local file in my PC (shipped with the extension, actually), but it just freezes when done from an HTMLDialog callback.

      The original call is made from HERE, and it freezes when gets to THIS point.

      However, when I call the GH::Groundhog::Photosensor.add(arguments) function from the Ruby console, it works beautifully.

      Any idea why this might be happening? I could not find any other information online

      THANKS TO ALL IN ADVANCE!

      EDIT::: This is happening in Sketchup Make 2017, in macOS High Sierra.

      posted in Developers' Forum
      G
      gmolina1
    • RE: Make SketchUp API to recognize System PATH

      Thanks, Dan! Your answer does give A LOT of food for thought. I will try someof these and let you know.

      Regards

      posted in Developers' Forum
      G
      gmolina1
    • Make SketchUp API to recognize System PATH

      Hello everyone,

      I have been developing a SketchUp extension for a while, but I am not really a programmer... please be patient, haha. I am trying to call Radiance, a lighting analysis toolbox... its calculations take a while, and the programs are meant to be run in the terminal. My idea is to create some scripts for enabling the non-expert users to perform simulations.

      As a start, I managed make systems calls using "popen3", which allow me to diference the stout from the stderr, etc. That is cool.

      The problem now is that the programs in my PATH are not recognized. I tried to write the whole directory, but some of the programs call, internally, more programs... so I get the "program not found" (does not say exactly that) error.

      Is there any way of telling SketchUp too register some directories as part of the PATH? As a second option, I thought on creating a JAVA app that is opened from SketchUp to manage the simulations? Is this possible/advisable? Whould the same happen here? A JAVA app would actually give me the advantage of porting it to Linux, where calculations take shorter times (bigger computers, haha).

      Another fact to consider is that I do not want SketchUp to be paralized while calculating.

      There are a few things to consider in the blender... if you could help me with the mess in my head, it would be awesome.

      Best,

      posted in Developers' Forum
      G
      gmolina1
    • RE: SketchUp 2016 Wishlist

      Allow choosing Vertex colors through the API!! That would be awesome for heatmmaps and other stuff.

      posted in SketchUp Feature Requests
      G
      gmolina1