CreateMeshLayerFromFile
Loads from a file an IMeshLayer80 representing a unified, stream optimized 3D Mesh Layer (3DML) database.
JavaScript |
|
CreateMeshLayerFromFile( FilePath, ParentGroupID) |
C# |
|
IMeshLayer80 CreateMeshLayerFromFile( string FilePath, string ParentGroupID = "") |
C++ |
|
HRESULT CreateMeshLayerFromFile( BSTR FilePath, BSTR ParentGroupID, IMeshLayer80** 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 IProjectTree80.CreateGroup.
· Find the group, if you know the name, using IProjectTree80.FindItem.
· Traverse the Tree using IProjectTree80 methods such as GetNextItem, until you come to the desired GroupID.
Return Value
pIMeshLayer
An IMeshLayer80 representing the newly created layer.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.