Hello,
many thanks to both of you! The xml-definiton for the symbol and layer now works fine.
I know the bricscad page... it really helped me to understand the xml-definitons, and get started with it. (and yes, im german speaking)
Now i got the xml-symbols in the map, but i can't select them anymore. I searched the internet, but i couldn't find out, if this is possible or if this is not possible. Do you know anything about it?
well here ist the symbol definiton i have so far:
<?xml version="1.0" encoding="UTF-8"?>
<SimpleSymbolDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SymbolDefinition-1.1.0.xsd" version="1.1.0">
<Name>Symbol</Name>
<Graphics>
<Path>
<Geometry>M -200,-500 L 200,-500 L 0,100 Z</Geometry>
<FillColor>ffee82ee</FillColor>
<LineColor>ff000000</LineColor>
<LineWeight>0.0</LineWeight>
<LineWeightScalable>true</LineWeightScalable>
</Path>
<Path>
<Geometry>M -300,100 L 300,100</Geometry>
<FillColor>00000000</FillColor>
<LineColor>ff000000</LineColor>
<LineWeight>0.0</LineWeight>
<LineWeightScalable>true</LineWeightScalable>
</Path>
<Path>
<Geometry>M -250,350 L 0,100 L 250,350</Geometry>
<FillColor>00000000</FillColor>
<LineColor>ff000000</LineColor>
<LineWeight>0.0</LineWeight>
<LineWeightScalable>true</LineWeightScalable>
</Path>
<Path>
<Geometry>M 0,500 L 0,100</Geometry>
<FillColor>00000000</FillColor>
<LineColor>ff000000</LineColor>
<LineWeight>0.0</LineWeight>
<LineWeightScalable>true</LineWeightScalable>
</Path>
</Graphics>
<PointUsage/>
<ParameterDefinition/>
</SimpleSymbolDefinition>
and a part of the layer definition:
<?xml version="1.0" encoding="UTF-8"?>
<LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="LayerDefinition-1.2.0.xsd" version="1.2.0">
<VectorLayerDefinition>
<ResourceId>Library://leuchten/Daten/A70_S_City.FeatureSource</ResourceId>
<FeatureName>SDF_2_Schema:A70_S_CityErweitert</FeatureName>
<FeatureNameType>FeatureClass</FeatureNameType>
<PropertyMapping>
<Name>A70_S_AUSLEGERID</Name>
<Value>ID</Value>
</PropertyMapping>
[...]
<PropertyMapping>
<Name>A70_S_AUSLEGERMASTHERSTELLER</Name>
<Value>Masthersteller</Value>
</PropertyMapping>
<Geometry>Data</Geometry>
<VectorScaleRange>
<MaxScale>2500</MaxScale>
<CompositeTypeStyle>
<CompositeRule>
<LegendLabel>BodenLP</LegendLabel>
<CompositeSymbolization>
<SymbolInstance>
<ResourceId>Library://leuchten/Symbole/A70_MA_City.SymbolDefinition</ResourceId>
<ParameterOverrides/>
<ScaleX>10</ScaleX>
<ScaleY>10</ScaleY>
<SizeContext>MappingUnits</SizeContext>
</SymbolInstance>
</CompositeSymbolization>
</CompositeRule>
</CompositeTypeStyle>
</VectorScaleRange>
<VectorScaleRange>
<MinScale>2500</MinScale>
<MaxScale>5000</MaxScale>
<CompositeTypeStyle>
<CompositeRule>
<LegendLabel>BodenLP</LegendLabel>
<CompositeSymbolization>
<SymbolInstance>
<ResourceId>Library://leuchten/Symbole/A70_MA_City.SymbolDefinition</ResourceId>
<ParameterOverrides/>
<ScaleX>20</ScaleX>
<ScaleY>20</ScaleY>
<SizeContext>MappingUnits</SizeContext>
</SymbolInstance>
</CompositeSymbolization>
</CompositeRule>
</CompositeTypeStyle>
</VectorScaleRange>
</VectorLayerDefinition>
</LayerDefinition>
Regards
Charlotte