- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone !
I've a little problem with the sorting of entities.
In my project, i've a listbox, with the names of every ent on the drawing in autocad (If i draw 1 lines, 1 circle, and 1 spline, i've LINE, CIRCLE, SPLINE in my listbox) and i've also a list of ID with each entity ID. And i've also a button that imports data from the drawing (it imports names and ID of each entities, from the first ent that was drawn, to the last one and put it in the listbox)
My problem is pretty simple. I want to "sort" entities with a button UP and a button DOWN.
(imagine i've a list like : LINE, CIRCLE, SPLINE , if i select CIRCLE and click on the button UP, my list become CIRCLE, LINE,SPLINE, and also change it on autocad (maybe by the ID?), so that if i get the datas again, it's in the order i've decided before)
it's easy to swap items in the listbox, but how to do it in autocad ? (i guess i have to make some change in the tablerecord, or something like this.)
Someone has already done something like this?
Thanks for your help.
Adri Dicri
PS : Sorry for my horrible english, french is my mother tongue.
Solved! Go to Solution.