Select and Dragging an entity

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
Khyati
Posts: 34
Joined: 08 Feb 2011, 08:55

Select and Dragging an entity

Post by Khyati » 05 Apr 2011, 07:55

1) Is there any event triggered when an entity is selected? how to trigger it?
2) dragenter / dragover etc event of picturebox are not working. i did same as mousedown event for picturebox. how to solve it?
3) which methods are there related to dragging an entity programmatically?

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Select and Dragging an entity

Post by support » 05 Apr 2011, 12:58

Hello.
Visual entity selection realized on MouseDown event, there is no events on selection. The data to be dragged should be an instance of the String, Bitmap, or MetaFile class, or an object that implements the ISerializable or IDataObject interfaces. CADEntity is neither of these. Dragging is visual functionality by its meaning, there is no any methods to do this programmatically.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Khyati
Posts: 34
Joined: 08 Feb 2011, 08:55

Re: Select and Dragging an entity

Post by Khyati » 06 Apr 2011, 09:25

Thanks!

CadEditorControl class has public events related to dragging.
When do they trigger?
I can't trigger them when i drag a line / point / circle etc.

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Select and Dragging an entity

Post by support » 06 Apr 2011, 10:19

Hello.
The data to be dragged should be an instance of the String, Bitmap, or MetaFile class, or an object that implements the ISerializable or IDataObject interfaces. Events will be triggered when drag&drop such objects, but CADEntity and its descendants not implement these interfaces.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Khyati
Posts: 34
Joined: 08 Feb 2011, 08:55

Re: Select and Dragging an entity

Post by Khyati » 07 Apr 2011, 11:07

I can't understand why cadimport.net not supporting such a basic feature.

If i can draw.. simply i should be able to drag that.
but i need to trigger an event when user drags an entity.

it is very frustrating not seeing such simple tool in cadimport.net..
can u really help?

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Select and Dragging an entity

Post by support » 07 Apr 2011, 17:36

Hello Khyati.
Unfortunately current CAD Import .NET version doesn't allow entities drag&drop between applications. The feature wasn't realized in library. We will try to add such functionality in the future.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Khyati
Posts: 34
Joined: 08 Feb 2011, 08:55

Re: Select and Dragging an entity

Post by Khyati » 14 Apr 2011, 09:48

1)Well, would you provide it in professional version?

2) My display point mode is square with cross display. if i select a point, its display becomes dashed. what is the reason?

3) sometimes, on selection, line display also becomes dashed line instead of a continuous line. why?

4) point dragging is bit difficult than a line. Point size is 15, suffecient to select. But it can't dragged so easily. What can be the reason?

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Select and Dragging an entity

Post by support » 14 Apr 2011, 13:09

Hello.
Current version of CAD Import .NET doesn't provide entities drag&drop functionality between applications. We can't inform you about availability in Professional and Standard versions while feature not implemented.
Any selected entity become dashed on selection. This is standard CAD software feature, you can check it with AutoCAD.
Please specify that did you meant by "Point can't dragged so easily"?

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Khyati
Posts: 34
Joined: 08 Feb 2011, 08:55

Re: Select and Dragging an entity

Post by Khyati » 18 Apr 2011, 12:59

Thanks!

how can i get co-ordinates of start and end points of a line while the line is being dragged?

When i drag a line, i want its adjacent lines and points also to be dragged with it.

How to do it?

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Select and Dragging an entity

Post by support » 19 Apr 2011, 12:44

Hello.
CAD Import .NET demo applications doesn't include method for getting coordinates of start and end points of a line while being dragged. You can try add own code in mouse_move event handler.
Generally selected entities can be dragged. For example you can add some adjacent entities to selected.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Khyati
Posts: 34
Joined: 08 Feb 2011, 08:55

Re: Select and Dragging an entity

Post by Khyati » 19 Apr 2011, 12:52

There are many simple and basic points, which are not supported by CADImport.net.
How a developer can go ahead with your program? this is my start of project. yet, i've to complete many complex tasks, and cadimport is not supporting at such initial level..!!!

Well,
is there any method / procedure to group / join some entities? and then again ungroup them?

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Select and Dragging an entity

Post by support » 19 Apr 2011, 13:18

CAD Import .NET is developer library (not end-user application) that provides access to entities structure and basic methods to handle entities data. A library can't contain methods for each possible task required by end-user. As a developer you must create required methods to implement some functionality in your application.
CADEntityCollection class can be used to group/ungroup entities. Use add and remove methods.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply