sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Writing a C extension

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 276 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I Offline
      ishboo
      last edited by

      Hey all,

      I am embarking on the dark road of C extensions and had a few questions in regard to how to go about writing one:

      • Are there any good tutorials/blogs about how to write an extension. I've been looking but coming up empty handed. I'd love to find one that shows how to make a minimal extension on a Mac, if possible.
      • How can I make a universal binary (e.g. one that will work on Mac and PC)? Is it possible? Any experience doing one?
      • Has anyone had experience writing a C extension that downloads a file from a website to the local filesystem? If so, how did you go about doing it?

      Any direction/tips/links on these issues would be greatly appreciated!

      Cheers,
      Dana

      SketchUp plugin marketplace: http://extendsketchup.com/

      1 Reply Last reply Reply Quote 0
      • I Offline
        ishboo
        last edited by

        Nobody have experience with this?

        SketchUp plugin marketplace: http://extendsketchup.com/

        1 Reply Last reply Reply Quote 0
        • Dan RathbunD Offline
          Dan Rathbun
          last edited by

          @ishboo said:

          Nobody have experience with this?

          We have discussed this in previous topics...

          ... we currently have an active topic going on C/C++ Plugins:
          Plugin DLL

          Other threads on this issue:

          Getting Started with C++ and Sketchup

          Ruby extension module using C/C++ (mostly about using SWIG)

          Example of Compiled Extension with SWIG and CMake

          Ruby C++ extension crashes SketchUp

          Re: Optimization Tips (discussing Ruby vs C speed)

          Programming in C, C++ for Mac and Windows?

          Are Swig generated Ruby bindings compatible with Sketchup?

          Examples:

          TBD's SUExt extension example

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement