LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Enumerations | Functions
sketchupmodel.h File Reference
#include <LayOutAPI/common.h>
#include <LayOutAPI/geometry/geometry.h>
#include <LayOutAPI/model/defs.h>
#include <SketchUpAPI/model/defs.h>

Go to the source code of this file.

Enumerations

enum  LOSketchUpModelRenderMode { LOSketchUpModelRenderMode_Raster = 0, LOSketchUpModelRenderMode_Hybrid, LOSketchUpModelRenderMode_Vector, LONumSketchUpModelRenderModes }
 Defines the different rendering modes available for a SketchUp model. More...
 
enum  LOSketchUpModelStandardView {
  LOSketchUpModelStandardView_Top = 0, LOSketchUpModelStandardView_RelativeTop, LOSketchUpModelStandardView_Bottom, LOSketchUpModelStandardView_RelativeBottom,
  LOSketchUpModelStandardView_Front, LOSketchUpModelStandardView_Back, LOSketchUpModelStandardView_Left, LOSketchUpModelStandardView_Right,
  LOSketchUpModelStandardView_Iso, LONumSketchUpModelStandardViews
}
 Defines the standard views available for a SketchUp model. Relative views are not necessarily aligned to the corresponding axes like regular views, but rather they maintain the alignment from the previous position of the camera. More...
 

Functions

LO_RESULT LOSketchUpModelCreate (LOSketchUpModelRef *model, const char *path, const LOAxisAlignedRect2D *bounds)
 Creates a new SketchUp model object with the specified bounds that references the specified SketchUp file. More...
 
LO_RESULT LOSketchUpModelAddReference (LOSketchUpModelRef model)
 Adds a reference to a SketchUp model object. More...
 
LO_RESULT LOSketchUpModelRelease (LOSketchUpModelRef *model)
 Releases a SketchUp model object. The object will be invalidated if releasing the last reference. More...
 
LO_EXPORT LOSketchUpModelRef LOSketchUpModelFromEntity (LOEntityRef entity)
 Converts from a LOEntityRef to a LOSketchUpModelRef. This is essentially a downcast operation so the given LOEntityRef must be convertible to a LOSketchUpModelRef. More...
 
LO_EXPORT LOEntityRef LOSketchUpModelToEntity (LOSketchUpModelRef model)
 Converts from a LOSketchUpModelRef to a LOEntityRef. This is essentially an upcast operation. More...
 
LO_RESULT LOSketchUpModelGetModel (LOSketchUpModelRef model, SUModelRef *sumodel)
 Gets the SUModelRef representation of the SketchUp model. More...
 
LO_RESULT LOSketchUpModelGetRenderMode (LOSketchUpModelRef model, LOSketchUpModelRenderMode *render_mode)
 Gets the render mode of the SketchUp model. More...
 
LO_RESULT LOSketchUpModelSetRenderMode (LOSketchUpModelRef model, LOSketchUpModelRenderMode render_mode)
 Sets the render mode of the SketchUp model. More...
 
LO_RESULT LOSketchUpModelRender (LOSketchUpModelRef model)
 Renders the SketchUp model. If the model belongs to a LODocumentRef, then the render will be performed at the resolution set in document.page_info (see LODocumentRef and LOPageInfoRef). Otherwise, the render will be performed at Low resolution. More...
 
LO_RESULT LOSketchUpModelIsRenderNeeded (LOSketchUpModelRef model, bool *render_needed)
 Gets the status indicating whether the SketchUp model needs to be rendered. More...
 
LO_RESULT LOSketchUpModelGetNumberOfAvailableScenes (LOSketchUpModelRef model, size_t *number_of_scenes)
 Gets the number of scenes that are available for a SketchUp model. Use this to determine the size of the array that should be passed to LOSketchUpModelGetAvailableScenes. More...
 
LO_RESULT LOSketchUpModelGetAvailableScenes (LOSketchUpModelRef model, size_t len, SUStringRef scenes[], size_t *count)
 Gets the array of scenes that are available for a SketchUp model. The first scene returned will always be the default scene, called "Last saved SketchUp View". More...
 
LO_RESULT LOSketchUpModelGetCurrentScene (LOSketchUpModelRef model, size_t *scene_index, bool *scene_modified)
 Gets the most recently selected scene of the SketchUp model. More...
 
LO_RESULT LOSketchUpModelSetCurrentScene (LOSketchUpModelRef model, size_t scene_index)
 Sets the scene of the SketchUp model. More...
 
LO_RESULT LOSketchUpModelGetCameraModified (LOSketchUpModelRef model, bool *modified)
 Gets whether the SketchUp model's camera has been modified. More...
 
LO_RESULT LOSketchUpModelResetCamera (LOSketchUpModelRef model)
 Resets the SketchUp model's camera to the scene's setting. More...
 
LO_RESULT LOSketchUpModelGetEffectsModified (LOSketchUpModelRef model, bool *modified)
 Gets whether the SketchUp model's shadow or fog effects have been modified. More...
 
LO_RESULT LOSketchUpModelResetEffects (LOSketchUpModelRef model)
 Resets the SketchUp model's shadow and fog effects to the scene's settings. More...
 
LO_RESULT LOSketchUpModelGetStyleModified (LOSketchUpModelRef model, bool *modified)
 Gets whether the SketchUp model's style has been modified. More...
 
LO_RESULT LOSketchUpModelResetStyle (LOSketchUpModelRef model)
 Resets the SketchUp model's style to the scene's setting. More...
 
LO_RESULT LOSketchUpModelGetLayersModified (LOSketchUpModelRef model, bool *modified)
 Gets whether the SketchUp model's layers have been modified. More...
 
LO_RESULT LOSketchUpModelResetLayers (LOSketchUpModelRef model)
 Resets the SketchUp model's layers to the scene's setting. More...
 
LO_RESULT LOSketchUpModelGetDisplayBackground (LOSketchUpModelRef model, bool *display_background)
 Gets the status of whether or not the background is displayed for the SketchUp model. This setting only applies when the render mode is LOSketchUpModelRenderMode_Vector. More...
 
LO_RESULT LOSketchUpModelSetDisplayBackground (LOSketchUpModelRef model, bool display_background)
 Sets the status of whether or not the background is displayed for the SketchUp model. This setting only applies when the render mode is LOSketchUpModelRenderMode_Vector. More...
 
LO_RESULT LOSketchUpModelGetLineWeight (LOSketchUpModelRef model, double *line_weight)
 Gets the line weight in points for the SketchUp model. More...
 
LO_RESULT LOSketchUpModelSetLineWeight (LOSketchUpModelRef model, double line_weight)
 Sets the line weight in points for the SketchUp model. More...
 
LO_RESULT LOSketchUpModelGetDashScale (LOSketchUpModelRef model, double *dash_scale)
 Gets the scale for dashes in the SketchUp model. A scale value of 0.0 means the dashes are scaled based on the line weight. More...
 
LO_RESULT LOSketchUpModelSetDashScale (LOSketchUpModelRef model, double dash_scale)
 Sets the scale for dashes in the SketchUp model. A scale value of 0.0 or lower will "auto" scale the dashes based on the line weight. More...
 
LO_RESULT LOSketchUpModelGetPerspective (LOSketchUpModelRef model, bool *perspective)
 Gets whether or not the view is rendered in perspective mode. More...
 
LO_RESULT LOSketchUpModelSetPerspective (LOSketchUpModelRef model, bool perspective)
 Sets whether or not the view is rendered in perspective mode. More...
 
LO_RESULT LOSketchUpModelGetStandardView (LOSketchUpModelRef model, LOSketchUpModelStandardView *view)
 Gets the standard view that a SketchUp model is currently set to. More...
 
LO_RESULT LOSketchUpModelSetStandardView (LOSketchUpModelRef model, LOSketchUpModelStandardView view)
 Sets a SketchUp model to use a standard view. More...
 
LO_RESULT LOSketchUpModelGetScale (LOSketchUpModelRef model, double *scale)
 Gets the scale of a SketchUp model. This is only valid to call for models that are rendered in orthographic (non-perspective) mode. More...
 
LO_RESULT LOSketchUpModelSetScale (LOSketchUpModelRef model, double scale)
 Sets the scale of a SketchUp model. This is only valid to call for models that are rendered in orthographic (non-perspective) mode. More...
 
LO_RESULT LOSketchUpModelGetPreserveScaleOnResize (LOSketchUpModelRef model, bool *preserve_scale)
 Gets whether or not the scale is preserved when the SketchUp model is resized. More...
 
LO_RESULT LOSketchUpModelSetPreserveScaleOnResize (LOSketchUpModelRef model, bool preserve_scale)
 Sets whether or not the scale is preserved when the SketchUp model is resized. More...
 
LO_RESULT LOSketchUpModelConvertModelPointToPaperPoint (LOSketchUpModelRef model, const LOPoint3D *model_point, LOPoint2D *paper_point)
 Converts a 3D model space point in the SketchUp model to a 2D paper space point on the page. More...
 
LO_RESULT LOSketchUpModelGetClipMask (LOSketchUpModelRef model, LOEntityRef *clip_mask)
 Returns any clip mask assigned to the SketchUp model. More...
 
LO_RESULT LOSketchUpModelSetClipMask (LOSketchUpModelRef model, LOEntityRef clip_mask)
 Sets the clip mask of the SketchUp model. A clip mask defines a region of the entity that is visible. This allows you to crop with arbitrary shapes. This operation will replace any clip mask that is already assigned to this model. The entity being used must not be already part of a document or group. The clip mask entity must be either a rectangle, ellipse or a path. More...
 
LO_RESULT LOSketchUpModelGetExplodedEntities (LOSketchUpModelRef model, LOEntityListRef entity_list)
 Creates the entities that represent the SketchUp model in its exploded form and adds them to a LOEntityListRef. It is NOT necessary to explicitly release these entities, since LOEntityListRef itself adds a reference to the entities and will release them when they are removed from the list or when the list is released. NOTE The behavior of this method changed in API 3.0 - an exploded raster-rendered model will now wrap the LOImageRef in a LOGroupRef. More...
 

Enumeration Type Documentation

Defines the different rendering modes available for a SketchUp model.

Enumerator
LOSketchUpModelRenderMode_Raster 

Raster rendering.

LOSketchUpModelRenderMode_Hybrid 

Hybrid rendering.

LOSketchUpModelRenderMode_Vector 

Vector rendering.

LONumSketchUpModelRenderModes 

Defines the standard views available for a SketchUp model. Relative views are not necessarily aligned to the corresponding axes like regular views, but rather they maintain the alignment from the previous position of the camera.

Enumerator
LOSketchUpModelStandardView_Top 

Top. This view is aligned with the X and Y axes.

LOSketchUpModelStandardView_RelativeTop 

Top (Relative). This top view is oriented relative to the previous camera position.

LOSketchUpModelStandardView_Bottom 

Bottom. This view is aligned with the X and Y axes.

LOSketchUpModelStandardView_RelativeBottom 

Bottom (Relative). This bottom view is oriented relative to the previous camera position.

LOSketchUpModelStandardView_Front 

Front. This view is aligned with the X and Z axes.

LOSketchUpModelStandardView_Back 

Back. This view is aligned with the X and Z axes.

LOSketchUpModelStandardView_Left 

Left. This view is aligned with the Y and Z axes.

LOSketchUpModelStandardView_Right 

Right. This view is aligned with the Y and Z axes.

LOSketchUpModelStandardView_Iso 

Iso. This is aligned with the nearest isometric axes to the current view.

LONumSketchUpModelStandardViews 

Function Documentation

LO_RESULT LOSketchUpModelAddReference ( LOSketchUpModelRef  model)

Adds a reference to a SketchUp model object.

Parameters
[in]modelThe SketchUp model object.
Returns
LO_RESULT LOSketchUpModelConvertModelPointToPaperPoint ( LOSketchUpModelRef  model,
const LOPoint3D model_point,
LOPoint2D paper_point 
)

Converts a 3D model space point in the SketchUp model to a 2D paper space point on the page.

Parameters
[in]modelThe SketchUp model object.
[in]model_pointThe 3D model space point.
[out]paper_pointThe 2D paper space point.
Returns
LO_RESULT LOSketchUpModelCreate ( LOSketchUpModelRef model,
const char *  path,
const LOAxisAlignedRect2D bounds 
)

Creates a new SketchUp model object with the specified bounds that references the specified SketchUp file.

Parameters
[out]modelThe SketchUp model object.
[in]pathThe path to the SketchUp file.
[in]boundsThe starting dimensions of the SketchUp model.
Returns
LO_EXPORT LOSketchUpModelRef LOSketchUpModelFromEntity ( LOEntityRef  entity)

Converts from a LOEntityRef to a LOSketchUpModelRef. This is essentially a downcast operation so the given LOEntityRef must be convertible to a LOSketchUpModelRef.

Parameters
[in]entityThe entity object.
Returns
  • The converted LOSketchUpModelRef if the downcast operation succeeds
  • If not, the returned reference will be invalid
LO_RESULT LOSketchUpModelGetAvailableScenes ( LOSketchUpModelRef  model,
size_t  len,
SUStringRef  scenes[],
size_t *  count 
)

Gets the array of scenes that are available for a SketchUp model. The first scene returned will always be the default scene, called "Last saved SketchUp View".

Parameters
[in]modelThe SketchUp model object.
[in]lenThe maximum number of scenes to retrieve.
[out]scenesThe names of the scenes retrieved.
[out]countThe number of scenes retrieved.
Returns
LO_RESULT LOSketchUpModelGetCameraModified ( LOSketchUpModelRef  model,
bool *  modified 
)

Gets whether the SketchUp model's camera has been modified.

Parameters
[in]modelThe SketchUp model object.
[out]modifiedIndicates whether or not the camera has been modified in LayOut.
Since
LayOut 2020.1, API 5.1
Returns
LO_RESULT LOSketchUpModelGetClipMask ( LOSketchUpModelRef  model,
LOEntityRef clip_mask 
)

Returns any clip mask assigned to the SketchUp model.

Since
LayOut 2017, API 2.0
Parameters
[in]modelThe SketchUp model object.
[out]clip_maskThe clip mask of the SketchUp model.
Returns
LO_RESULT LOSketchUpModelGetCurrentScene ( LOSketchUpModelRef  model,
size_t *  scene_index,
bool *  scene_modified 
)

Gets the most recently selected scene of the SketchUp model.

Parameters
[in]modelThe SketchUp model object.
[out]scene_indexThe index of the SketchUp model's scene. This is an index into the list of available scenes returned by LOSketchUpModelGetAvailableScenes.
[out]scene_modifiedIndicates whether or not the scene has been modified in LayOut.
Returns
LO_RESULT LOSketchUpModelGetDashScale ( LOSketchUpModelRef  model,
double *  dash_scale 
)

Gets the scale for dashes in the SketchUp model. A scale value of 0.0 means the dashes are scaled based on the line weight.

Since
LayOut 2019, API 4.0
Parameters
[in]modelThe SketchUp model object.
[out]dash_scaleDash scale. Will be in the range [0, 10].
Returns
LO_RESULT LOSketchUpModelGetDisplayBackground ( LOSketchUpModelRef  model,
bool *  display_background 
)

Gets the status of whether or not the background is displayed for the SketchUp model. This setting only applies when the render mode is LOSketchUpModelRenderMode_Vector.

Parameters
[in]modelThe SketchUp model object.
[out]display_backgroundTrue if the background is displayed.
Returns
LO_RESULT LOSketchUpModelGetEffectsModified ( LOSketchUpModelRef  model,
bool *  modified 
)

Gets whether the SketchUp model's shadow or fog effects have been modified.

Parameters
[in]modelThe SketchUp model object.
[out]modifiedIndicates whether or not the shadow or fog effects have been modified in LayOut.
Since
LayOut 2020.1, API 5.1
Returns
LO_RESULT LOSketchUpModelGetExplodedEntities ( LOSketchUpModelRef  model,
LOEntityListRef  entity_list 
)

Creates the entities that represent the SketchUp model in its exploded form and adds them to a LOEntityListRef. It is NOT necessary to explicitly release these entities, since LOEntityListRef itself adds a reference to the entities and will release them when they are removed from the list or when the list is released. NOTE The behavior of this method changed in API 3.0 - an exploded raster-rendered model will now wrap the LOImageRef in a LOGroupRef.

Parameters
[in]modelThe SketchUp model object.
[in]entity_listThe entity list object to add the new entities to.
Returns
LO_RESULT LOSketchUpModelGetLayersModified ( LOSketchUpModelRef  model,
bool *  modified 
)

Gets whether the SketchUp model's layers have been modified.

Note
In SketchUp 2020, SketchUp "layers" were renamed to "tags". For consistency with the SketchUp API, this will continue to refer to "tags" as "layers".
Since
LayOut 2020.1, API 5.1
Parameters
[in]modelThe SketchUp model object.
[out]modifiedIndicates whether or not the tag have been modified in LayOut.
Returns
LO_RESULT LOSketchUpModelGetLineWeight ( LOSketchUpModelRef  model,
double *  line_weight 
)

Gets the line weight in points for the SketchUp model.

Parameters
[in]modelThe SketchUp model object.
[out]line_weightLine weight in points.
Returns
LO_RESULT LOSketchUpModelGetModel ( LOSketchUpModelRef  model,
SUModelRef *  sumodel 
)

Gets the SUModelRef representation of the SketchUp model.

Since
LayOut 2017, API 2.0
Parameters
[in]modelThe SketchUp model object.
[out]sumodelThe model reference object.
Returns
LO_RESULT LOSketchUpModelGetNumberOfAvailableScenes ( LOSketchUpModelRef  model,
size_t *  number_of_scenes 
)

Gets the number of scenes that are available for a SketchUp model. Use this to determine the size of the array that should be passed to LOSketchUpModelGetAvailableScenes.

Parameters
[in]modelThe SketchUp model object.
[out]number_of_scenesThe number of scenes.
Returns
LO_RESULT LOSketchUpModelGetPerspective ( LOSketchUpModelRef  model,
bool *  perspective 
)

Gets whether or not the view is rendered in perspective mode.

Parameters
[in]modelThe SketchUp model object.
[out]perspectiveWhether or not the view is rendered in perspective mode.
Returns
LO_RESULT LOSketchUpModelGetPreserveScaleOnResize ( LOSketchUpModelRef  model,
bool *  preserve_scale 
)

Gets whether or not the scale is preserved when the SketchUp model is resized.

Parameters
[in]modelThe SketchUp model object.
[out]preserve_scaleTrue if the scale is preserved on resize.
Returns
LO_RESULT LOSketchUpModelGetRenderMode ( LOSketchUpModelRef  model,
LOSketchUpModelRenderMode render_mode 
)

Gets the render mode of the SketchUp model.

Parameters
[in]modelThe SketchUp model object.
[out]render_modeThe render mode of the SketchUp model.
Returns
LO_RESULT LOSketchUpModelGetScale ( LOSketchUpModelRef  model,
double *  scale 
)

Gets the scale of a SketchUp model. This is only valid to call for models that are rendered in orthographic (non-perspective) mode.

Parameters
[in]modelThe SketchUp model object.
[out]scaleThe SketchUp model's scale.
Returns
LO_RESULT LOSketchUpModelGetStandardView ( LOSketchUpModelRef  model,
LOSketchUpModelStandardView view 
)

Gets the standard view that a SketchUp model is currently set to.

Parameters
[in]modelThe SketchUp model object.
[out]viewThe standard view that the SketchUp model is currently set to.
Returns
LO_RESULT LOSketchUpModelGetStyleModified ( LOSketchUpModelRef  model,
bool *  modified 
)

Gets whether the SketchUp model's style has been modified.

Parameters
[in]modelThe SketchUp model object.
[out]modifiedIndicates whether or not the style has been modified in LayOut.
Since
LayOut 2020.1, API 5.1
Returns
LO_RESULT LOSketchUpModelIsRenderNeeded ( LOSketchUpModelRef  model,
bool *  render_needed 
)

Gets the status indicating whether the SketchUp model needs to be rendered.

Parameters
[in]modelThe SketchUp model object.
[out]render_neededTrue if the SketchUp model needs to be rendered.
Returns
LO_RESULT LOSketchUpModelRelease ( LOSketchUpModelRef model)

Releases a SketchUp model object. The object will be invalidated if releasing the last reference.

Parameters
[in]modelThe SketchUp model object.
Returns
LO_RESULT LOSketchUpModelRender ( LOSketchUpModelRef  model)

Renders the SketchUp model. If the model belongs to a LODocumentRef, then the render will be performed at the resolution set in document.page_info (see LODocumentRef and LOPageInfoRef). Otherwise, the render will be performed at Low resolution.

Parameters
[in]modelThe SketchUp model object.
Returns
LO_RESULT LOSketchUpModelResetCamera ( LOSketchUpModelRef  model)

Resets the SketchUp model's camera to the scene's setting.

Parameters
[in]modelThe SketchUp model object.
Since
LayOut 2020.1, API 5.1
Returns
LO_RESULT LOSketchUpModelResetEffects ( LOSketchUpModelRef  model)

Resets the SketchUp model's shadow and fog effects to the scene's settings.

Parameters
[in]modelThe SketchUp model object.
Since
LayOut 2020.1, API 5.1
Returns
LO_RESULT LOSketchUpModelResetLayers ( LOSketchUpModelRef  model)

Resets the SketchUp model's layers to the scene's setting.

Note
In SketchUp 2020, SketchUp "layers" were renamed to "tags". For consistency with the SketchUp API, this will continue to refer to "tags" as "layers".
Since
LayOut 2020.1, API 5.1
Parameters
[in]modelThe SketchUp model object.
Returns
LO_RESULT LOSketchUpModelResetStyle ( LOSketchUpModelRef  model)

Resets the SketchUp model's style to the scene's setting.

Parameters
[in]modelThe SketchUp model object.
Since
LayOut 2020.1, API 5.1
Returns
LO_RESULT LOSketchUpModelSetClipMask ( LOSketchUpModelRef  model,
LOEntityRef  clip_mask 
)

Sets the clip mask of the SketchUp model. A clip mask defines a region of the entity that is visible. This allows you to crop with arbitrary shapes. This operation will replace any clip mask that is already assigned to this model. The entity being used must not be already part of a document or group. The clip mask entity must be either a rectangle, ellipse or a path.

Note
Starting in LayOut 2020.1, API 5.1, clip_mask may be SU_INVALID, which will remove the existing clip mask, if any.
Since
LayOut 2017, API 2.0
Parameters
[in]modelThe SketchUp model object.
[in]clip_maskThe new clip mask for the SketchUp model.
Returns
LO_RESULT LOSketchUpModelSetCurrentScene ( LOSketchUpModelRef  model,
size_t  scene_index 
)

Sets the scene of the SketchUp model.

Parameters
[in]modelThe SketchUp model object.
[in]scene_indexThe index of the scene. This is an index into the list of available scenes returned by LOSketchUpModelGetAvailableScenes.
Returns
LO_RESULT LOSketchUpModelSetDashScale ( LOSketchUpModelRef  model,
double  dash_scale 
)

Sets the scale for dashes in the SketchUp model. A scale value of 0.0 or lower will "auto" scale the dashes based on the line weight.

Since
LayOut 2019, API 4.0
Parameters
[in]modelThe SketchUp model object.
[in]dash_scaleDash scale. A value less than zero will be set to 0.
Returns
LO_RESULT LOSketchUpModelSetDisplayBackground ( LOSketchUpModelRef  model,
bool  display_background 
)

Sets the status of whether or not the background is displayed for the SketchUp model. This setting only applies when the render mode is LOSketchUpModelRenderMode_Vector.

Parameters
[in]modelThe SketchUp model object.
[in]display_backgroundTrue if the background should be displayed.
Returns
LO_RESULT LOSketchUpModelSetLineWeight ( LOSketchUpModelRef  model,
double  line_weight 
)

Sets the line weight in points for the SketchUp model.

Parameters
[in]modelThe SketchUp model object.
[in]line_weightLine weight in points.
Returns
LO_RESULT LOSketchUpModelSetPerspective ( LOSketchUpModelRef  model,
bool  perspective 
)

Sets whether or not the view is rendered in perspective mode.

Parameters
[in]modelThe SketchUp model object.
[in]perspectiveWhether or not the view should be rendered in perspective mode.
Returns
LO_RESULT LOSketchUpModelSetPreserveScaleOnResize ( LOSketchUpModelRef  model,
bool  preserve_scale 
)

Sets whether or not the scale is preserved when the SketchUp model is resized.

Parameters
[in]modelThe SketchUp model object.
[in]preserve_scaleTrue if the scale should be preserved on resize.
Returns
LO_RESULT LOSketchUpModelSetRenderMode ( LOSketchUpModelRef  model,
LOSketchUpModelRenderMode  render_mode 
)

Sets the render mode of the SketchUp model.

Parameters
[in]modelThe SketchUp model object.
[in]render_modeThe new render mode for the SketchUp model.
Returns
LO_RESULT LOSketchUpModelSetScale ( LOSketchUpModelRef  model,
double  scale 
)

Sets the scale of a SketchUp model. This is only valid to call for models that are rendered in orthographic (non-perspective) mode.

Parameters
[in]modelThe SketchUp model object.
[in]scaleThe new scale for the SketchUp model.
Returns
LO_RESULT LOSketchUpModelSetStandardView ( LOSketchUpModelRef  model,
LOSketchUpModelStandardView  view 
)

Sets a SketchUp model to use a standard view.

Parameters
[in]modelThe SketchUp model object.
[in]viewThe standard view to use.
LO_EXPORT LOEntityRef LOSketchUpModelToEntity ( LOSketchUpModelRef  model)

Converts from a LOSketchUpModelRef to a LOEntityRef. This is essentially an upcast operation.

Parameters
[in]modelThe SketchUp model object.
Returns
  • The converted LOEntityRef if model is a valid object
  • If not, the returned reference will be invalid