HPS::Sketchup::ImportOptionsKit

class HPS.Sketchup.ImportOptionsKit : public HPS.SprocketKit

The ImportOptionsKit class is a user space object. It contains settings controlling what and how data is imported via Sketchup.

Public Functions

override void Dispose ()
override bool Empty ()

Indicates whether this ImportOptionsKit has any values set on it.

Return

true if no values are set on this ImportOptionsKit, false otherwise.

bool Equals (HPS.Sketchup.ImportOptionsKit in_kit)

Check if the source ImportOptionsKit is equivalent to this ImportOptionsKit.

Param in_kit

The source ImportOptionsKit to compare to this ImportOptionsKit.

Return

true if the objects are equivalent, false otherwise.

override bool Equals (Object obj)
override int GetHashCode ()
ImportOptionsKit ()

The default constructor creates an empty ImportOptionsKit object.

ImportOptionsKit (HPS.Sketchup.ImportOptionsKit in_kit)

The copy constructor creates a new ImportOptionsKit object that contains the same settings as the source ImportOptionsKit.

Param in_kit

The source ImportOptionsKit to copy.

override HPS.Type ObjectType ()

This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).

Return

The declared type of the object in question, which may differ from the true, underlying type.

void Set (HPS.Sketchup.ImportOptionsKit in_kit)

Copies the source ImportOptionsKit into this ImportOptionsKit.

Param in_kit

The source ImportOptionsKit to copy.

HPS.Sketchup.ImportOptionsKit SetHiddenData (bool in_state)

Sets whether to import hidden data from the SketchUp file. Defaults to false.

Param in_state

Whether to import hidden data from the SketchUp file.

Return

A reference to this ImportOptionsKit.

HPS.Sketchup.ImportOptionsKit SetMetaData (bool in_state)

Sets whether to import metadata from the SketchUp file. Defaults to false.

Param in_state

Whether to import metadata data from the SketchUp file.

Return

A reference to this ImportOptionsKit.

HPS.Sketchup.ImportOptionsKit SetPortfolio (HPS.PortfolioKey in_portfolio)

Sets the PortfolioKey where the SketchUp data will be imported into. If no segments are specified, root segments will be created for this purpose during import.

Param in_portfolio

Portfolio the SketchUp data will be imported into.

Return

A reference to this ImportOptionsKit.

HPS.Sketchup.ImportOptionsKit SetTarget (HPS.Model in_model)

Uses the Model to set the root segment, library segment, and portfolio where the SketchUp data will be imported into.

Param in_model

Model to use to implicitly set Segment, Library and Portfolio the SketchUp data will be imported into.

Return

A reference to this ImportOptionsKit.

HPS.Sketchup.ImportOptionsKit SetTarget (HPS.SegmentKey in_target, HPS.SegmentKey in_library)

Sets the root and library segments where the SketchUp data will be imported into. If no segments are specified, root segments will be created for this purpose during import.

Param in_target

Segment the SketchUp data will be imported into.

Param in_library

Segment the SketchUp includes data will be imported into.

Return

A reference to this ImportOptionsKit.

HPS.Sketchup.ImportOptionsKit SetView (HPS.View in_view)

Sets the View where the default SketchUp camera will be imported into. If no View provided, camera can be retrieved via ImportResultsKit.ShowMainCamera.

Param in_view

View where SketchUp camera will be imported into.

Return

A reference to this ImportOptionsKit.

void Show (out HPS.Sketchup.ImportOptionsKit out_kit)

Copies this ImportOptionsKit into the given ImportOptionsKit.

Param out_kit

The ImportOptionsKit to populate with the contents of this ImportOptionsKit.

bool ShowHiddenData (out bool out_state)

Shows whether to import hidden data from the SketchUp file. Defaults to false.

Param out_state

Whether to import hidden data from the SketchUp file.

Return

A reference to this ImportOptionsKit.

bool ShowMetaData (out bool out_state)

Shows whether to import metadata from the SketchUp file. Defaults to false.

Param out_state

Whether to import metadata data from the SketchUp file.

Return

A reference to this ImportOptionsKit.

bool ShowPortfolio (out HPS.PortfolioKey out_portfolio)

Shows the PortfolioKey where the SketchUp data will be imported into. If no segments are specified, root segments will be created for this purpose during import.

Param out_portfolio

Portfolio the SketchUp data will be imported into.

Return

A reference to this ImportOptionsKit.

bool ShowTarget (out HPS.Model out_model)

Shows the root and library segments and portfolio where the SketchUp data will be imported into. If no segments are specified, root segments will be created for this purpose during import.

Param out_model

Model to use to implicitly set Segment, Library and Portfolio the SketchUp data will be imported into.

Return

A reference to this ImportOptionsKit.

bool ShowTarget (out HPS.SegmentKey out_target, out HPS.SegmentKey out_library)

Shows the root and library segments where the SketchUp data will be imported into. If no segments are specified, root segments will be created for this purpose during import.

Param out_target

Segment the SketchUp data will be imported into.

Param out_library

Segment the SketchUp includes data will be imported into.

Return

A reference to this ImportOptionsKit.

bool ShowView (out HPS.View out_view)

Shows the view where the SketchUp camera will be imported into.

Param out_view

View where SketchUp camera will be imported into.

Return

A reference to this ImportOptionsKit.

HPS.Sketchup.ImportOptionsKit UnsetEverything ()

Removes all settings from this ImportOptionsKit.

Return

A reference to this ImportOptionsKit.

HPS.Sketchup.ImportOptionsKit UnsetHiddenData ()

Removes the Hidden data import state.

Return

A reference to this ImportOptionsKit.

HPS.Sketchup.ImportOptionsKit UnsetMetaData ()

Removes the metadata import state.

Return

A reference to this ImportOptionsKit.

HPS.Sketchup.ImportOptionsKit UnsetPortfolio ()

Removes the Portfolio import state.

Return

A reference to this ImportOptionsKit.

HPS.Sketchup.ImportOptionsKit UnsetTarget ()

Removes the target and library segments, and Model import state.

Return

A reference to this ImportOptionsKit.

HPS.Sketchup.ImportOptionsKit UnsetView ()

Removes the View import state.

Return

A reference to this ImportOptionsKit.

Public Static Functions

HPS.Sketchup.ImportOptionsKit GetDefault ()

Creates an ImportOptionsKit which contains the default settings. The returned object will not necessarily have values set for every option, but it will have settings for those options where it is reasonable to have a default. These values will be used for import unless an option is overridden by the options passed to File.Import.

Return

An ImportOptionsKit with the default settings.

bool operator!= (HPS.Sketchup.ImportOptionsKit a, HPS.Sketchup.ImportOptionsKit b)
bool operator== (HPS.Sketchup.ImportOptionsKit a, HPS.Sketchup.ImportOptionsKit b)