acedSSLength gives invalid result
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I don't know how to properly title this post. I'll try to describe it.
1. Open Autocad
2. Draw 5 lines (let's say paralell lines)
3. Select them all with area (mouse move)
4. Now press shift and holding shift move your mouse from right lower corner into left upper - selecting all the lines.
If you have done all operations well, every line should be now unselected.
Now, when my Autocad loads my application, there something different happens. When I select all the lines, I get pickFirstModified and everything is ok.
But when I'm trying to unselect them all (like I have written earlier), pickFirstModified is called, but then:
resbuf * p = NULL;
int result = acedSSGetFirst(NULL, &p); //it gives me selection set
if((p != NULL) && (result == RTNORM))
{
m_name[0] = p->resval.rlname[0];
m_name[1] = p->resval.rlname[1];
acutRelRb(p);
}
//now, I check the length
long len;
int result = acedSSLength(m_name, &len);This length gives me 4. What's more, the 4 lines on the drawing are actually still selected. Only one is unselected. Does anyone of you knows the reason why?