<?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 SelectionSet objects in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3570520#M53993</link>
    <description>&lt;P&gt;I'd like understand better how to deal with SelectionObj in SelectionSets..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i classify SelectionObj(s) as specific entities , like line2d,, &amp;nbsp; so I can utilize them better with line2d methods..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would be better if i could prompt for lines and only allow lines for selection? is there such a function or do i program a IF that checks selectionSet and message user if some objects was not a linetype&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;my concept understanding is to:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for each selectionOBJ in selectionSET&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; trycast &amp;nbsp;selectionObj.getobjectType, &amp;nbsp;line2d&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does that make sense?&lt;/P&gt;&lt;P&gt;i dont know how id put that in vb code.. if even possible. &amp;nbsp;please point me in a direction. &amp;nbsp; &amp;nbsp;'forgive my noobness&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Aug 2012 18:08:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-08T18:08:42Z</dc:date>
    <item>
      <title>SelectionSet objects</title>
      <link>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3570520#M53993</link>
      <description>&lt;P&gt;I'd like understand better how to deal with SelectionObj in SelectionSets..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i classify SelectionObj(s) as specific entities , like line2d,, &amp;nbsp; so I can utilize them better with line2d methods..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would be better if i could prompt for lines and only allow lines for selection? is there such a function or do i program a IF that checks selectionSet and message user if some objects was not a linetype&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;my concept understanding is to:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for each selectionOBJ in selectionSET&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; trycast &amp;nbsp;selectionObj.getobjectType, &amp;nbsp;line2d&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does that make sense?&lt;/P&gt;&lt;P&gt;i dont know how id put that in vb code.. if even possible. &amp;nbsp;please point me in a direction. &amp;nbsp; &amp;nbsp;'forgive my noobness&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 18:08:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3570520#M53993</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-08T18:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: SelectionSet objects</title>
      <link>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3570590#M53994</link>
      <description>&lt;P&gt;You want to learn to use selection set filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer%27s%20Guide/index.html"&gt;http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer%27s%20Guide/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a AutoCAD .NET Developer’s Guide available as a Pdf which has many samples of using selection set filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could not find a link for the Pdf, maybe someone else can provide you a link.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 18:34:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3570590#M53994</guid>
      <dc:creator>fxcastil</dc:creator>
      <dc:date>2012-08-08T18:34:52Z</dc:date>
    </item>
    <item>
      <title>Re : SelectionSet objects</title>
      <link>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3570808#M53995</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like you're confusing Autodesk.AutoCAD.Gemometry.Line2d (which is a geometric object without graphic representation and which can't be select) with Autodaek.AutoCAD.DatabaseServices.Line (which is the graphic object you can select).&lt;/P&gt;&lt;P&gt;See this thread:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://forums.autodesk.com/t5/NET/Entity-vs-Entity2d/td-p/3564086"&gt;http://forums.autodesk.com/t5/NET/Entity-vs-Entity2d/td-p/3564086&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 20:30:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3570808#M53995</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2012-08-08T20:30:36Z</dc:date>
    </item>
    <item>
      <title>Re : SelectionSet objects</title>
      <link>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3572462#M53996</link>
      <description>&lt;P&gt;ok thx fxcastil i looked at selection filters it will help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@ _gile&lt;/P&gt;&lt;P&gt;I see what u mean with difference in databaseservice vs. geometery objects&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;my goal:&lt;/STRONG&gt;&lt;/U&gt; is to get a selection of lines. then access each individual lines X &amp;amp; Y (@endPoint) coordinates and change them&amp;nbsp;individually.&lt;/P&gt;&lt;P&gt;I prompt for a Start point (which will not change x &amp;amp; y) ,, then i need to name this line and proceding lines in order,, like 1-2 &amp;nbsp;,2-3, 3-4 ect. &amp;nbsp; These lines will &lt;STRONG&gt;almost&lt;/STRONG&gt; close back onto the Start point.&lt;/P&gt;&lt;P&gt;from here, I calculate the distance in x &amp;amp; y needed for closure and adjust all the lines individually (but in proportion) so that they close a polygon.&lt;/P&gt;&lt;P&gt;THE MAIN idea is i need to read Start &lt;EM&gt;and&lt;/EM&gt; End points on the selected lines&lt;STRONG&gt; INdividually&lt;/STRONG&gt;&amp;nbsp;and change with some calculated variables.&lt;/P&gt;&lt;P&gt;the calculations i can code myself. im comfortable enough with vb.net.. i just need to access some values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IN Geomatics Engineering we call this &lt;STRONG&gt;&amp;nbsp;"Compass Rule Adjustment"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I choose this as my starting project to learn Autocad.net programming.&lt;/P&gt;&lt;P&gt;Later i will do more complex projects for least square adjustments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my problem i have a selectionSET of SelectionObj(s) .. (which i filter) so i know they are definitly lines&lt;/P&gt;&lt;P&gt;How do i classify them as such so i can access the X&amp;amp;Y properties to change them..&lt;/P&gt;&lt;P&gt;or How would YOU do this project?&lt;/P&gt;&lt;P&gt;not show me excatly, just some direction would help me learn myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have developer's Guide but it can be sometimes obscure for a new learner.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;my idea is to check each selected line IF Start coodinates = PrompPointResult.x and &lt;SPAN&gt;PrompPointResult.y&lt;/SPAN&gt;&amp;nbsp;THEN&lt;/P&gt;&lt;P&gt;that line.id = "1"&lt;/P&gt;&lt;P&gt;check IF line.id("1").x and&amp;nbsp;&lt;SPAN&gt;line.id("1").y =&amp;nbsp;&lt;SPAN&gt;check each selected line for match THEN label that match line.id = "2"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;but how to syntax&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 17:59:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3572462#M53996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-09T17:59:17Z</dc:date>
    </item>
    <item>
      <title>Re : SelectionSet objects</title>
      <link>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3572540#M53997</link>
      <description>&lt;P&gt;should i first give all the selectionobjects aka.lines in my selectionset a typedvalue line "LINE"?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 18:17:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3572540#M53997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-09T18:17:20Z</dc:date>
    </item>
    <item>
      <title>Re : SelectionSet objects</title>
      <link>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3572816#M53998</link>
      <description>&lt;P&gt;You'll be more likely to&amp;nbsp;show us your code you've started with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000" face="arial,helvetica,sans-serif"&gt;~'J'~&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 20:15:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3572816#M53998</guid>
      <dc:creator>Hallex</dc:creator>
      <dc:date>2012-08-09T20:15:48Z</dc:date>
    </item>
    <item>
      <title>Re : SelectionSet objects</title>
      <link>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3573024#M53999</link>
      <description>&lt;P&gt;YES &amp;nbsp;i solved my own problem, &amp;nbsp;sry to waste your time guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Each obj As SelectedObject In MySelectedSet&lt;BR /&gt;Dim ent As Entity = trsAct.GetObject(obj.ObjectId, OpenMode.ForRead)&lt;BR /&gt;Dim&lt;STRONG&gt; line As Line = ent&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now:&lt;/P&gt;&lt;P&gt;with the &lt;STRONG&gt;line&lt;/STRONG&gt; variable i have access to X Y coordinates of lines start point and more methods related to lines specifically&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from here things get easier.&amp;nbsp;&lt;/P&gt;&lt;P&gt;now i just need to figure out how to give each line its own name.. it will be much more convienent than as refering to Ojectids.. blockName? no readonly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is line.ownerId?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 23:08:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3573024#M53999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-09T23:08:08Z</dc:date>
    </item>
    <item>
      <title>Re : SelectionSet objects</title>
      <link>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3573048#M54000</link>
      <description>&lt;P&gt;I think this is where dictionary comes to play. &amp;nbsp;because there is no property to name my line i can perhaps attach a xrecord to the line's extentionDictionary &amp;nbsp; and if i need that line , i can call it refering to the saved xrec.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 23:21:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selectionset-objects/m-p/3573048#M54000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-09T23:21:48Z</dc:date>
    </item>
  </channel>
</rss>

