How to drag and drop block in Autocad by C#.

How to drag and drop block in Autocad by C#.

Anonymous
Not applicable
435 Views
1 Reply
Message 1 of 2

How to drag and drop block in Autocad by C#.

Anonymous
Not applicable
Hi All,

I want to drag and drop a block which get from dwg. But I don't know how to create drag and drop "DataObject", please see the following code.

new System.Windows.DataObject(DataFormats.FileDrop, new string[] { fullpath }); It is OK for drag and drop a dwg file, but it is not OK for drag and drop a block. Could you give me a sample about this.

Thanks,
Hongdan
0 Likes
436 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Hi Hongdan,

This NG is for VBA.

C# Sharp and .NET questions should be sent to the .NET newsgroup if you
wish to find the expertise to answer your question.

Regards,


Laurie Comerford




yuh0317 wrote:
> Hi All,
>
> I want to drag and drop a block which get from dwg. But I don't know how to create drag and drop "DataObject", please see the following code.
>
> new System.Windows.DataObject(DataFormats.FileDrop, new string[] { fullpath }); It is OK for drag and drop a dwg file, but it is not OK for drag and drop a block. Could you give me a sample about this.
>
> Thanks,
> Hongdan
>
0 Likes