The interface that allows for file manipulation.
More...
List of all members.
Detailed Description
The interface that allows for file manipulation.
This interface is supported by ISkpApplication objects that allow for file open operations.
Member Function Documentation
HRESULT ISkpFileReader::OpenFile |
( |
[in] BSTR |
filePath, |
|
|
[out, retval] ISkpDocument ** |
ppDoc | |
|
) |
| | |
Opens a file on the local file system and returns an ISkpDocument on success.
- Parameters:
-
| filePath | The full path to the file to open. |
- Return values:
-
| ppDoc | The document that gets returned. The value is NULL if the file cannot be opened for some reason. |
- Returns:
-
S_OK on success;
-
E_POINTERif 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 ISkpFileReader::OpenFromClipboard |
( |
[out, retval] ISkpDocument ** |
ppDoc |
) |
|
Loads a SketchUp model from the clipboard and returns an ISkpDocument on success.
- Return values:
-
| ppDoc | The document that gets returned. The value is NULL if the load failed. |
- 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;
HRESULT ISkpFileReader::OpenFromStream |
( |
[in] IStream * |
pStream, |
|
|
[out, retval] ISkpDocument ** |
ppDoc | |
|
) |
| | |
Loads a SketchUp model from an IStream and returns an ISkpDocument on success.
- Parameters:
-
| pStream | The stream to load the model from. |
- Return values:
-
| ppDoc | The document that gets returned. The value is NULL if the load failed. |
- 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;