The "outer" interface that must be supported by objects that serve up exporters.
More...
List of all members.
Properties |
long | Count [get] |
| Returns the number of exporters provided by this object.
|
ISketchUpExporter | Item ([in] long nIndex) [get] |
| Returns the exporter at the given index.
|
Detailed Description
The "outer" interface that must be supported by objects that serve up exporters.
Objects that implement this interface and are registered in the appropriate category are auto discovered at the time an export is requested.
To properly register an exporter we use a RGS file similar to the following:
HKCR
{
ApiDemoExporter.DemoExporter.1 = s 'DemoExporter Class'
{
CLSID = s '{0FBBBC7B-B944-425C-A17F-3E464EF3B4C5}'
}
ApiDemoExporter.DemoExporter = s 'DemoExporter Class'
{
CLSID = s '{0FBBBC7B-B944-425C-A17F-3E464EF3B4C5}'
CurVer = s 'ApiDemoExporter.DemoExporter.1'
}
NoRemove CLSID
{
ForceRemove {0FBBBC7B-B944-425C-A17F-3E464EF3B4C5} = s 'DemoExporter Class'
{
ProgID = s 'ApiDemoExporter.DemoExporter.1'
VersionIndependentProgID = s 'ApiDemoExporter.DemoExporter'
InprocServer32 = s '%MODULE%'
{
val ThreadingModel = s 'Apartment'
}
'TypeLib' = s '{F59C13F5-FE2D-4854-A263-F99107A1D3D9}'
}
}
NoRemove SketchUp.Addin
{
NoRemove ModelExport
{
ApiDemoExporter = s 'ApiDemoExporter.DemoExporter'
}
}
}
To use this example, the GUIDs and names must be updated as appropriate, The important piece of this is found in the last section, where a reference to the new exporter (in this case the ApiDemoExporter
exporter) is added to the registry key SketchUp/Addin/ModelExport
.
Property Documentation
long IEnumSketchUpExporter::Count [get] |
Returns the number of exporters provided by this object.
- Return values:
-
| pCount | The number of exporters managed by this enumeration. |
- Returns:
- S_OK : if successful
E_POINTER : if any of the required arguments are NULL
E_FAIL : internal errors
Returns the exporter at the given index.
- Parameters:
-
| nIndex | the 0-based index of the desired exporter. |
- Return values:
-
| pExporter | The index found at the given index. |
- Returns:
- S_OK : if successful
E_INVALIDARG: if nIndex < 0 or nIndex >= Count
E_POINTER : if any of the required arguments are NULL
E_FAIL : internal errors