The interface that allows for writing SketchUp models.
More...
List of all members.
Public Member Functions |
HRESULT | SaveToFile ([in]BSTR filePath) |
| Save a SketchUp model to a file.
|
HRESULT | SaveToStream ([in]IStream *pStream) |
| Saves a SketchUp model to an IStream.
|
HRESULT | SetSaveVersion ([in]long version) |
| Sets the version of the SketchUp model to save to.
|
Detailed Description
The interface that allows for writing SketchUp models.
This interface is supported by ISkpDocument objects.
Member Function Documentation
HRESULT ISkpFileWriter::SaveToFile |
( |
[in] BSTR |
filePath |
) |
|
Save a SketchUp model to a file.
- Parameters:
-
| filePath | The full path to the file to save to. |
- Returns:
-
S_OK on success;
-
E_POINTER if ppDoc is NULL;
-
E_SKP_SKETCHUP_MODEL_INVALID The model was invalid;
-
E_SKP_SKETCHUP_MODEL_MORE_RECENT The model was created with a version of SketchUp more recent that this;
-
E_SKP_FILE_SERIALIZATION_ERROR Serialization of the file failed;
-
E_SKP_FILE_NOT_FOUND The file was not found;
HRESULT ISkpFileWriter::SaveToStream |
( |
[in] IStream * |
pStream |
) |
|
Saves a SketchUp model to an IStream.
- Parameters:
-
| pStream | The stream to save the model to. |
- Returns:
-
S_OK on success;
-
E_SKP_FILE_SERIALIZATION_ERROR Serialization of the file failed;
HRESULT ISkpFileWriter::SetSaveVersion |
( |
[in] long |
version |
) |
|
Sets the version of the SketchUp model to save to.
The valid versions are- SKETCHUP1_0- 1000 SKETCHUP2_0- 2000 SKETCHUP3_0- 3000 SKETCHUP4_0- 4000 SKETCHUP5_0- 5000 SKETCHUP6_0- 6000 SKETCHUP7_0- 7000 SKETCHUP8_0- 8000
- Parameters:
-
| version,the | version to save to. |
- Returns:
-
S_OK on success;
-
E_SKP_FILE_SERIALIZATION_ERROR Serialization of the file failed;