• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

C SDK - how to export a model to a dwg file

Scheduled Pinned Locked Moved Developers' Forum
7 Posts 5 Posters 468 Views 5 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.
  • M Offline
    marcel_fluid
    last edited by marcel_fluid 17 Nov 2014, 20:46

    Hi, I'm looking to use the Sketchup C SDK to create a simple model with materials and texture images, and write that out to a dwg file.

    Edit:
    I just realized that I forgot to mention that we need to run this with unattended execution on a server, so we can't do it via a Ruby plugin running in sketchup.

    I haven't been able to find any C sample code for how to export a model. If anyone has any links I'd be grateful.

    Or do we use the Ruby API examples and convert those to C somehow?

    thanks,
    Marcel

    1 Reply Last reply Reply Quote 0
    • D Offline
      driven
      last edited by 17 Nov 2014, 21:34

      @marcel_fluid said:

      ...
      Or do we use the Ruby API examples and convert those to C somehow?l

      hi Marcel,
      why do you need C at all?

      create your model in ruby, the use ruby to export...

      I can't see from what you have written why you need C...

      john

      learn from the mistakes of others, you may not live long enough to make them all yourself...

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by 17 Nov 2014, 21:40

        With the C SDK you are not required to actually run SketchUp as is the case with the Ruby API. Maybe he needs a command-line or stand-alone executable that does not require SketchUp to be running, or even to be installed.

        Hi

        1 Reply Last reply Reply Quote 0
        • G Offline
          Gábor
          last edited by 18 Nov 2014, 08:11

          The downloadable SDK pack itself contains an XML exporter example. It is a good start to examine that.

          1 Reply Last reply Reply Quote 0
          • M Offline
            marcel_fluid
            last edited by 18 Nov 2014, 14:18

            @driven said:

            @marcel_fluid said:

            ...
            Or do we use the Ruby API examples and convert those to C somehow?l

            hi Marcel,
            why do you need C at all?

            create your model in ruby, the use ruby to export...

            I can't see from what you have written why you need C...

            john

            Hi John, thanks for the response. I just realized I forgot to mention that we need to run this as a service, so it can't happen with a plugin in Sketchup itself, which is why we need the C sdk.

            Marcel

            1 Reply Last reply Reply Quote 0
            • M Offline
              marcel_fluid
              last edited by 18 Nov 2014, 20:19

              @jim said:

              With the C SDK you are not required to actually run SketchUp as is the case with the Ruby API. Maybe he needs a command-line or stand-alone executable that does not require SketchUp to be running, or even to be installed.

              Hi Jim, this is exactly the case. My research is making it look more and more like we're actually going to have to switch to the Revit API in order to do this.

              Thanks,
              Marcel

              1 Reply Last reply Reply Quote 0
              • T Offline
                tt_su
                last edited by 20 Nov 2014, 10:12

                @gábor said:

                The downloadable SDK pack itself contains an XML exporter example. It is a good start to examine that.

                This is what I'd recommend as well.

                The C SDK is for reading and writing SKP files. If you need to convert to another file format you need the C SDK then convert to the target file format manually.

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

                Advertisement