Loads from a file an IMeshLayer66 representing a unified, stream optimized 3D Mesh Layer (3DML) database.
JavaScript |
|
CreateMeshLayerFromFile( FilePath, ParentGroupID) |
C# |
|
IMeshLayer66 CreateMeshLayerFromFile( string FilePath, [string ParentGroupID = ""]) |
C++ |
|
HRESULT CreateMeshLayerFromFile( BSTR FilePath, BSTR ParentGroupID, IMeshLayer66** pIMeshLayer) |
Parameters
FilePath
A full path of the 3DML layer file to load.
ParentGroupID
The Project Tree group in which the layer is created. If it is set to an empty string, the object is created under the root. You can obtain the GroupID by one of the following methods:
· Create the group using IProjectTree66.CreateGroup.
· Find the group, if you know the name, using IProjectTree66.FindItem.
· Traverse the Tree using IProjectTree66 methods such as GetNextItem, until you come to the desired GroupID.
Return Value
pIMeshLayer
An IMeshLayer66 representing the newly created layer.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.