I have a dwg with a layer called "2-1#", and there are some inserts on this layer.
there are two layers on this dwg, and I just want to select inserts on layer "2-1#" ,so I tested the following code:
resbuf* rd = ads_buildlist(RTDXF0,_T("insert"),8,_T("2-1#"),0);
ads_relrb(rd);rd = NULL;
long lNumber = 0;
execute the code ,and selected none. but then I change the layer name to "2-1", and the code to "ads_buildlist(RTDXF0,_T("insert"),8,_T("2-1"),0);
so , i guess the problem is about char "#", but how to solve this. I tested my code on AutoCAD 2008. there is a dwg attached.
Access a broad range of knowledge to help get the most out of your products and services.