<?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 Re: Mixing COM and .NET in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741595#M21189</link>
    <description>&lt;P&gt;SURE! Assuming that you have referenced that AeccDbMgd and AecBaseMgd dll, the Survey figure style object is located at:&lt;/P&gt;&lt;P&gt;Autodesk.Civil.Survey.DatabaseServices.Styles.SurveyFigureStyle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't forget about object browser. Oftentimes when I am looking for something, I will do a quick search there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
    <pubDate>Tue, 10 Aug 2010 22:12:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-08-10T22:12:34Z</dc:date>
    <item>
      <title>Mixing COM and .NET</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741415#M21184</link>
      <description>&lt;P&gt;I am writing a program that creates the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Point Styles (.NET)&lt;/LI&gt;&lt;LI&gt;Point Descriptions Keys (COM)&lt;/LI&gt;&lt;LI&gt;Marker Style for Survey Figure (COM)&lt;/LI&gt;&lt;LI&gt;Survey Figure Style (COM)&lt;/LI&gt;&lt;LI&gt;Survey Figure Prefix Database (COM)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If you are in the midst of a Transaction block to create a point style, is there any issue with using the COM interface to also create a Marker style? Or is it better to use the COM objects outside of the Transaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There seems to be a lot of stuff here that can only be done with COM, is that just work in progress with Autodesk?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a Survey Figure Style there seems to be no way to set the following in code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Beginning Vertex Marker &amp;gt; Marker Style (Profile mode)&lt;/LI&gt;&lt;LI&gt;Internal Vertex Markers &amp;gt; Marker Style (Profile mode)&lt;/LI&gt;&lt;LI&gt;Ending Vertex Marker &amp;gt; Marker Style (Profile mode)&lt;/LI&gt;&lt;LI&gt;Crossing Marker &amp;gt; Marker Style (Section mode)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You can read these values (e.g. FigureStyle.MidpointMarkersDisplayStyleProfile) but those properties are read-only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to make sure my assumptions about what you can do in COM vs. .NET are correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2010 19:59:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741415#M21184</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2010-08-10T19:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Mixing COM and .NET</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741451#M21185</link>
      <description>&lt;P&gt;I have not personally ran into a problem running a COM create style in the middle of a transaction. I do choose to create a completely different project and keep COM&amp;nbsp;separate&amp;nbsp;from managed .Net but that is just personal housekeeping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As regards the marker styles, the SurveyFigureStyle&amp;nbsp;object only provides an ObjectId to the marker style. However, ALL are available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Profile &amp;gt; Beginning Vertex Marker &amp;gt; Marker Style &amp;nbsp;=&amp;nbsp;BeginningVertexMarkerStyleId&lt;/P&gt;&lt;P&gt;Profile &amp;gt; Internal Vertex Markers &amp;gt; Marker Style =&amp;nbsp;InternalVertexMarkerStyleId&amp;nbsp;&lt;/P&gt;&lt;P&gt;Profile &amp;gt; Ending Vertex Marker &amp;gt; Marker Style =&amp;nbsp;EndingVertexMarkerStyleId&lt;/P&gt;&lt;P&gt;Profile &amp;gt; Crossing Marker &amp;gt; Marker Style =&amp;nbsp;CrossingMarkerStyleId&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;MidpointMarkersDisplayStyleProfile is for the display settings of the different sub-components. Is this what you are looking for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2010 20:23:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741451#M21185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-10T20:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Mixing COM and .NET</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741571#M21186</link>
      <description>&lt;P&gt;See image below, this is what I was looking for. I corrected a one thing since I first posted this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="213iDC0297671CC313CE" src="https://forums.autodesk.com/t5/image/serverpage/image-id/213iDC0297671CC313CE/image-size/original?v=mpbl-1&amp;amp;px=-1" align="center" title="Untitled2.jpg" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I mispoke referring to MidPointMarkersDisplayProfile, that is related to display settings as you said and I already have those set up properly, I think. The problem is the names don't match (VertexMarkersDisplayStyleProfile for Beginning Vertex Marker, MidpointMarkersDisplayStyleProfile for Internal Vertex Marker and EndpointMarkersDisplayStyleProfile for Ending Vertex Marker).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="215i2F214920016E282F" src="https://forums.autodesk.com/t5/image/serverpage/image-id/215i2F214920016E282F/image-size/original?v=mpbl-1&amp;amp;px=-1" align="center" title="Untitled2.jpg" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;With oFigureStyle
    With .FigureLinesDisplayStyleProfile
        .Visible = True
        .Layer = sKeyAtts(3)
        .Color = 256
        .Linetype = "ByLayer"
        .LinetypeScale = 1.0
        .Lineweight = 256
        .PlotStyle = "ByLayer"
    End With
    With .VertexMarkersDisplayStyleProfile
        .Visible = True
        .Layer = sKeyAtts(3)
        .Color = 256
        .Linetype = "ByLayer"
        .LinetypeScale = 1.0
        .Lineweight = 256
        .PlotStyle = "ByLayer"
    End With
    With .MidpointMarkersDisplayStyleProfile
        .Visible = True
        .Layer = sKeyAtts(3)
        .Color = 256
        .Linetype = "ByLayer"
        .LinetypeScale = 1.0
        .Lineweight = 256
        .PlotStyle = "ByLayer"
    End With
    With .EndpointMarkersDisplayStyleProfile
        .Visible = True
        .Layer = sKeyAtts(3)
        .Color = 256
        .Linetype = "ByLayer"
        .LinetypeScale = 1.0
        .Lineweight = 256
        .PlotStyle = "ByLayer"
    End With
End With&lt;/PRE&gt;&lt;P&gt;I was not able to find AeccSurveyFigureStyle.InternalVertexMarkerStyleId. Where did you find that property?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2010 22:03:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741571#M21186</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2010-08-10T22:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Mixing COM and .NET</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741581#M21187</link>
      <description>&lt;P&gt;I did not follow Rule #1 - Always read in full OP comments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I posted is all from the .Net API and NOT com. Sorry about that. I just don't deal with COM anymore unless I absolutely have to so can't help you much on the COM side.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2010 22:02:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741581#M21187</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-10T22:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mixing COM and .NET</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741587#M21188</link>
      <description>&lt;P&gt;Ok, I was unable to find SurveyFigureStyle at all under .NET, can you give me a head start on where to find those properties in the maze? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2010 22:07:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741587#M21188</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2010-08-10T22:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Mixing COM and .NET</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741595#M21189</link>
      <description>&lt;P&gt;SURE! Assuming that you have referenced that AeccDbMgd and AecBaseMgd dll, the Survey figure style object is located at:&lt;/P&gt;&lt;P&gt;Autodesk.Civil.Survey.DatabaseServices.Styles.SurveyFigureStyle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't forget about object browser. Oftentimes when I am looking for something, I will do a quick search there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2010 22:12:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741595#M21189</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-10T22:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Mixing COM and .NET</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741597#M21190</link>
      <description>&lt;P&gt;Thanks, I was searching in the .NET API reference CHM file but got nothing. Maybe I'll be able to find the other items in .NET as well.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2010 22:19:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741597#M21190</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2010-08-10T22:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Mixing COM and .NET</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741611#M21191</link>
      <description>&lt;P&gt;...deleted..... Ok, maybe not....back to looking.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2010 23:14:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2741611#M21191</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2010-08-10T23:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Mixing COM and .NET</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2744179#M21192</link>
      <description>&lt;P&gt;After searching through the object browser I can create #3/#4 with .NET also.&lt;/P&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Point Styles (.NET)&lt;/LI&gt;&lt;LI&gt;Point Description Key Set (Point Description Keys)&lt;STRONG&gt; (COM)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Marker Style for Survey Figure (.NET)&lt;/LI&gt;&lt;LI&gt;Survey Figure Style (.NET)&lt;/LI&gt;&lt;LI&gt;Survey Figure Prefix Database&lt;STRONG&gt; (COM)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So I guess I'm stuck with COM for #2 and #5&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2010 22:17:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/mixing-com-and-net/m-p/2744179#M21192</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2010-08-12T22:17:17Z</dc:date>
    </item>
  </channel>
</rss>

