TheSwamp

CAD Forums => CAD General => Topic started by: It's Alive! on December 18, 2021, 07:40:39 PM

Title: Sorting table cells
Post by: It's Alive! on December 18, 2021, 07:40:39 PM
Writing a table sort routine.

pondering how to handle blank rows, should the routine skip blank rows? (honor their position?)
or move them sorted items to the top of the selection area
Title: Re: Sorting table cells
Post by: JohnK on December 18, 2021, 08:13:34 PM
That's tough but I vote to kill them. The breaks may be needed to separate column X data but when you resort the table by column Y that separation reason may no longer exist. ...remove.
Title: Re: Sorting table cells
Post by: It's Alive! on December 19, 2021, 05:41:25 AM
That's tough but I vote to kill them. The breaks may be needed to separate column X data but when you resort the table by column Y that separation reason may no longer exist. ...remove.

Thanks! I'm going to move them to the bottom unless their locked, I found AcDbTableIterator with flag AcDb::kTableIteratorSkipReadOnlyContent