<?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: Questions about dropping blocks. in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/questions-about-dropping-blocks/m-p/1379385#M25942</link>
    <description>Keep in mind that COleDropTarget is not an ObjectARX class - you can find &lt;BR /&gt;
info in microsoft's msdn library.  Should be the first entry if you just &lt;BR /&gt;
google COleDropTarget...&lt;BR /&gt;
&lt;BR /&gt;
-Rich&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Nick Jacobs" &lt;NJACOBS&gt; wrote in message &lt;BR /&gt;
news:4903381@discussion.autodesk.com...&lt;BR /&gt;
Rich,&lt;BR /&gt;
Thanks for the pointers.  That's a start... I'm coming from mostly an ads&lt;BR /&gt;
background so some of this is VERY new to me.&lt;BR /&gt;
&lt;BR /&gt;
I could use any pointers you might like to pass along.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the help!&lt;BR /&gt;
Nick&lt;BR /&gt;
&lt;BR /&gt;
P.S.  I'll start looking into the docs right now for the DropTarget class&lt;BR /&gt;
and it's features.&lt;BR /&gt;
&lt;BR /&gt;
"Justavian" &lt;RPRIDDY at="" livingworkplace="" dot="" com=""&gt; wrote in message&lt;BR /&gt;
news:4903323@discussion.autodesk.com...&lt;BR /&gt;
I haven't looked at the sample that you're talking about, but i do a lot of&lt;BR /&gt;
drag and drop stuff with AutoCAD.  The first thing to do is to create a&lt;BR /&gt;
COleDropTarget derived class.  An instance of this class will be registered&lt;BR /&gt;
with AutoCAD by calling acedAddDropTarget( ).  Don't forget to remove the&lt;BR /&gt;
target before your app shuts down - acedRemoveDropTarget.&lt;BR /&gt;
&lt;BR /&gt;
You'll want to override the virtual functions OnDrop, OnDropEx, OnDragEnter,&lt;BR /&gt;
OnDragOver, OnDragLeave.&lt;BR /&gt;
&lt;BR /&gt;
As to how to do the actual processing - that's up to you.  I often use XML&lt;BR /&gt;
to represent the item being dragged.  So when i detect that a drag operation&lt;BR /&gt;
has started, i assemble a short XML with the symbol name or whatever i need.&lt;BR /&gt;
Use that string with a COleDataSource to begin the drag (if you're&lt;BR /&gt;
unfamiliar with how to do that, i could point you in the right direction).&lt;BR /&gt;
&lt;BR /&gt;
Let me know if that's what you're looking for...&lt;BR /&gt;
&lt;BR /&gt;
-Rich&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Nick Jacobs" &lt;NJACOBS&gt; wrote in message&lt;BR /&gt;
news:4901197@discussion.autodesk.com...&lt;BR /&gt;
Hi Gang,&lt;BR /&gt;
I'm just looking for some guidance on where to start my research.&lt;BR /&gt;
&lt;BR /&gt;
What I want to do is to do a drag and drop from a tool palette into my&lt;BR /&gt;
current drawing.&lt;BR /&gt;
&lt;BR /&gt;
If these were traditional style:&lt;BR /&gt;
I would have the symbols on a menu.&lt;BR /&gt;
When a user picks the item off the menu, I run my cutesy lisp routine that&lt;BR /&gt;
would insert the object, break my line I put it on, and then fill out the&lt;BR /&gt;
attributes and then stop.&lt;BR /&gt;
&lt;BR /&gt;
So, question is, what do I do to capture the drop of the drag and drop?&lt;BR /&gt;
&lt;BR /&gt;
I looked at the Bolt Sample in the directories.  One thing, the new wizards&lt;BR /&gt;
don't generate the same code and I couldn't reproduce the steps it took to&lt;BR /&gt;
generate the wrapper classes.  Too many things just didn't jive with the&lt;BR /&gt;
code.  (What I was doing was to try to generate my own sample, instead of&lt;BR /&gt;
doing a bolt, I was doing a simple box.  4 sides, able to change the length&lt;BR /&gt;
of one side and the box would change.  You know, a simple "I can reproduce&lt;BR /&gt;
this" kind of attack).&lt;BR /&gt;
&lt;BR /&gt;
Any ideas on where to start?&lt;BR /&gt;
&lt;BR /&gt;
Nick&lt;/NJACOBS&gt;&lt;/RPRIDDY&gt;&lt;/NJACOBS&gt;</description>
    <pubDate>Sat, 16 Jul 2005 02:27:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-07-16T02:27:36Z</dc:date>
    <item>
      <title>Questions about dropping blocks.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/questions-about-dropping-blocks/m-p/1379382#M25939</link>
      <description>Hi Gang,&lt;BR /&gt;
I'm just looking for some guidance on where to start my research.&lt;BR /&gt;
&lt;BR /&gt;
What I want to do is to do a drag and drop from a tool palette into my &lt;BR /&gt;
current drawing.&lt;BR /&gt;
&lt;BR /&gt;
If these were traditional style:&lt;BR /&gt;
I would have the symbols on a menu.&lt;BR /&gt;
When a user picks the item off the menu, I run my cutesy lisp routine that &lt;BR /&gt;
would insert the object, break my line I put it on, and then fill out the &lt;BR /&gt;
attributes and then stop.&lt;BR /&gt;
&lt;BR /&gt;
So, question is, what do I do to capture the drop of the drag and drop?&lt;BR /&gt;
&lt;BR /&gt;
I looked at the Bolt Sample in the directories.  One thing, the new wizards &lt;BR /&gt;
don't generate the same code and I couldn't reproduce the steps it took to &lt;BR /&gt;
generate the wrapper classes.  Too many things just didn't jive with the &lt;BR /&gt;
code.  (What I was doing was to try to generate my own sample, instead of &lt;BR /&gt;
doing a bolt, I was doing a simple box.  4 sides, able to change the length &lt;BR /&gt;
of one side and the box would change.  You know, a simple "I can reproduce &lt;BR /&gt;
this" kind of attack).&lt;BR /&gt;
&lt;BR /&gt;
Any ideas on where to start?&lt;BR /&gt;
&lt;BR /&gt;
Nick</description>
      <pubDate>Thu, 14 Jul 2005 13:11:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/questions-about-dropping-blocks/m-p/1379382#M25939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-07-14T13:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about dropping blocks.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/questions-about-dropping-blocks/m-p/1379383#M25940</link>
      <description>I haven't looked at the sample that you're talking about, but i do a lot of &lt;BR /&gt;
drag and drop stuff with AutoCAD.  The first thing to do is to create a &lt;BR /&gt;
COleDropTarget derived class.  An instance of this class will be registered &lt;BR /&gt;
with AutoCAD by calling acedAddDropTarget( ).  Don't forget to remove the &lt;BR /&gt;
target before your app shuts down - acedRemoveDropTarget.&lt;BR /&gt;
&lt;BR /&gt;
You'll want to override the virtual functions OnDrop, OnDropEx, OnDragEnter, &lt;BR /&gt;
OnDragOver, OnDragLeave.&lt;BR /&gt;
&lt;BR /&gt;
As to how to do the actual processing - that's up to you.  I often use XML &lt;BR /&gt;
to represent the item being dragged.  So when i detect that a drag operation &lt;BR /&gt;
has started, i assemble a short XML with the symbol name or whatever i need. &lt;BR /&gt;
Use that string with a COleDataSource to begin the drag (if you're &lt;BR /&gt;
unfamiliar with how to do that, i could point you in the right direction).&lt;BR /&gt;
&lt;BR /&gt;
Let me know if that's what you're looking for...&lt;BR /&gt;
&lt;BR /&gt;
-Rich&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Nick Jacobs" &lt;NJACOBS&gt; wrote in message &lt;BR /&gt;
news:4901197@discussion.autodesk.com...&lt;BR /&gt;
Hi Gang,&lt;BR /&gt;
I'm just looking for some guidance on where to start my research.&lt;BR /&gt;
&lt;BR /&gt;
What I want to do is to do a drag and drop from a tool palette into my&lt;BR /&gt;
current drawing.&lt;BR /&gt;
&lt;BR /&gt;
If these were traditional style:&lt;BR /&gt;
I would have the symbols on a menu.&lt;BR /&gt;
When a user picks the item off the menu, I run my cutesy lisp routine that&lt;BR /&gt;
would insert the object, break my line I put it on, and then fill out the&lt;BR /&gt;
attributes and then stop.&lt;BR /&gt;
&lt;BR /&gt;
So, question is, what do I do to capture the drop of the drag and drop?&lt;BR /&gt;
&lt;BR /&gt;
I looked at the Bolt Sample in the directories.  One thing, the new wizards&lt;BR /&gt;
don't generate the same code and I couldn't reproduce the steps it took to&lt;BR /&gt;
generate the wrapper classes.  Too many things just didn't jive with the&lt;BR /&gt;
code.  (What I was doing was to try to generate my own sample, instead of&lt;BR /&gt;
doing a bolt, I was doing a simple box.  4 sides, able to change the length&lt;BR /&gt;
of one side and the box would change.  You know, a simple "I can reproduce&lt;BR /&gt;
this" kind of attack).&lt;BR /&gt;
&lt;BR /&gt;
Any ideas on where to start?&lt;BR /&gt;
&lt;BR /&gt;
Nick&lt;/NJACOBS&gt;</description>
      <pubDate>Fri, 15 Jul 2005 23:39:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/questions-about-dropping-blocks/m-p/1379383#M25940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-07-15T23:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about dropping blocks.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/questions-about-dropping-blocks/m-p/1379384#M25941</link>
      <description>Rich,&lt;BR /&gt;
Thanks for the pointers.  That's a start... I'm coming from mostly an ads &lt;BR /&gt;
background so some of this is VERY new to me.&lt;BR /&gt;
&lt;BR /&gt;
I could use any pointers you might like to pass along.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the help!&lt;BR /&gt;
Nick&lt;BR /&gt;
&lt;BR /&gt;
P.S.  I'll start looking into the docs right now for the DropTarget class &lt;BR /&gt;
and it's features.&lt;BR /&gt;
&lt;BR /&gt;
"Justavian" &lt;RPRIDDY at="" livingworkplace="" dot="" com=""&gt; wrote in message &lt;BR /&gt;
news:4903323@discussion.autodesk.com...&lt;BR /&gt;
I haven't looked at the sample that you're talking about, but i do a lot of&lt;BR /&gt;
drag and drop stuff with AutoCAD.  The first thing to do is to create a&lt;BR /&gt;
COleDropTarget derived class.  An instance of this class will be registered&lt;BR /&gt;
with AutoCAD by calling acedAddDropTarget( ).  Don't forget to remove the&lt;BR /&gt;
target before your app shuts down - acedRemoveDropTarget.&lt;BR /&gt;
&lt;BR /&gt;
You'll want to override the virtual functions OnDrop, OnDropEx, OnDragEnter,&lt;BR /&gt;
OnDragOver, OnDragLeave.&lt;BR /&gt;
&lt;BR /&gt;
As to how to do the actual processing - that's up to you.  I often use XML&lt;BR /&gt;
to represent the item being dragged.  So when i detect that a drag operation&lt;BR /&gt;
has started, i assemble a short XML with the symbol name or whatever i need.&lt;BR /&gt;
Use that string with a COleDataSource to begin the drag (if you're&lt;BR /&gt;
unfamiliar with how to do that, i could point you in the right direction).&lt;BR /&gt;
&lt;BR /&gt;
Let me know if that's what you're looking for...&lt;BR /&gt;
&lt;BR /&gt;
-Rich&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Nick Jacobs" &lt;NJACOBS&gt; wrote in message&lt;BR /&gt;
news:4901197@discussion.autodesk.com...&lt;BR /&gt;
Hi Gang,&lt;BR /&gt;
I'm just looking for some guidance on where to start my research.&lt;BR /&gt;
&lt;BR /&gt;
What I want to do is to do a drag and drop from a tool palette into my&lt;BR /&gt;
current drawing.&lt;BR /&gt;
&lt;BR /&gt;
If these were traditional style:&lt;BR /&gt;
I would have the symbols on a menu.&lt;BR /&gt;
When a user picks the item off the menu, I run my cutesy lisp routine that&lt;BR /&gt;
would insert the object, break my line I put it on, and then fill out the&lt;BR /&gt;
attributes and then stop.&lt;BR /&gt;
&lt;BR /&gt;
So, question is, what do I do to capture the drop of the drag and drop?&lt;BR /&gt;
&lt;BR /&gt;
I looked at the Bolt Sample in the directories.  One thing, the new wizards&lt;BR /&gt;
don't generate the same code and I couldn't reproduce the steps it took to&lt;BR /&gt;
generate the wrapper classes.  Too many things just didn't jive with the&lt;BR /&gt;
code.  (What I was doing was to try to generate my own sample, instead of&lt;BR /&gt;
doing a bolt, I was doing a simple box.  4 sides, able to change the length&lt;BR /&gt;
of one side and the box would change.  You know, a simple "I can reproduce&lt;BR /&gt;
this" kind of attack).&lt;BR /&gt;
&lt;BR /&gt;
Any ideas on where to start?&lt;BR /&gt;
&lt;BR /&gt;
Nick&lt;/NJACOBS&gt;&lt;/RPRIDDY&gt;</description>
      <pubDate>Sat, 16 Jul 2005 01:19:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/questions-about-dropping-blocks/m-p/1379384#M25941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-07-16T01:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about dropping blocks.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/questions-about-dropping-blocks/m-p/1379385#M25942</link>
      <description>Keep in mind that COleDropTarget is not an ObjectARX class - you can find &lt;BR /&gt;
info in microsoft's msdn library.  Should be the first entry if you just &lt;BR /&gt;
google COleDropTarget...&lt;BR /&gt;
&lt;BR /&gt;
-Rich&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Nick Jacobs" &lt;NJACOBS&gt; wrote in message &lt;BR /&gt;
news:4903381@discussion.autodesk.com...&lt;BR /&gt;
Rich,&lt;BR /&gt;
Thanks for the pointers.  That's a start... I'm coming from mostly an ads&lt;BR /&gt;
background so some of this is VERY new to me.&lt;BR /&gt;
&lt;BR /&gt;
I could use any pointers you might like to pass along.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the help!&lt;BR /&gt;
Nick&lt;BR /&gt;
&lt;BR /&gt;
P.S.  I'll start looking into the docs right now for the DropTarget class&lt;BR /&gt;
and it's features.&lt;BR /&gt;
&lt;BR /&gt;
"Justavian" &lt;RPRIDDY at="" livingworkplace="" dot="" com=""&gt; wrote in message&lt;BR /&gt;
news:4903323@discussion.autodesk.com...&lt;BR /&gt;
I haven't looked at the sample that you're talking about, but i do a lot of&lt;BR /&gt;
drag and drop stuff with AutoCAD.  The first thing to do is to create a&lt;BR /&gt;
COleDropTarget derived class.  An instance of this class will be registered&lt;BR /&gt;
with AutoCAD by calling acedAddDropTarget( ).  Don't forget to remove the&lt;BR /&gt;
target before your app shuts down - acedRemoveDropTarget.&lt;BR /&gt;
&lt;BR /&gt;
You'll want to override the virtual functions OnDrop, OnDropEx, OnDragEnter,&lt;BR /&gt;
OnDragOver, OnDragLeave.&lt;BR /&gt;
&lt;BR /&gt;
As to how to do the actual processing - that's up to you.  I often use XML&lt;BR /&gt;
to represent the item being dragged.  So when i detect that a drag operation&lt;BR /&gt;
has started, i assemble a short XML with the symbol name or whatever i need.&lt;BR /&gt;
Use that string with a COleDataSource to begin the drag (if you're&lt;BR /&gt;
unfamiliar with how to do that, i could point you in the right direction).&lt;BR /&gt;
&lt;BR /&gt;
Let me know if that's what you're looking for...&lt;BR /&gt;
&lt;BR /&gt;
-Rich&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Nick Jacobs" &lt;NJACOBS&gt; wrote in message&lt;BR /&gt;
news:4901197@discussion.autodesk.com...&lt;BR /&gt;
Hi Gang,&lt;BR /&gt;
I'm just looking for some guidance on where to start my research.&lt;BR /&gt;
&lt;BR /&gt;
What I want to do is to do a drag and drop from a tool palette into my&lt;BR /&gt;
current drawing.&lt;BR /&gt;
&lt;BR /&gt;
If these were traditional style:&lt;BR /&gt;
I would have the symbols on a menu.&lt;BR /&gt;
When a user picks the item off the menu, I run my cutesy lisp routine that&lt;BR /&gt;
would insert the object, break my line I put it on, and then fill out the&lt;BR /&gt;
attributes and then stop.&lt;BR /&gt;
&lt;BR /&gt;
So, question is, what do I do to capture the drop of the drag and drop?&lt;BR /&gt;
&lt;BR /&gt;
I looked at the Bolt Sample in the directories.  One thing, the new wizards&lt;BR /&gt;
don't generate the same code and I couldn't reproduce the steps it took to&lt;BR /&gt;
generate the wrapper classes.  Too many things just didn't jive with the&lt;BR /&gt;
code.  (What I was doing was to try to generate my own sample, instead of&lt;BR /&gt;
doing a bolt, I was doing a simple box.  4 sides, able to change the length&lt;BR /&gt;
of one side and the box would change.  You know, a simple "I can reproduce&lt;BR /&gt;
this" kind of attack).&lt;BR /&gt;
&lt;BR /&gt;
Any ideas on where to start?&lt;BR /&gt;
&lt;BR /&gt;
Nick&lt;/NJACOBS&gt;&lt;/RPRIDDY&gt;&lt;/NJACOBS&gt;</description>
      <pubDate>Sat, 16 Jul 2005 02:27:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/questions-about-dropping-blocks/m-p/1379385#M25942</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-07-16T02:27:36Z</dc:date>
    </item>
  </channel>
</rss>

