<?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: MCAD Pick error in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334268#M88113</link>
    <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;First of all your code sinppet runs fine on my &lt;BR /&gt;
machine.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;You may try the initialization with&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Set mapp = &lt;BR /&gt;
ThisDrawing.Application.GetInterfaceObject("Mcad.Application.2")&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;That should make sure that you get the right &lt;BR /&gt;
interface for MDT5.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Try to run mcadautoreg.exe, which is in the MDT &lt;BR /&gt;
directory. This should do the registry entries again. Maybe something went &lt;BR /&gt;
wrong. Do you have admin writes on your machine ?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Hope ths helps.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Christian&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"Wouter van Eck" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:wouter@flyersoft.com"&amp;gt;wouter@flyersoft.com&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
  message &lt;A&gt;&lt;BR /&gt;
  href="news:F5C5EB25CA49CD3AE153E9C88F515238@in.WebX.SaUCah8kaAW"&amp;gt;news:F5C5EB25CA49CD3AE153E9C88F515238@in.WebX.SaUCah8kaAW&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Hi,&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I use the following code in Mechanical Desktop &lt;BR /&gt;
  5:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial"&gt;&lt;BR /&gt;
  size=2&amp;gt;'===============================================&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim mapp As &lt;BR /&gt;
  McadApplication&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim util As &lt;BR /&gt;
  McadUtility&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set mapp = &lt;BR /&gt;
  ThisDrawing.Application.GetInterfaceObject("Mcad.Application")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  Set util = mapp.ActiveDocument.Utility&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Pick As McadPick&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Pick = &lt;BR /&gt;
  util.Pick("Select feature", mcFeature)&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial"&gt;&lt;BR /&gt;
  size=2&amp;gt;'================================================&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;On the the last line I get the following error &lt;BR /&gt;
  msg.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Generic failure to execute operation with provided &lt;BR /&gt;
  arguments.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;The references are set to the appropriate Mcad &lt;BR /&gt;
  objects and on whatever machine I try this it give me the same &lt;BR /&gt;
  message.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Does anybody know what the problem &lt;BR /&gt;
  is?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Wouter&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Wed, 10 Jan 2001 01:46:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2001-01-10T01:46:55Z</dc:date>
    <item>
      <title>MCAD Pick error</title>
      <link>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334262#M88107</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Hi,&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I use the following code in Mechanical Desktop &lt;BR /&gt;
5:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial"&gt;&lt;BR /&gt;
size=2&amp;gt;'===============================================&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim mapp As &lt;BR /&gt;
McadApplication&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim util As &lt;BR /&gt;
McadUtility&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set mapp = &lt;BR /&gt;
ThisDrawing.Application.GetInterfaceObject("Mcad.Application")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
Set util = mapp.ActiveDocument.Utility&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Pick As McadPick&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Pick = &lt;BR /&gt;
util.Pick("Select feature", mcFeature)&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial"&gt;&lt;BR /&gt;
size=2&amp;gt;'================================================&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;On the the last line I get the following error &lt;BR /&gt;
msg.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Generic failure to execute operation with provided &lt;BR /&gt;
arguments.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;The references are set to the appropriate Mcad &lt;BR /&gt;
objects and on whatever machine I try this it give me the same &lt;BR /&gt;
message.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Does anybody know what the problem is?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Wouter&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jan 2001 12:23:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334262#M88107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-01-09T12:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: MCAD Pick error</title>
      <link>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334263#M88108</link>
      <description>Wouter&lt;BR /&gt;
&lt;BR /&gt;
Are you sure you are referencing the right libraries.  it should be the 2.0&lt;BR /&gt;
version of them.   Your code below runs without error on my machine.&lt;BR /&gt;
&lt;BR /&gt;
"Wouter van Eck" &lt;WOUTER&gt; wrote in message&lt;BR /&gt;
news:F5C5EB25CA49CD3AE153E9C88F515238@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Hi,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I use the following code in Mechanical Desktop 5:&lt;BR /&gt;
&amp;gt; '===============================================&lt;BR /&gt;
&amp;gt;     Dim mapp As McadApplication&lt;BR /&gt;
&amp;gt;     Dim util As McadUtility&lt;BR /&gt;
&amp;gt;     Set mapp =&lt;BR /&gt;
ThisDrawing.Application.GetInterfaceObject("Mcad.Application")&lt;BR /&gt;
&amp;gt;     Set util = mapp.ActiveDocument.Utility&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Dim Pick As McadPick&lt;BR /&gt;
&amp;gt;     Set Pick = util.Pick("Select feature", mcFeature)&lt;BR /&gt;
&amp;gt; '================================================&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; On the the last line I get the following error msg.&lt;BR /&gt;
&amp;gt;              Generic failure to execute operation with provided arguments.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The references are set to the appropriate Mcad objects and on whatever&lt;BR /&gt;
machine I try this it give me the same message.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Does anybody know what the problem is?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Wouter&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/WOUTER&gt;</description>
      <pubDate>Tue, 09 Jan 2001 12:42:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334263#M88108</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-01-09T12:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: MCAD Pick error</title>
      <link>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334264#M88109</link>
      <description>Works for me as well.&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Tue, 09 Jan 2001 12:57:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334264#M88109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-01-09T12:57:35Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334265#M88110</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I have a reference to:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;- Autodesk BrepAuto 2.0 Type Library&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;- Autodesk GeAuto 2.0 Type Library&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;- Autodesk McadAuto 2.0 Type Library&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;- Autodesk SymBBAuto 2.0 Type Library&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Should be enough I would say :-)... nothing is &lt;BR /&gt;
missing...and I get the objects alright but no luck in getting it to &lt;BR /&gt;
work..&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Any ideas?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;"Kent Keller" &amp;lt;&lt;/FONT&gt;&lt;A&gt;&lt;BR /&gt;
href="mailto:kent@strobedata.com"&amp;gt;&lt;FONT face="Arial"&gt;&lt;BR /&gt;
size=2&amp;gt;kent@strobedata.com&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face="Arial" size="2"&gt;&amp;gt; wrote in &lt;BR /&gt;
message &lt;/FONT&gt;&lt;A&gt;&lt;BR /&gt;
href="news:7EE0EB47F26ECDA19EA1A4D9E6FD3E88@in.WebX.SaUCah8kaAW"&amp;gt;&lt;FONT&gt;&lt;BR /&gt;
face=Arial &lt;BR /&gt;
size=2&amp;gt;news:7EE0EB47F26ECDA19EA1A4D9E6FD3E88@in.WebX.SaUCah8kaAW&lt;/FONT&gt;&lt;/A&gt;&lt;FONT&gt;&lt;BR /&gt;
face=Arial size=2&amp;gt;...&lt;/FONT&gt;&lt;/DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;gt; Wouter&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
&lt;BR /&gt;&amp;gt; Are you sure you are referencing the right libraries.&amp;nbsp; it should &lt;BR /&gt;
be the 2.0&lt;BR /&gt;&amp;gt; version of them.&amp;nbsp;&amp;nbsp; Your code below runs without &lt;BR /&gt;
error on my machine.&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; "Wouter van Eck" &amp;lt;&lt;/FONT&gt;&lt;A&gt;&lt;BR /&gt;
href="mailto:wouter@flyersoft.com"&amp;gt;&lt;FONT face="Arial"&gt;&lt;BR /&gt;
size=2&amp;gt;wouter@flyersoft.com&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face="Arial" size="2"&gt;&amp;gt; wrote in &lt;BR /&gt;
message&lt;BR /&gt;&amp;gt; &lt;/FONT&gt;&lt;A&gt;&lt;BR /&gt;
href="news:F5C5EB25CA49CD3AE153E9C88F515238@in.WebX.SaUCah8kaAW"&amp;gt;&lt;FONT&gt;&lt;BR /&gt;
face=Arial &lt;BR /&gt;
size=2&amp;gt;news:F5C5EB25CA49CD3AE153E9C88F515238@in.WebX.SaUCah8kaAW&lt;/FONT&gt;&lt;/A&gt;&lt;FONT&gt;&lt;BR /&gt;
face=Arial size=2&amp;gt;...&lt;BR /&gt;&amp;gt; &amp;gt; Hi,&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; I use the &lt;BR /&gt;
following code in Mechanical Desktop 5:&lt;BR /&gt;&amp;gt; &amp;gt; &lt;BR /&gt;
'===============================================&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim mapp As McadApplication&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim util As McadUtility&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set mapp =&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
ThisDrawing.Application.GetInterfaceObject("Mcad.Application")&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set util = mapp.ActiveDocument.Utility&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Pick As McadPick&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Pick = util.Pick("Select feature", &lt;BR /&gt;
mcFeature)&lt;BR /&gt;&amp;gt; &amp;gt; &lt;BR /&gt;
'================================================&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; On &lt;BR /&gt;
the the last line I get the following error msg.&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
Generic failure to execute operation with provided arguments.&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; The references are set to the appropriate Mcad objects and on &lt;BR /&gt;
whatever&lt;BR /&gt;&amp;gt; machine I try this it give me the same message.&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; Does anybody know what the problem is?&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
&amp;gt; Wouter&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;BR /&gt;&amp;gt; &lt;/FONT&gt;</description>
      <pubDate>Tue, 09 Jan 2001 12:58:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334265#M88110</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-01-09T12:58:16Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334266#M88111</link>
      <description>Wouter&lt;BR /&gt;
&lt;BR /&gt;
Have you tried isolating just the code you showed in a new module with&lt;BR /&gt;
nothing else loaded and see if it works?  Only other thing I can think of is&lt;BR /&gt;
I am running SP2 for MDT5.&lt;BR /&gt;
&lt;BR /&gt;
"Wouter van Eck" &lt;WOUTER&gt; wrote in message&lt;BR /&gt;
news:1A62CD219E1C9CA96759BD575913D7CD@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; I have a reference to:&lt;/WOUTER&gt;</description>
      <pubDate>Tue, 09 Jan 2001 13:21:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334266#M88111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-01-09T13:21:37Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334267#M88112</link>
      <description>I did that too... it's running in a new drawing, with a new empty module....&lt;BR /&gt;
with SP2 aswell... both machines give the same problem...&lt;BR /&gt;
&lt;BR /&gt;
"Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
news:A78B53190E23DA6E4991688464E47CE8@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Wouter&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Have you tried isolating just the code you showed in a new module with&lt;BR /&gt;
&amp;gt; nothing else loaded and see if it works?  Only other thing I can think of&lt;BR /&gt;
is&lt;BR /&gt;
&amp;gt; I am running SP2 for MDT5.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Wouter van Eck" &lt;WOUTER&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:1A62CD219E1C9CA96759BD575913D7CD@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt; I have a reference to:&lt;BR /&gt;
&amp;gt;&lt;/WOUTER&gt;&lt;/KENT&gt;</description>
      <pubDate>Tue, 09 Jan 2001 14:00:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334267#M88112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-01-09T14:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: MCAD Pick error</title>
      <link>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334268#M88113</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;First of all your code sinppet runs fine on my &lt;BR /&gt;
machine.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;You may try the initialization with&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Set mapp = &lt;BR /&gt;
ThisDrawing.Application.GetInterfaceObject("Mcad.Application.2")&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;That should make sure that you get the right &lt;BR /&gt;
interface for MDT5.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Try to run mcadautoreg.exe, which is in the MDT &lt;BR /&gt;
directory. This should do the registry entries again. Maybe something went &lt;BR /&gt;
wrong. Do you have admin writes on your machine ?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Hope ths helps.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Christian&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"Wouter van Eck" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:wouter@flyersoft.com"&amp;gt;wouter@flyersoft.com&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
  message &lt;A&gt;&lt;BR /&gt;
  href="news:F5C5EB25CA49CD3AE153E9C88F515238@in.WebX.SaUCah8kaAW"&amp;gt;news:F5C5EB25CA49CD3AE153E9C88F515238@in.WebX.SaUCah8kaAW&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Hi,&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I use the following code in Mechanical Desktop &lt;BR /&gt;
  5:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial"&gt;&lt;BR /&gt;
  size=2&amp;gt;'===============================================&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim mapp As &lt;BR /&gt;
  McadApplication&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim util As &lt;BR /&gt;
  McadUtility&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set mapp = &lt;BR /&gt;
  ThisDrawing.Application.GetInterfaceObject("Mcad.Application")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  Set util = mapp.ActiveDocument.Utility&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Pick As McadPick&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Pick = &lt;BR /&gt;
  util.Pick("Select feature", mcFeature)&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial"&gt;&lt;BR /&gt;
  size=2&amp;gt;'================================================&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;On the the last line I get the following error &lt;BR /&gt;
  msg.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Generic failure to execute operation with provided &lt;BR /&gt;
  arguments.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;The references are set to the appropriate Mcad &lt;BR /&gt;
  objects and on whatever machine I try this it give me the same &lt;BR /&gt;
  message.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Does anybody know what the problem &lt;BR /&gt;
  is?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Wouter&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 10 Jan 2001 01:46:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334268#M88113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-01-10T01:46:55Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334269#M88114</link>
      <description>Christian&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the tips. I've been having some sort of conflict between newer&lt;BR /&gt;
and older programs using the two different models. I'll bet your suggestions&lt;BR /&gt;
are the answer to the problem.&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Wed, 10 Jan 2001 04:34:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334269#M88114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-01-10T04:34:24Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334270#M88115</link>
      <description>I just found out that when I start 'Autocad Mechanical 2000i Power Pack'&lt;BR /&gt;
then it doesn't work and a lot of other functions don't either.&lt;BR /&gt;
&lt;BR /&gt;
It works fine with AutoCAD Mechanical Desktop...&lt;BR /&gt;
&lt;BR /&gt;
Wouter&lt;BR /&gt;
&lt;BR /&gt;
"Gary McMaster" &lt;GMCMASTER&gt; wrote in message&lt;BR /&gt;
news:81A2B180FF34465890D102EF030FF737@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Christian&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks for the tips. I've been having some sort of conflict between newer&lt;BR /&gt;
&amp;gt; and older programs using the two different models. I'll bet your&lt;BR /&gt;
suggestions&lt;BR /&gt;
&amp;gt; are the answer to the problem.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Gary&lt;BR /&gt;
&amp;gt;&lt;/GMCMASTER&gt;</description>
      <pubDate>Wed, 10 Jan 2001 08:48:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334270#M88115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-01-10T08:48:14Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334271#M88116</link>
      <description>That's another good point. I didn't have power pack with MDT4 and have never&lt;BR /&gt;
tried MDT5 without it.&lt;BR /&gt;
&lt;BR /&gt;
None of my VBA stuff will run in MDT4 anymore since installing MDT5, but it&lt;BR /&gt;
still runs fine in MDT5.&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Wed, 10 Jan 2001 10:27:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334271#M88116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-01-10T10:27:07Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334272#M88117</link>
      <description>That's because AutoCAD Mechanical and Mechanical Desktop are two&lt;BR /&gt;
entirely separate products.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
&lt;BR /&gt;
All use of the contents of this article is subject to the&lt;BR /&gt;
terms and conditions at http://www.acadx.com/csc.htm&lt;BR /&gt;
&lt;BR /&gt;
"Wouter van Eck" &lt;WOUTER&gt; wrote in message&lt;BR /&gt;
news:64B26D437356584DD429D3898D321C3D@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; I just found out that when I start 'Autocad Mechanical 2000i Power&lt;BR /&gt;
Pack'&lt;BR /&gt;
&amp;gt; then it doesn't work and a lot of other functions don't either.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; It works fine with AutoCAD Mechanical Desktop...&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Wouter&lt;/WOUTER&gt;</description>
      <pubDate>Wed, 10 Jan 2001 12:00:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334272#M88117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-01-10T12:00:26Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334273#M88118</link>
      <description>The MDT4 code is untouched and still referencing the McadAuto 1.0 and the&lt;BR /&gt;
other 1.0 models. It runs on any MDT4 machine until MDT5 is installed. It&lt;BR /&gt;
continues running in MDT5 even though still referencing the MDT4 model. Just&lt;BR /&gt;
seems a little strange.&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Wed, 10 Jan 2001 12:18:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/mcad-pick-error/m-p/334273#M88118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-01-10T12:18:13Z</dc:date>
    </item>
  </channel>
</rss>

