Page 1 of 1
Select and Dragging an entity
Posted: 05 Apr 2011, 07:55
by Khyati
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?
Re: Select and Dragging an entity
Posted: 05 Apr 2011, 12:58
by support
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.
Re: Select and Dragging an entity
Posted: 06 Apr 2011, 09:25
by Khyati
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.
Re: Select and Dragging an entity
Posted: 06 Apr 2011, 10:19
by support
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.
Re: Select and Dragging an entity
Posted: 07 Apr 2011, 11:07
by Khyati
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?
Re: Select and Dragging an entity
Posted: 07 Apr 2011, 17:36
by support
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.
Re: Select and Dragging an entity
Posted: 14 Apr 2011, 09:48
by Khyati
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?
Re: Select and Dragging an entity
Posted: 14 Apr 2011, 13:09
by support
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.
Re: Select and Dragging an entity
Posted: 18 Apr 2011, 12:59
by Khyati
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?
Re: Select and Dragging an entity
Posted: 19 Apr 2011, 12:44
by support
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.
Re: Select and Dragging an entity
Posted: 19 Apr 2011, 12:52
by Khyati
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?
Re: Select and Dragging an entity
Posted: 19 Apr 2011, 13:18
by support
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.