How to ADD cadastral fabric to Map

746
5
08-06-2013 07:51 PM
FrancisSacdalan
New Contributor II
Good Day,

We have cadastral fabric layer in geodatabase ready but we cannot add it to the map programmatically, Adding using feature layer code doesn't work. Any inputs or snippet is highly appreciated.


Thanks,
0 Kudos
5 Replies
FrancisSacdalan
New Contributor II
Any help is appreaciated, Thanks 🙂
0 Kudos
NeilClemmons
Regular Contributor III
Have you tried using the ICadastralFabricLayer interface?
0 Kudos
FrancisSacdalan
New Contributor II
Have you tried using the ICadastralFabricLayer interface?

Thanks for the response Neil,

been trying but still no success, any sniffet or sample will much appreciated Neil.

Thanks very much,
0 Kudos
NeilClemmons
Regular Contributor III
I've never used a cadastral fabric but it looks like you would just create a new instance of the CadastralFabricLayer coclass, set the CadastralFabric property to your cadastral fabric, QI over to ILayer and set the Name then call IMap.AddLayer and pass it in.
0 Kudos
FrancisSacdalan
New Contributor II
I've never used a cadastral fabric but it looks like you would just create a new instance of the CadastralFabricLayer coclass, set the CadastralFabric property to your cadastral fabric, QI over to ILayer and set the Name then call IMap.AddLayer and pass it in.


I think I encounter error on how to QI over to ILayer 😞 can you help me out?

Thanks very much.
0 Kudos