Message 1 of 3
Entiy usage in separate thread.
Not applicable
12-16-2010
03:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
Recently I faced with the following problem:
I want user to select some Entities and than perform with them some calculations. But calculations are time consuming and I decided to move them to separate thread. But when calculations are performed in background thread AutoCAD UI is available and user can edit/remove any of selected Entities.
The question: Is it possible to
1) Forbid user to edit drawing while calculation is performed, or . . .
2) Make drawing-independent copies of Entities, or . . .
3) Continue calculations even if drawing was closed?
I've already tried MdiActiveDocument.DocumentLock()
and
Entity.Clone() and tackle about Entity.DeepClone() but still didn't find a solution.
Thanks for attention.