<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Confused in implementing custom symbols!!!!!!! help!!!! in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/confused-in-implementing-custom-symbols-help/m-p/731918#M19484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;///1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ILogoMarkerSymbolPtr pLogoMarker = NULL;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; pLogoMarker.CreateInstance(__uuidof(LogoMarkerSymbol));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//it's a custom marker symbol from the Example below&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://edndoc.esri.com/arcobjects/9.1/Samples/Extending_ArcObjects/Ch05_Display/LogoMarkerSymbol/LogoMarkerSymbol.htm" rel="nofollow" target="_blank"&gt;http://edndoc.esri.com/arcobjects/9.1/Samples/Extending_ArcObjects/Ch05_Display/LogoMarkerSymbol/LogoMarkerSymbol.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://edndoc.esri.com/arcobjects/9.1/extendingarcobjects/ch05/logomarkersymbol.htm" rel="nofollow" target="_blank"&gt;http://edndoc.esri.com/arcobjects/9.1/extendingarcobjects/ch05/logomarkersymbol.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;///2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ISimpleMarkerSymbolPtr pSimpleMarkerSymbol = NULL;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; pSimpleMarkerSymbol.CreateInstance(__uuidof(SimpleMarkerSymbol));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;///3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IStyleGalleryPtr pStyleGallery = NULL;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pStyleGallery.CreateInstance("esriFramework.StyleGallery");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IStyleGalleryItemPtr pStyleGalleryItem = NULL;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pStyleGalleryItem.CreateInstance("esriFramework.StyleGalleryItem");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IStyleGalleryStoragePtr pStyleGalleryStorage = pStyleGallery;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pStyleGalleryStorage-&amp;gt;put_TargetFile(L"E:\\My Projects\\NMSYmbol\\NMSymbol\\Bin\\logo.style");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pStyleGalleryItem-&amp;gt;put_Category(L"Logo Mark");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pStyleGalleryItem-&amp;gt;put_Name(L"Logo Mark");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/////&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/////&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pStyleGalleryItem-&amp;gt;put_Item(pLogoMarker);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pStyleGallery-&amp;gt;AddItem(pStyleGalleryItem);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pStyleGallery-&amp;gt;SaveStyle(L"E:\\My Projects\\NMSYmbol\\NMSymbol\\Bin\\logo.style",L"LogoMarker",L"LogoMarkerClass");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//question1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//I run the project I can not find the "pLogoMarker" markersymbol in the stylemanager. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//but when i use the "pSimpleMarkerSymbol" instead of "pLogoMarker" and run the project &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//i can find a simplemarkersymbol(default) in the stylemanager.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;///i just want to save my custom marker to a .style file!!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/// i dont know why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;question2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;there are 10 custom meta-graphs(circle,rectangle,truetype font,bezier line ), and i want to compose complex symbols(markersymbol,linesymbol,fillsymbol) wiht some of them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One is to implementing the ISymbol::Draw() to draw the meta-graphs to get markersymbols,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then use multilayermarkersymbol,markerlinesymbol,markerfillsymbol to get complex symbols.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a far better idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice would be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Feb 2011 09:47:37 GMT</pubDate>
    <dc:creator>XiaoweiSun</dc:creator>
    <dc:date>2011-02-20T09:47:37Z</dc:date>
    <item>
      <title>Confused in implementing custom symbols!!!!!!! help!!!!</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/confused-in-implementing-custom-symbols-help/m-p/731918#M19484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;///1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ILogoMarkerSymbolPtr pLogoMarker = NULL;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; pLogoMarker.CreateInstance(__uuidof(LogoMarkerSymbol));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//it's a custom marker symbol from the Example below&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://edndoc.esri.com/arcobjects/9.1/Samples/Extending_ArcObjects/Ch05_Display/LogoMarkerSymbol/LogoMarkerSymbol.htm" rel="nofollow" target="_blank"&gt;http://edndoc.esri.com/arcobjects/9.1/Samples/Extending_ArcObjects/Ch05_Display/LogoMarkerSymbol/LogoMarkerSymbol.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://edndoc.esri.com/arcobjects/9.1/extendingarcobjects/ch05/logomarkersymbol.htm" rel="nofollow" target="_blank"&gt;http://edndoc.esri.com/arcobjects/9.1/extendingarcobjects/ch05/logomarkersymbol.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;///2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ISimpleMarkerSymbolPtr pSimpleMarkerSymbol = NULL;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; pSimpleMarkerSymbol.CreateInstance(__uuidof(SimpleMarkerSymbol));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;///3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IStyleGalleryPtr pStyleGallery = NULL;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pStyleGallery.CreateInstance("esriFramework.StyleGallery");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IStyleGalleryItemPtr pStyleGalleryItem = NULL;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pStyleGalleryItem.CreateInstance("esriFramework.StyleGalleryItem");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IStyleGalleryStoragePtr pStyleGalleryStorage = pStyleGallery;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pStyleGalleryStorage-&amp;gt;put_TargetFile(L"E:\\My Projects\\NMSYmbol\\NMSymbol\\Bin\\logo.style");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pStyleGalleryItem-&amp;gt;put_Category(L"Logo Mark");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pStyleGalleryItem-&amp;gt;put_Name(L"Logo Mark");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/////&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/////&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pStyleGalleryItem-&amp;gt;put_Item(pLogoMarker);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pStyleGallery-&amp;gt;AddItem(pStyleGalleryItem);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pStyleGallery-&amp;gt;SaveStyle(L"E:\\My Projects\\NMSYmbol\\NMSymbol\\Bin\\logo.style",L"LogoMarker",L"LogoMarkerClass");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//question1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//I run the project I can not find the "pLogoMarker" markersymbol in the stylemanager. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//but when i use the "pSimpleMarkerSymbol" instead of "pLogoMarker" and run the project &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//i can find a simplemarkersymbol(default) in the stylemanager.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;///i just want to save my custom marker to a .style file!!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/// i dont know why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;question2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;there are 10 custom meta-graphs(circle,rectangle,truetype font,bezier line ), and i want to compose complex symbols(markersymbol,linesymbol,fillsymbol) wiht some of them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One is to implementing the ISymbol::Draw() to draw the meta-graphs to get markersymbols,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then use multilayermarkersymbol,markerlinesymbol,markerfillsymbol to get complex symbols.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a far better idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice would be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Feb 2011 09:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/confused-in-implementing-custom-symbols-help/m-p/731918#M19484</guid>
      <dc:creator>XiaoweiSun</dc:creator>
      <dc:date>2011-02-20T09:47:37Z</dc:date>
    </item>
  </channel>
</rss>

