<?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: How to wrapper the acutBuilList function? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342795#M84795</link>
    <description>After having a closer look, it looks like the way things&lt;BR /&gt;
are designed, you do not use the ResultBuffer to build&lt;BR /&gt;
a selection set filter.&lt;BR /&gt;
&lt;BR /&gt;
You just create an array of TypedValue's and pass that&lt;BR /&gt;
to the SelectionFilter's c'tor.&lt;BR /&gt;
&lt;BR /&gt;
That's the good news.&lt;BR /&gt;
&lt;BR /&gt;
Unfortunately, the SelectionFilter class uses an internal&lt;BR /&gt;
class called FilterExtractor which in turn, uses the same&lt;BR /&gt;
ResultBuffer class to convert the array of TypedValue's&lt;BR /&gt;
into an unmanaged resbuf chain. I have no idea what the&lt;BR /&gt;
FilterExtractor is for, or why it uses ResultBuffer internally,&lt;BR /&gt;
but given the fact that the latter assumes that it deals&lt;BR /&gt;
only with DWG-persistent data (data stored in a .DWG),&lt;BR /&gt;
it appears that the ResultBuffer was never intended to be&lt;BR /&gt;
used for building filter lists to begin with.&lt;BR /&gt;
&lt;BR /&gt;
I guess whomever was responsible for the SelectionFilter&lt;BR /&gt;
and FilterExtractor implementations didn't realize that,&lt;BR /&gt;
and that's why the former can't deal with some resbuf&lt;BR /&gt;
types like the -4 logical filter grouping delimters.&lt;BR /&gt;
&lt;BR /&gt;
So, there is no workaround for the problem because in&lt;BR /&gt;
any case, the filter data is going to end up going through&lt;BR /&gt;
a ResultBuffer before it is used.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;TANGFERRY&gt; wrote in message news:4864330@discussion.autodesk.com...&lt;BR /&gt;
I want to select circles and lines using selectionset.&lt;BR /&gt;
The source code file  is in the attachment.&lt;BR /&gt;
But when i test it in AutoCAD,I get the following error message:&lt;BR /&gt;
&lt;BR /&gt;
See the end of this message for details on invoking&lt;BR /&gt;
just-in-time (JIT) debugging instead of this dialog box.&lt;BR /&gt;
&lt;BR /&gt;
************** Exception Text **************&lt;BR /&gt;
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&amp;gt; &lt;BR /&gt;
System.NullReferenceException: Object reference not set to an ins&lt;BR /&gt;
tance of an object.&lt;BR /&gt;
   at Autodesk.AutoCAD.DatabaseServices.ResultBuffer..ctor(TypedValue[] values)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.FilterExtractor.__ctor(FilterExtractor* , SelectionFilter filter)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.Editor.GetSelection(SelectionFilter filter)&lt;BR /&gt;
   at ClassLibrary.DNOTClass.test()&lt;BR /&gt;
   --- End of inner exception stack trace ---&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] &lt;BR /&gt;
parameters,&lt;BR /&gt;
CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] &lt;BR /&gt;
parameters, CultureInfo culture, Boolean verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] &lt;BR /&gt;
parameters, CultureInfo culture)&lt;BR /&gt;
   at AcMgPerDocumentCommandClass.Invoke(AcMgPerDocumentCommandClass* , gcroot&lt;:REFL&gt;&lt;BR /&gt;
ection::MethodInfo __gc *&amp;gt;* mi)&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.SEHExceptionFilter.InvokeWorker()&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.ExceptionFilter.Invoke()&lt;BR /&gt;
&lt;BR /&gt;
How to solve this problem?Thanks.&lt;/:REFL&gt;&lt;/TANGFERRY&gt;</description>
    <pubDate>Fri, 03 Jun 2005 09:32:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-06-03T09:32:07Z</dc:date>
    <item>
      <title>How to wrapper the acutBuilList function?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342788#M84788</link>
      <description>I was told that in the managed wrapper class,you cannot use the conditional selectionset.So anyone could wrapper the acutBuilList function so that it can be used in .NET?</description>
      <pubDate>Thu, 02 Jun 2005 06:57:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342788#M84788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-02T06:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to wrapper the acutBuilList function?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342789#M84789</link>
      <description>Tony already posted some code that does this. You reported that it doesn't &lt;BR /&gt;
work but you just didn't read the caveat: you shouldn't call AsArray() on &lt;BR /&gt;
the resulting ResultBuffer. I recommend you read Tony's post again.&lt;BR /&gt;
&lt;BR /&gt;
albert&lt;BR /&gt;
&lt;TANGFERRY&gt; wrote in message news:4862889@discussion.autodesk.com...&lt;BR /&gt;
I was told that in the managed wrapper class,you cannot use the conditional &lt;BR /&gt;
selectionset.So anyone could wrapper the acutBuilList function so that it &lt;BR /&gt;
can be used in .NET?&lt;/TANGFERRY&gt;</description>
      <pubDate>Thu, 02 Jun 2005 15:39:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342789#M84789</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-02T15:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to wrapper the acutBuilList function?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342790#M84790</link>
      <description>I have tried his codes,but it does not work.</description>
      <pubDate>Fri, 03 Jun 2005 02:19:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342790#M84790</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-03T02:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to wrapper the acutBuilList function?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342791#M84791</link>
      <description>What does that mean? What did you expect to happen and what actually &lt;BR /&gt;
happened?&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;TANGFERRY&gt; wrote in message news:4864286@discussion.autodesk.com...&lt;BR /&gt;
I have tried his codes,but it does not work.&lt;/TANGFERRY&gt;</description>
      <pubDate>Fri, 03 Jun 2005 03:23:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342791#M84791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-03T03:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to wrapper the acutBuilList function?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342792#M84792</link>
      <description>I want to select circles and lines using selectionset.&lt;BR /&gt;
The source code file  is in the attachment.&lt;BR /&gt;
But when i test it in AutoCAD,I get the following error message:&lt;BR /&gt;
&lt;BR /&gt;
See the end of this message for details on invoking &lt;BR /&gt;
just-in-time (JIT) debugging instead of this dialog box.&lt;BR /&gt;
&lt;BR /&gt;
************** Exception Text **************&lt;BR /&gt;
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&amp;gt; System.NullReferenceException: Object reference not set to an instance of an object.&lt;BR /&gt;
   at Autodesk.AutoCAD.DatabaseServices.ResultBuffer..ctor(TypedValue[] values)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.FilterExtractor.__ctor(FilterExtractor* , SelectionFilter filter)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.Editor.GetSelection(SelectionFilter filter)&lt;BR /&gt;
   at ClassLibrary.DNOTClass.test()&lt;BR /&gt;
   --- End of inner exception stack trace ---&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)&lt;BR /&gt;
   at AcMgPerDocumentCommandClass.Invoke(AcMgPerDocumentCommandClass* , gcroot&lt;:REFLECTION::METHODINFO __gc=""&gt;* mi)&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.SEHExceptionFilter.InvokeWorker()&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.ExceptionFilter.Invoke()&lt;BR /&gt;
&lt;BR /&gt;
How to solve this problem?Thanks.&lt;/:REFLECTION::METHODINFO&gt;</description>
      <pubDate>Fri, 03 Jun 2005 04:56:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342792#M84792</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-03T04:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to wrapper the acutBuilList function?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342793#M84793</link>
      <description>Sorry, I failed to consider that in order to use a&lt;BR /&gt;
ResultBuffer for object selection filtering, you must&lt;BR /&gt;
call the AsArray() member, and if you look at my&lt;BR /&gt;
original workaround, you'll see the caveat that you&lt;BR /&gt;
can't do that after hacking the ResultBuffer.&lt;BR /&gt;
&lt;BR /&gt;
So, the workaround is essentially useless.&lt;BR /&gt;
&lt;BR /&gt;
Let's see what else we can come up with ....&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;TANGFERRY&gt; wrote in message news:4864330@discussion.autodesk.com...&lt;BR /&gt;
I want to select circles and lines using selectionset.&lt;BR /&gt;
The source code file  is in the attachment.&lt;BR /&gt;
But when i test it in AutoCAD,I get the following error message:&lt;BR /&gt;
&lt;BR /&gt;
See the end of this message for details on invoking&lt;BR /&gt;
just-in-time (JIT) debugging instead of this dialog box.&lt;BR /&gt;
&lt;BR /&gt;
************** Exception Text **************&lt;BR /&gt;
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&amp;gt; &lt;BR /&gt;
System.NullReferenceException: Object reference not set to an ins&lt;BR /&gt;
tance of an object.&lt;BR /&gt;
   at Autodesk.AutoCAD.DatabaseServices.ResultBuffer..ctor(TypedValue[] values)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.FilterExtractor.__ctor(FilterExtractor* , SelectionFilter filter)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.Editor.GetSelection(SelectionFilter filter)&lt;BR /&gt;
   at ClassLibrary.DNOTClass.test()&lt;BR /&gt;
   --- End of inner exception stack trace ---&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] &lt;BR /&gt;
parameters,&lt;BR /&gt;
CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] &lt;BR /&gt;
parameters, CultureInfo culture, Boolean verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] &lt;BR /&gt;
parameters, CultureInfo culture)&lt;BR /&gt;
   at AcMgPerDocumentCommandClass.Invoke(AcMgPerDocumentCommandClass* , gcroot&lt;:REFL&gt;&lt;BR /&gt;
ection::MethodInfo __gc *&amp;gt;* mi)&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.SEHExceptionFilter.InvokeWorker()&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.ExceptionFilter.Invoke()&lt;BR /&gt;
&lt;BR /&gt;
How to solve this problem?Thanks.&lt;/:REFL&gt;&lt;/TANGFERRY&gt;</description>
      <pubDate>Fri, 03 Jun 2005 08:08:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342793#M84793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-03T08:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to wrapper the acutBuilList function?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342794#M84794</link>
      <description>"Albert Szilvasy" &lt;NOT_PROVIDED&gt; wrote &lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;&amp;gt; What does that mean? What did you expect to &lt;BR /&gt;
&amp;gt;&amp;gt; happen and what actually happened?&lt;BR /&gt;
&lt;BR /&gt;
Well, I think I know what happened.&lt;BR /&gt;
&lt;BR /&gt;
He has to pass the SelectionFilter's c'tor an array of TypedValue[],&lt;BR /&gt;
which means he has to call ResultBuffer.AsArray() to get them.&lt;BR /&gt;
&lt;BR /&gt;
Duh - oh well, so much for that workaround!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;/NOT_PROVIDED&gt;</description>
      <pubDate>Fri, 03 Jun 2005 08:08:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342794#M84794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-03T08:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to wrapper the acutBuilList function?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342795#M84795</link>
      <description>After having a closer look, it looks like the way things&lt;BR /&gt;
are designed, you do not use the ResultBuffer to build&lt;BR /&gt;
a selection set filter.&lt;BR /&gt;
&lt;BR /&gt;
You just create an array of TypedValue's and pass that&lt;BR /&gt;
to the SelectionFilter's c'tor.&lt;BR /&gt;
&lt;BR /&gt;
That's the good news.&lt;BR /&gt;
&lt;BR /&gt;
Unfortunately, the SelectionFilter class uses an internal&lt;BR /&gt;
class called FilterExtractor which in turn, uses the same&lt;BR /&gt;
ResultBuffer class to convert the array of TypedValue's&lt;BR /&gt;
into an unmanaged resbuf chain. I have no idea what the&lt;BR /&gt;
FilterExtractor is for, or why it uses ResultBuffer internally,&lt;BR /&gt;
but given the fact that the latter assumes that it deals&lt;BR /&gt;
only with DWG-persistent data (data stored in a .DWG),&lt;BR /&gt;
it appears that the ResultBuffer was never intended to be&lt;BR /&gt;
used for building filter lists to begin with.&lt;BR /&gt;
&lt;BR /&gt;
I guess whomever was responsible for the SelectionFilter&lt;BR /&gt;
and FilterExtractor implementations didn't realize that,&lt;BR /&gt;
and that's why the former can't deal with some resbuf&lt;BR /&gt;
types like the -4 logical filter grouping delimters.&lt;BR /&gt;
&lt;BR /&gt;
So, there is no workaround for the problem because in&lt;BR /&gt;
any case, the filter data is going to end up going through&lt;BR /&gt;
a ResultBuffer before it is used.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;TANGFERRY&gt; wrote in message news:4864330@discussion.autodesk.com...&lt;BR /&gt;
I want to select circles and lines using selectionset.&lt;BR /&gt;
The source code file  is in the attachment.&lt;BR /&gt;
But when i test it in AutoCAD,I get the following error message:&lt;BR /&gt;
&lt;BR /&gt;
See the end of this message for details on invoking&lt;BR /&gt;
just-in-time (JIT) debugging instead of this dialog box.&lt;BR /&gt;
&lt;BR /&gt;
************** Exception Text **************&lt;BR /&gt;
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&amp;gt; &lt;BR /&gt;
System.NullReferenceException: Object reference not set to an ins&lt;BR /&gt;
tance of an object.&lt;BR /&gt;
   at Autodesk.AutoCAD.DatabaseServices.ResultBuffer..ctor(TypedValue[] values)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.FilterExtractor.__ctor(FilterExtractor* , SelectionFilter filter)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.Editor.GetSelection(SelectionFilter filter)&lt;BR /&gt;
   at ClassLibrary.DNOTClass.test()&lt;BR /&gt;
   --- End of inner exception stack trace ---&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] &lt;BR /&gt;
parameters,&lt;BR /&gt;
CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] &lt;BR /&gt;
parameters, CultureInfo culture, Boolean verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] &lt;BR /&gt;
parameters, CultureInfo culture)&lt;BR /&gt;
   at AcMgPerDocumentCommandClass.Invoke(AcMgPerDocumentCommandClass* , gcroot&lt;:REFL&gt;&lt;BR /&gt;
ection::MethodInfo __gc *&amp;gt;* mi)&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.SEHExceptionFilter.InvokeWorker()&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.ExceptionFilter.Invoke()&lt;BR /&gt;
&lt;BR /&gt;
How to solve this problem?Thanks.&lt;/:REFL&gt;&lt;/TANGFERRY&gt;</description>
      <pubDate>Fri, 03 Jun 2005 09:32:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342795#M84795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-03T09:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to wrapper the acutBuilList function?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342796#M84796</link>
      <description>It is actually not completely useless. You just need to call acedSSGet &lt;BR /&gt;
directly with the resbuf. I try to put together an example today or over the &lt;BR /&gt;
weekend.&lt;BR /&gt;
&lt;BR /&gt;
albert&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message &lt;BR /&gt;
news:4864380@discussion.autodesk.com...&lt;BR /&gt;
Sorry, I failed to consider that in order to use a&lt;BR /&gt;
ResultBuffer for object selection filtering, you must&lt;BR /&gt;
call the AsArray() member, and if you look at my&lt;BR /&gt;
original workaround, you'll see the caveat that you&lt;BR /&gt;
can't do that after hacking the ResultBuffer.&lt;BR /&gt;
&lt;BR /&gt;
So, the workaround is essentially useless.&lt;BR /&gt;
&lt;BR /&gt;
Let's see what else we can come up with ....&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;TANGFERRY&gt; wrote in message news:4864330@discussion.autodesk.com...&lt;BR /&gt;
I want to select circles and lines using selectionset.&lt;BR /&gt;
The source code file  is in the attachment.&lt;BR /&gt;
But when i test it in AutoCAD,I get the following error message:&lt;BR /&gt;
&lt;BR /&gt;
See the end of this message for details on invoking&lt;BR /&gt;
just-in-time (JIT) debugging instead of this dialog box.&lt;BR /&gt;
&lt;BR /&gt;
************** Exception Text **************&lt;BR /&gt;
System.Reflection.TargetInvocationException: Exception has been thrown by &lt;BR /&gt;
the target of an invocation. ---&amp;gt;&lt;BR /&gt;
System.NullReferenceException: Object reference not set to an ins&lt;BR /&gt;
tance of an object.&lt;BR /&gt;
   at Autodesk.AutoCAD.DatabaseServices.ResultBuffer..ctor(TypedValue[] &lt;BR /&gt;
values)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.FilterExtractor.__ctor(FilterExtractor* , &lt;BR /&gt;
SelectionFilter filter)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.Editor.GetSelection(SelectionFilter &lt;BR /&gt;
filter)&lt;BR /&gt;
   at ClassLibrary.DNOTClass.test()&lt;BR /&gt;
   --- End of inner exception stack trace ---&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, &lt;BR /&gt;
BindingFlags invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters,&lt;BR /&gt;
CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean &lt;BR /&gt;
verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, &lt;BR /&gt;
BindingFlags invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters, CultureInfo culture, Boolean verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags &lt;BR /&gt;
invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters, CultureInfo culture)&lt;BR /&gt;
   at AcMgPerDocumentCommandClass.Invoke(AcMgPerDocumentCommandClass* , &lt;BR /&gt;
gcroot&lt;:REFL&gt;&lt;BR /&gt;
ection::MethodInfo __gc *&amp;gt;* mi)&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.SEHExceptionFilter.InvokeWorker()&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.ExceptionFilter.Invoke()&lt;BR /&gt;
&lt;BR /&gt;
How to solve this problem?Thanks.&lt;/:REFL&gt;&lt;/TANGFERRY&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Fri, 03 Jun 2005 15:31:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342796#M84796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-03T15:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to wrapper the acutBuilList function?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342797#M84797</link>
      <description>Thanks. I've already done just that.  Attached is relevant &lt;BR /&gt;
portions of a module that exposes selected parts of the &lt;BR /&gt;
legacy RxAds API (including a fairly complete/robust port of &lt;BR /&gt;
acedCommand() ).  &lt;BR /&gt;
&lt;BR /&gt;
The 'PickSet' class wraps an ADS-style selection set. It has &lt;BR /&gt;
a default indexer that allows access to individual ads_names &lt;BR /&gt;
in the pickset, but I was going to change that to render the &lt;BR /&gt;
contents as managed ObjectId's.  For now, its easy to do&lt;BR /&gt;
the conversion (pass the second element of the ads_name&lt;BR /&gt;
to the ObjectId's ctor).&lt;BR /&gt;
&lt;BR /&gt;
The biggest wall I've hit, involves converting the resulting &lt;BR /&gt;
ads_name (selection set) back to a managed SelectionSet &lt;BR /&gt;
class, which doesn't appear to be possible since its ctor is &lt;BR /&gt;
protected.&lt;BR /&gt;
&lt;BR /&gt;
Now, I'm looking at how to bypass that and make a call to &lt;BR /&gt;
an internal/protected/private method using reflection.  &lt;BR /&gt;
&lt;BR /&gt;
Have you done that yet?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Albert Szilvasy" &lt;NOT_PROVIDED&gt; wrote in message news:4864849@discussion.autodesk.com...&lt;BR /&gt;
It is actually not completely useless. You just need to call acedSSGet &lt;BR /&gt;
directly with the resbuf. I try to put together an example today or over the &lt;BR /&gt;
weekend.&lt;BR /&gt;
&lt;BR /&gt;
albert&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message &lt;BR /&gt;
news:4864380@discussion.autodesk.com...&lt;BR /&gt;
Sorry, I failed to consider that in order to use a&lt;BR /&gt;
ResultBuffer for object selection filtering, you must&lt;BR /&gt;
call the AsArray() member, and if you look at my&lt;BR /&gt;
original workaround, you'll see the caveat that you&lt;BR /&gt;
can't do that after hacking the ResultBuffer.&lt;BR /&gt;
&lt;BR /&gt;
So, the workaround is essentially useless.&lt;BR /&gt;
&lt;BR /&gt;
Let's see what else we can come up with ....&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;TANGFERRY&gt; wrote in message news:4864330@discussion.autodesk.com...&lt;BR /&gt;
I want to select circles and lines using selectionset.&lt;BR /&gt;
The source code file  is in the attachment.&lt;BR /&gt;
But when i test it in AutoCAD,I get the following error message:&lt;BR /&gt;
&lt;BR /&gt;
See the end of this message for details on invoking&lt;BR /&gt;
just-in-time (JIT) debugging instead of this dialog box.&lt;BR /&gt;
&lt;BR /&gt;
************** Exception Text **************&lt;BR /&gt;
System.Reflection.TargetInvocationException: Exception has been thrown by &lt;BR /&gt;
the target of an invocation. ---&amp;gt;&lt;BR /&gt;
System.NullReferenceException: Object reference not set to an ins&lt;BR /&gt;
tance of an object.&lt;BR /&gt;
   at Autodesk.AutoCAD.DatabaseServices.ResultBuffer..ctor(TypedValue[] &lt;BR /&gt;
values)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.FilterExtractor.__ctor(FilterExtractor* , &lt;BR /&gt;
SelectionFilter filter)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.Editor.GetSelection(SelectionFilter &lt;BR /&gt;
filter)&lt;BR /&gt;
   at ClassLibrary.DNOTClass.test()&lt;BR /&gt;
   --- End of inner exception stack trace ---&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, &lt;BR /&gt;
BindingFlags invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters,&lt;BR /&gt;
CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean &lt;BR /&gt;
verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, &lt;BR /&gt;
BindingFlags invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters, CultureInfo culture, Boolean verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags &lt;BR /&gt;
invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters, CultureInfo culture)&lt;BR /&gt;
   at AcMgPerDocumentCommandClass.Invoke(AcMgPerDocumentCommandClass* , &lt;BR /&gt;
gcroot&lt;:REFL&gt;&lt;BR /&gt;
ection::MethodInfo __gc *&amp;gt;* mi)&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.SEHExceptionFilter.InvokeWorker()&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.ExceptionFilter.Invoke()&lt;BR /&gt;
&lt;BR /&gt;
How to solve this problem?Thanks.&lt;/:REFL&gt;&lt;/TANGFERRY&gt;&lt;/TONY.TANZILLO&gt;&lt;/NOT_PROVIDED&gt;</description>
      <pubDate>Fri, 03 Jun 2005 16:38:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342797#M84797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-03T16:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to wrapper the acutBuilList function?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342798#M84798</link>
      <description>By the way, feel free to point out any mistakes&lt;BR /&gt;
or massive blunders in that code, or embellish it&lt;BR /&gt;
as you wish &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
I'm very interested in finding a way to convert the&lt;BR /&gt;
unmanaged selection set to a managed SelectionSet&lt;BR /&gt;
(SelectionSetDelayMarshalled or SelectionSetFullyMarshalled,&lt;BR /&gt;
depending I guess, on whether acedSSNameX information &lt;BR /&gt;
is needed).&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Albert Szilvasy" &lt;NOT_PROVIDED&gt; wrote in message news:4864849@discussion.autodesk.com...&lt;BR /&gt;
It is actually not completely useless. You just need to call acedSSGet &lt;BR /&gt;
directly with the resbuf. I try to put together an example today or over the &lt;BR /&gt;
weekend.&lt;BR /&gt;
&lt;BR /&gt;
albert&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message &lt;BR /&gt;
news:4864380@discussion.autodesk.com...&lt;BR /&gt;
Sorry, I failed to consider that in order to use a&lt;BR /&gt;
ResultBuffer for object selection filtering, you must&lt;BR /&gt;
call the AsArray() member, and if you look at my&lt;BR /&gt;
original workaround, you'll see the caveat that you&lt;BR /&gt;
can't do that after hacking the ResultBuffer.&lt;BR /&gt;
&lt;BR /&gt;
So, the workaround is essentially useless.&lt;BR /&gt;
&lt;BR /&gt;
Let's see what else we can come up with ....&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;TANGFERRY&gt; wrote in message news:4864330@discussion.autodesk.com...&lt;BR /&gt;
I want to select circles and lines using selectionset.&lt;BR /&gt;
The source code file  is in the attachment.&lt;BR /&gt;
But when i test it in AutoCAD,I get the following error message:&lt;BR /&gt;
&lt;BR /&gt;
See the end of this message for details on invoking&lt;BR /&gt;
just-in-time (JIT) debugging instead of this dialog box.&lt;BR /&gt;
&lt;BR /&gt;
************** Exception Text **************&lt;BR /&gt;
System.Reflection.TargetInvocationException: Exception has been thrown by &lt;BR /&gt;
the target of an invocation. ---&amp;gt;&lt;BR /&gt;
System.NullReferenceException: Object reference not set to an ins&lt;BR /&gt;
tance of an object.&lt;BR /&gt;
   at Autodesk.AutoCAD.DatabaseServices.ResultBuffer..ctor(TypedValue[] &lt;BR /&gt;
values)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.FilterExtractor.__ctor(FilterExtractor* , &lt;BR /&gt;
SelectionFilter filter)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.Editor.GetSelection(SelectionFilter &lt;BR /&gt;
filter)&lt;BR /&gt;
   at ClassLibrary.DNOTClass.test()&lt;BR /&gt;
   --- End of inner exception stack trace ---&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, &lt;BR /&gt;
BindingFlags invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters,&lt;BR /&gt;
CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean &lt;BR /&gt;
verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, &lt;BR /&gt;
BindingFlags invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters, CultureInfo culture, Boolean verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags &lt;BR /&gt;
invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters, CultureInfo culture)&lt;BR /&gt;
   at AcMgPerDocumentCommandClass.Invoke(AcMgPerDocumentCommandClass* , &lt;BR /&gt;
gcroot&lt;:REFL&gt;&lt;BR /&gt;
ection::MethodInfo __gc *&amp;gt;* mi)&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.SEHExceptionFilter.InvokeWorker()&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.ExceptionFilter.Invoke()&lt;BR /&gt;
&lt;BR /&gt;
How to solve this problem?Thanks.&lt;/:REFL&gt;&lt;/TANGFERRY&gt;&lt;/TONY.TANZILLO&gt;&lt;/NOT_PROVIDED&gt;</description>
      <pubDate>Fri, 03 Jun 2005 16:47:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342798#M84798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-03T16:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to wrapper the acutBuilList function?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342799#M84799</link>
      <description>The file I posted was mangled by the news server.&lt;BR /&gt;
&lt;BR /&gt;
Here it is again, with a .txt extension.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Albert Szilvasy" &lt;NOT_PROVIDED&gt; wrote in message news:4864849@discussion.autodesk.com...&lt;BR /&gt;
It is actually not completely useless. You just need to call acedSSGet &lt;BR /&gt;
directly with the resbuf. I try to put together an example today or over the &lt;BR /&gt;
weekend.&lt;BR /&gt;
&lt;BR /&gt;
albert&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message &lt;BR /&gt;
news:4864380@discussion.autodesk.com...&lt;BR /&gt;
Sorry, I failed to consider that in order to use a&lt;BR /&gt;
ResultBuffer for object selection filtering, you must&lt;BR /&gt;
call the AsArray() member, and if you look at my&lt;BR /&gt;
original workaround, you'll see the caveat that you&lt;BR /&gt;
can't do that after hacking the ResultBuffer.&lt;BR /&gt;
&lt;BR /&gt;
So, the workaround is essentially useless.&lt;BR /&gt;
&lt;BR /&gt;
Let's see what else we can come up with ....&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;TANGFERRY&gt; wrote in message news:4864330@discussion.autodesk.com...&lt;BR /&gt;
I want to select circles and lines using selectionset.&lt;BR /&gt;
The source code file  is in the attachment.&lt;BR /&gt;
But when i test it in AutoCAD,I get the following error message:&lt;BR /&gt;
&lt;BR /&gt;
See the end of this message for details on invoking&lt;BR /&gt;
just-in-time (JIT) debugging instead of this dialog box.&lt;BR /&gt;
&lt;BR /&gt;
************** Exception Text **************&lt;BR /&gt;
System.Reflection.TargetInvocationException: Exception has been thrown by &lt;BR /&gt;
the target of an invocation. ---&amp;gt;&lt;BR /&gt;
System.NullReferenceException: Object reference not set to an ins&lt;BR /&gt;
tance of an object.&lt;BR /&gt;
   at Autodesk.AutoCAD.DatabaseServices.ResultBuffer..ctor(TypedValue[] &lt;BR /&gt;
values)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.FilterExtractor.__ctor(FilterExtractor* , &lt;BR /&gt;
SelectionFilter filter)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.Editor.GetSelection(SelectionFilter &lt;BR /&gt;
filter)&lt;BR /&gt;
   at ClassLibrary.DNOTClass.test()&lt;BR /&gt;
   --- End of inner exception stack trace ---&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, &lt;BR /&gt;
BindingFlags invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters,&lt;BR /&gt;
CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean &lt;BR /&gt;
verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, &lt;BR /&gt;
BindingFlags invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters, CultureInfo culture, Boolean verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags &lt;BR /&gt;
invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters, CultureInfo culture)&lt;BR /&gt;
   at AcMgPerDocumentCommandClass.Invoke(AcMgPerDocumentCommandClass* , &lt;BR /&gt;
gcroot&lt;:REFL&gt;&lt;BR /&gt;
ection::MethodInfo __gc *&amp;gt;* mi)&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.SEHExceptionFilter.InvokeWorker()&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.ExceptionFilter.Invoke()&lt;BR /&gt;
&lt;BR /&gt;
How to solve this problem?Thanks.&lt;/:REFL&gt;&lt;/TANGFERRY&gt;&lt;/TONY.TANZILLO&gt;&lt;/NOT_PROVIDED&gt;</description>
      <pubDate>Fri, 03 Jun 2005 18:43:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342799#M84799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-03T18:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to wrapper the acutBuilList function?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342800#M84800</link>
      <description>Nope - That didn't work either.&lt;BR /&gt;
&lt;BR /&gt;
Let's try it with a different code page.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Albert Szilvasy" &lt;NOT_PROVIDED&gt; wrote in message news:4864849@discussion.autodesk.com...&lt;BR /&gt;
It is actually not completely useless. You just need to call acedSSGet &lt;BR /&gt;
directly with the resbuf. I try to put together an example today or over the &lt;BR /&gt;
weekend.&lt;BR /&gt;
&lt;BR /&gt;
albert&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message &lt;BR /&gt;
news:4864380@discussion.autodesk.com...&lt;BR /&gt;
Sorry, I failed to consider that in order to use a&lt;BR /&gt;
ResultBuffer for object selection filtering, you must&lt;BR /&gt;
call the AsArray() member, and if you look at my&lt;BR /&gt;
original workaround, you'll see the caveat that you&lt;BR /&gt;
can't do that after hacking the ResultBuffer.&lt;BR /&gt;
&lt;BR /&gt;
So, the workaround is essentially useless.&lt;BR /&gt;
&lt;BR /&gt;
Let's see what else we can come up with ....&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;TANGFERRY&gt; wrote in message news:4864330@discussion.autodesk.com...&lt;BR /&gt;
I want to select circles and lines using selectionset.&lt;BR /&gt;
The source code file  is in the attachment.&lt;BR /&gt;
But when i test it in AutoCAD,I get the following error message:&lt;BR /&gt;
&lt;BR /&gt;
See the end of this message for details on invoking&lt;BR /&gt;
just-in-time (JIT) debugging instead of this dialog box.&lt;BR /&gt;
&lt;BR /&gt;
************** Exception Text **************&lt;BR /&gt;
System.Reflection.TargetInvocationException: Exception has been thrown by &lt;BR /&gt;
the target of an invocation. ---&amp;gt;&lt;BR /&gt;
System.NullReferenceException: Object reference not set to an ins&lt;BR /&gt;
tance of an object.&lt;BR /&gt;
   at Autodesk.AutoCAD.DatabaseServices.ResultBuffer..ctor(TypedValue[] &lt;BR /&gt;
values)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.FilterExtractor.__ctor(FilterExtractor* , &lt;BR /&gt;
SelectionFilter filter)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.Editor.GetSelection(SelectionFilter &lt;BR /&gt;
filter)&lt;BR /&gt;
   at ClassLibrary.DNOTClass.test()&lt;BR /&gt;
   --- End of inner exception stack trace ---&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, &lt;BR /&gt;
BindingFlags invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters,&lt;BR /&gt;
CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean &lt;BR /&gt;
verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, &lt;BR /&gt;
BindingFlags invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters, CultureInfo culture, Boolean verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags &lt;BR /&gt;
invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters, CultureInfo culture)&lt;BR /&gt;
   at AcMgPerDocumentCommandClass.Invoke(AcMgPerDocumentCommandClass* , &lt;BR /&gt;
gcroot&lt;:REFL&gt;&lt;BR /&gt;
ection::MethodInfo __gc *&amp;gt;* mi)&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.SEHExceptionFilter.InvokeWorker()&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.ExceptionFilter.Invoke()&lt;BR /&gt;
&lt;BR /&gt;
How to solve this problem?Thanks.&lt;/:REFL&gt;&lt;/TANGFERRY&gt;&lt;/TONY.TANZILLO&gt;&lt;/NOT_PROVIDED&gt;</description>
      <pubDate>Fri, 03 Jun 2005 19:07:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342800#M84800</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-03T19:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to wrapper the acutBuilList function?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342801#M84801</link>
      <description>Thanks  everyone!&lt;BR /&gt;
Perhaps my C++ is poor,I have used  com  to solve this problem,and it does work.</description>
      <pubDate>Sat, 04 Jun 2005 07:13:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342801#M84801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-04T07:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to wrapper the acutBuilList function?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342802#M84802</link>
      <description>Why don't you load it and save it once in Notepad. I think that will work.&lt;BR /&gt;
&lt;BR /&gt;
albert&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message &lt;BR /&gt;
news:4865216@discussion.autodesk.com...&lt;BR /&gt;
Nope - That didn't work either.&lt;BR /&gt;
&lt;BR /&gt;
Let's try it with a different code page.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Albert Szilvasy" &lt;NOT_PROVIDED&gt; wrote in message &lt;BR /&gt;
news:4864849@discussion.autodesk.com...&lt;BR /&gt;
It is actually not completely useless. You just need to call acedSSGet&lt;BR /&gt;
directly with the resbuf. I try to put together an example today or over the&lt;BR /&gt;
weekend.&lt;BR /&gt;
&lt;BR /&gt;
albert&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZ&gt;&lt;BR /&gt;
illo@U_KNOW_WHERE.com&amp;gt; wrote in message&lt;BR /&gt;
news:4864380@discussion.autodesk.com...&lt;BR /&gt;
Sorry, I failed to consider that in order to use a&lt;BR /&gt;
ResultBuffer for object selection filtering, you must&lt;BR /&gt;
call the AsArray() member, and if you look at my&lt;BR /&gt;
original workaround, you'll see the caveat that you&lt;BR /&gt;
can't do that after hacking the ResultBuffer.&lt;BR /&gt;
&lt;BR /&gt;
So, the workaround is essentially useless.&lt;BR /&gt;
&lt;BR /&gt;
Let's see what else we can come up with ....&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoC&lt;BR /&gt;
AD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;TANGFERRY&gt; wrote in message news:4864330@discussion.autodesk.com...&lt;BR /&gt;
I want to select circles and lines using selectionset.&lt;BR /&gt;
The source code file  is in the attachment.&lt;BR /&gt;
But when i test it in AutoCAD,I get the following error message:&lt;BR /&gt;
&lt;BR /&gt;
See the end of this message for details on invoking&lt;BR /&gt;
just-in-time (JIT) debugging instead of this dialog box.&lt;BR /&gt;
&lt;BR /&gt;
************** Exception Text **************&lt;BR /&gt;
System.Reflection.TargetInvocationException: Exception has been t&lt;BR /&gt;
hrown by&lt;BR /&gt;
the target of an invocation. ---&amp;gt;&lt;BR /&gt;
System.NullReferenceException: Object reference not set to an ins&lt;BR /&gt;
tance of an object.&lt;BR /&gt;
   at Autodesk.AutoCAD.DatabaseServices.ResultBuffer..ctor(TypedValue[]&lt;BR /&gt;
values)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.FilterExtractor.__ctor(FilterExtractor* ,&lt;BR /&gt;
SelectionFilter filter)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.Editor.GetSelection(SelectionFilter&lt;BR /&gt;
filter)&lt;BR /&gt;
   at ClassLibrary.DNOTClass.test()&lt;BR /&gt;
   --- End of inner exception stack trace ---&lt;BR /&gt;
   at Sys&lt;BR /&gt;
tem.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj,&lt;BR /&gt;
BindingFlags invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters,&lt;BR /&gt;
CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean&lt;BR /&gt;
verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj,&lt;BR /&gt;
BindingFlags invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters, CultureInfo culture, Boolean verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags&lt;BR /&gt;
invokeAttr, Binder binder, Object&lt;BR /&gt;
[]&lt;BR /&gt;
parameters, CultureInfo culture)&lt;BR /&gt;
   at AcMgPerDocumentCommandClass.Invoke(AcMgPerDocumentCommandClass* ,&lt;BR /&gt;
gcroot&lt;:REFL&gt;&lt;BR /&gt;
ection::MethodInfo __gc *&amp;gt;* mi)&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.SEHExceptionFilter.InvokeWorker()&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.ExceptionFilter.Invoke()&lt;BR /&gt;
&lt;BR /&gt;
How to solve this problem?Thanks.&lt;/:REFL&gt;&lt;/TANGFERRY&gt;&lt;/TONY.TANZ&gt;&lt;/NOT_PROVIDED&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Mon, 06 Jun 2005 17:55:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342802#M84802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-06T17:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to wrapper the acutBuilList function?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342803#M84803</link>
      <description>Hi Albert.&lt;BR /&gt;
&lt;BR /&gt;
I tried that too, but it didn't seem to matter.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Albert Szilvasy" &lt;NOT_PROVIDED&gt; wrote in message news:4866567@discussion.autodesk.com...&lt;BR /&gt;
Why don't you load it and save it once in Notepad. I think that will work.&lt;BR /&gt;
&lt;BR /&gt;
albert&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message &lt;BR /&gt;
news:4865216@discussion.autodesk.com...&lt;BR /&gt;
Nope - That didn't work either.&lt;BR /&gt;
&lt;BR /&gt;
Let's try it with a different code page.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Albert Szilvasy" &lt;NOT_PROVIDED&gt; wrote in message &lt;BR /&gt;
news:4864849@discussion.autodesk.com...&lt;BR /&gt;
It is actually not completely useless. You just need to call acedSSGet&lt;BR /&gt;
directly with the resbuf. I try to put together an example today or over the&lt;BR /&gt;
weekend.&lt;BR /&gt;
&lt;BR /&gt;
albert&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZ&gt;&lt;BR /&gt;
illo@U_KNOW_WHERE.com&amp;gt; wrote in message&lt;BR /&gt;
news:4864380@discussion.autodesk.com...&lt;BR /&gt;
Sorry, I failed to consider that in order to use a&lt;BR /&gt;
ResultBuffer for object selection filtering, you must&lt;BR /&gt;
call the AsArray() member, and if you look at my&lt;BR /&gt;
original workaround, you'll see the caveat that you&lt;BR /&gt;
can't do that after hacking the ResultBuffer.&lt;BR /&gt;
&lt;BR /&gt;
So, the workaround is essentially useless.&lt;BR /&gt;
&lt;BR /&gt;
Let's see what else we can come up with ....&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoC&lt;BR /&gt;
AD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;TANGFERRY&gt; wrote in message news:4864330@discussion.autodesk.com...&lt;BR /&gt;
I want to select circles and lines using selectionset.&lt;BR /&gt;
The source code file  is in the attachment.&lt;BR /&gt;
But when i test it in AutoCAD,I get the following error message:&lt;BR /&gt;
&lt;BR /&gt;
See the end of this message for details on invoking&lt;BR /&gt;
just-in-time (JIT) debugging instead of this dialog box.&lt;BR /&gt;
&lt;BR /&gt;
************** Exception Text **************&lt;BR /&gt;
System.Reflection.TargetInvocationException: Exception has been t&lt;BR /&gt;
hrown by&lt;BR /&gt;
the target of an invocation. ---&amp;gt;&lt;BR /&gt;
System.NullReferenceException: Object reference not set to an ins&lt;BR /&gt;
tance of an object.&lt;BR /&gt;
   at Autodesk.AutoCAD.DatabaseServices.ResultBuffer..ctor(TypedValue[]&lt;BR /&gt;
values)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.FilterExtractor.__ctor(FilterExtractor* ,&lt;BR /&gt;
SelectionFilter filter)&lt;BR /&gt;
   at Autodesk.AutoCAD.EditorInput.Editor.GetSelection(SelectionFilter&lt;BR /&gt;
filter)&lt;BR /&gt;
   at ClassLibrary.DNOTClass.test()&lt;BR /&gt;
   --- End of inner exception stack trace ---&lt;BR /&gt;
   at Sys&lt;BR /&gt;
tem.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj,&lt;BR /&gt;
BindingFlags invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters,&lt;BR /&gt;
CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean&lt;BR /&gt;
verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj,&lt;BR /&gt;
BindingFlags invokeAttr, Binder binder, Object[]&lt;BR /&gt;
parameters, CultureInfo culture, Boolean verifyAccess)&lt;BR /&gt;
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags&lt;BR /&gt;
invokeAttr, Binder binder, Object&lt;BR /&gt;
[]&lt;BR /&gt;
parameters, CultureInfo culture)&lt;BR /&gt;
   at AcMgPerDocumentCommandClass.Invoke(AcMgPerDocumentCommandClass* ,&lt;BR /&gt;
gcroot&lt;:REFL&gt;&lt;BR /&gt;
ection::MethodInfo __gc *&amp;gt;* mi)&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.SEHExceptionFilter.InvokeWorker()&lt;BR /&gt;
   at Autodesk.AutoCAD.Runtime.ExceptionFilter.Invoke()&lt;BR /&gt;
&lt;BR /&gt;
How to solve this problem?Thanks.&lt;/:REFL&gt;&lt;/TANGFERRY&gt;&lt;/TONY.TANZ&gt;&lt;/NOT_PROVIDED&gt;&lt;/TONY.TANZILLO&gt;&lt;/NOT_PROVIDED&gt;</description>
      <pubDate>Mon, 06 Jun 2005 19:35:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-wrapper-the-acutbuillist-function/m-p/1342803#M84803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-06T19:35:12Z</dc:date>
    </item>
  </channel>
</rss>

