Hello guys,
I'm using AutoCAD 2016 and I'm batch processing files for our customers. Currently I'm working on ~200 files that contains proxy objects created from 3rd party library (SYSCAD). Our customer wants to remove all proxy objects and to leave more simple objects on their places. I have to remove proxies without changing graphical information of the drawings.
That's why I'm trying to accomplish the following task:
- Open a dwg file;
- Find all proxy objects in all layouts (including model space);
- Explode them to primitive objects;
- Save the file;
Keep in mind, that I have SYSCAD enabler dbx file.
Here is what frustrated me:
- If I open the file without loading the enabler and iterate through layouts, I could take all objects which are from ProxyEntity type, but if I explode them, the objects that left don't look exactly as exploded proxy object;
- If I open the file with enabler loaded into AutoCAD, then many of proxy objects are taken as Polylines or Lines or block Refs but not as ProxyEntity.
What is the valid criteria that I could use to identify which objects are proxies?
Please see attached pics-> On the first, the objects is a Polyline, because enabler is loaded and AutoCAD knows how to handle this object. And on the other hand, on the second picture, you can see that, when enabler is NOT loaded, it says that the object is a Proxy.
How to identify, when I'm iterating through layouts, which object is a true polyline and which is a proxy but "understand" from Autocad as polyline?
Thank you!