<?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 entities modify in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/entities-modify/m-p/2706193#M64944</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does somebody know how is posible to&amp;nbsp;get which&lt;/P&gt;&lt;P&gt;entities user want to modify:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User can select entities and then start to copy, move, etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User can run command and then select to copy, move, etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some way to we catch, before entities are&amp;nbsp;started to modify,&lt;/P&gt;&lt;P&gt;which entities are selected (as list od objectids, or list of entites)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Danijel&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jul 2010 09:20:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-07-01T09:20:18Z</dc:date>
    <item>
      <title>entities modify</title>
      <link>https://forums.autodesk.com/t5/net-forum/entities-modify/m-p/2706193#M64944</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does somebody know how is posible to&amp;nbsp;get which&lt;/P&gt;&lt;P&gt;entities user want to modify:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User can select entities and then start to copy, move, etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User can run command and then select to copy, move, etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some way to we catch, before entities are&amp;nbsp;started to modify,&lt;/P&gt;&lt;P&gt;which entities are selected (as list od objectids, or list of entites)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Danijel&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2010 09:20:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/entities-modify/m-p/2706193#M64944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-01T09:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: entities modify</title>
      <link>https://forums.autodesk.com/t5/net-forum/entities-modify/m-p/2706635#M64945</link>
      <description>&lt;P&gt;Do you mean you want to run your code&amp;nbsp;using the items the user has preselected before running your command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, you need to add CommandFlags.UsePickSet to&amp;nbsp;the CommandMethod attribute of your command, then in your code you can get the implied selection. If that comes back empty then you can ask the user to select something.&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;PRE&gt;	Dim doc As Document = Application.DocumentManager.MdiActiveDocument
        Dim ed As Editor = doc.Editor
        Dim objIDs() As ObjectId = Nothing
        Dim pres As PromptSelectionResult = ed.SelectImplied()
        If pres.Status &amp;lt;&amp;gt; PromptStatus.OK Then
            'do stuff here to get your user to select items
        Else
            objIDs = pres.Value.GetObjectIds
        End If&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2010 15:50:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/entities-modify/m-p/2706635#M64945</guid>
      <dc:creator>Paulio</dc:creator>
      <dc:date>2010-07-01T15:50:27Z</dc:date>
    </item>
  </channel>
</rss>

