Message 1 of 3
Draw order management ideas

Not applicable
03-08-2006
08:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Here is my problem. I have AutoCAD objects (coordinates, color, everything that I need to recreate the object) in a database.
The app is supposed to read an entire drawing, put all the coordinates, properties and positions... in the database, and allow to recreate all these objects anywhere.... witch works great....
Here is the problem: When I query the database to get all the objects, the stored procedure gives them all in a specific order (per object type, thus all arcs, then all lines, then all circles, ...). I would like to put all these objects back in the same order that they were when I read the drawing the first time, without having to keep a (0 to NumberOfObjects) array of handles. (even if I did, handles are only good inside a drawing, and since I change drawing, handles are not constant...).
I need an object drawing order management technique that would be easy to implement, and that is not based on handles....
Weird hen!?!
Let me know if anyone has an idea....
Tanks
The app is supposed to read an entire drawing, put all the coordinates, properties and positions... in the database, and allow to recreate all these objects anywhere.... witch works great....
Here is the problem: When I query the database to get all the objects, the stored procedure gives them all in a specific order (per object type, thus all arcs, then all lines, then all circles, ...). I would like to put all these objects back in the same order that they were when I read the drawing the first time, without having to keep a (0 to NumberOfObjects) array of handles. (even if I did, handles are only good inside a drawing, and since I change drawing, handles are not constant...).
I need an object drawing order management technique that would be easy to implement, and that is not based on handles....
Weird hen!?!
Let me know if anyone has an idea....
Tanks