Milsymbol Mapping: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Milsymbol Mapping == With the "MilSymMapper" class you can map draw object sidc between the milsymbol versions: APP6D, MIL-STD-2525D, and MIL-STD-2525C. === Examples of Usage === Tese example maps the Battle Position type. === Examples of Usage - Get Mapped SIDC from SIDC === <source lang="c#"> var factory = new DrawObjectCommonFactory(); // Get APP6D sidc from MIL-STD-2525C SIDC var id_d = factory.MilSymMapper.GetMilSymSIDCFromMilSymSIDC("TACGRP.C2GM.DEF.ARS.BTLPS...") |
No edit summary |
||
Line 37: | Line 37: | ||
var id_c = factory.MilSymMapper.GetMilSymSIDCFromTypeId(new Guid("88784e27-c8d4-46d8-a72f-4fc433c759ee"), Mapping.MilSymType.MILSTD2525C); | var id_c = factory.MilSymMapper.GetMilSymSIDCFromTypeId(new Guid("88784e27-c8d4-46d8-a72f-4fc433c759ee"), Mapping.MilSymType.MILSTD2525C); | ||
</source> | </source> | ||
[[Category:GDK5]] |
Revision as of 10:58, 3 June 2024
Milsymbol Mapping
With the "MilSymMapper" class you can map draw object sidc between the milsymbol versions: APP6D, MIL-STD-2525D, and MIL-STD-2525C.
Examples of Usage
Tese example maps the Battle Position type.
Examples of Usage - Get Mapped SIDC from SIDC
var factory = new DrawObjectCommonFactory();
// Get APP6D sidc from MIL-STD-2525C SIDC
var id_d = factory.MilSymMapper.GetMilSymSIDCFromMilSymSIDC("TACGRP.C2GM.DEF.ARS.BTLPSN", Mapping.MilSymType.APP6D);
// Get MIL-STD-2525C sidc from APP6D sidc
var id_c = factory.MilSymMapper.GetMilSymSIDCFromMilSymSIDC("30002500001512000000", Mapping.MilSymType.MILSTD2525C);
Examples of Usage - Get Mapped TypeId from SIDC
var factory = new DrawObjectCommonFactory();
// Get APP6D TypeId from TypeId
var typeId_d = factory.MilSymMapper.GetDrawObjectTypeId("TACGRP.C2GM.DEF.ARS.BTLPSN", Mapping.MilSymType.APP6D);
// Get MIL-STD-2525C TypeId from TypeId
var typeId_c = factory.MilSymMapper.GetDrawObjectTypeId("30002500001512000000", Mapping.MilSymType.MILSTD2525C);
Examples of Usage - Get Mapped SIDC from TypeId
var factory = new DrawObjectCommonFactory();
// Get APP6D sidc from TypeId
var id_d = factory.MilSymMapper.GetMilSymSIDCFromTypeId(new Guid("88784e27-c8d4-46d8-a72f-4fc433c759ee"), Mapping.MilSymType.APP6D);
// Get MIL-STD-2525C sidc from TypeId
var id_c = factory.MilSymMapper.GetMilSymSIDCFromTypeId(new Guid("88784e27-c8d4-46d8-a72f-4fc433c759ee"), Mapping.MilSymType.MILSTD2525C);