Пример #1
0
        private static void DumpPlacement(PlacementHeader placement)
        {
            if (placement == null)
            {
                return;
            }

            Console.WriteLine($"Created: Guid: {placement.Guid} - Identification: {placement.Identification}");
        }
Пример #2
0
        private static async Task CreateSymbolReferences(So3ApiConnector connector, Guid layoutPageGuid)
        {
            Console.WriteLine();
            Console.WriteLine("Create anonymous symbol reference 1:");
            _symbolReference1 = await CreateAnonymousPlacement(
                connector,
                layoutPageGuid,
                EnvironmentInfo.SymbolPath,
                100,
                (float)Math.PI / 2);

            DumpPlacement(_symbolReference1);

            Console.WriteLine();
            Console.WriteLine("Create symbol reference 2 via identification:");
            _symbolReference2 = (await CreatePlacementWithIdentification(
                                     connector, layoutPageGuid,
                                     EnvironmentInfo.SymbolPath,
                                     200,
                                     EnvironmentInfo.Identification)).Single();
            DumpPlacement(_symbolReference2);

            Console.WriteLine();
            Console.WriteLine("Create symbol reference 3 via attribute updates (identifying):");
            _symbolReference3 = await CreatePlacementWithAttributeUpdates(
                connector,
                layoutPageGuid,
                EnvironmentInfo.SymbolPath,
                300,
                EnvironmentInfo.AttributeValuePartsIdentifying);

            DumpPlacement(_symbolReference3);

            Console.WriteLine();
            Console.WriteLine("Create symbol reference 4 via attribute updates (descriptive multilanguage):");
            _symbolReference4 = await CreatePlacementWithAttributeUpdates(
                connector,
                layoutPageGuid,
                EnvironmentInfo.SymbolPath,
                400,
                EnvironmentInfo.AttributeValuePartsDescriptiveMultilanguage);

            DumpPlacement(_symbolReference4);

            Console.WriteLine();
            Console.WriteLine("Create symbol reference 5 via attribute updates (property indexed):");
            _symbolReference5 = await CreatePlacementWithAttributeUpdates(
                connector,
                layoutPageGuid,
                EnvironmentInfo.SymbolPath,
                500,
                EnvironmentInfo.AttributeValuePartsPropertyIndexed);

            DumpPlacement(_symbolReference5);
        }