C SDK - how to export a model to a dwg file
-
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 -
@marcel_fluid said:
...
Or do we use the Ruby API examples and convert those to C somehow?lhi 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
-
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.
-
The downloadable SDK pack itself contains an XML exporter example. It is a good start to examine that.
-
@driven said:
@marcel_fluid said:
...
Or do we use the Ruby API examples and convert those to C somehow?lhi 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
-
@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 -
@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.
Advertisement