Importer SDK DLL - Visual C++
Posted: 14 Jul 2005, 08:05
I have the following code :
<b>
DXF = DXFCreate(NULL, "rectangle.dxf\0");
nLayers = DXFLayerCount(DXF);
printf("there are %d layers\n", nLayers);
</b>
now I did not include the initialization etc, however it does work.
So far so good, DXFLayerCount will retrieve the correct number of layers
Now, here is the part that is puzzling me (relentlessly!)
<b>
DXFLayer(DXF, 0, &DXFinfo); // DXFInfo is a DXFDATA type
</b>
when I execute this command (and change the layer number) I cannot get a list of entities.
I can sometimes get back the Tag number of 4 (dxf layer) but never a count of entities.
Can I get a little bit of help as to what I'm doign wrong here? I just need to walk the layers and entities and get the coordinates/attributes for each of the entities. I have tried a few things, and now all I can think of is that I am forgetting something major.
Thank you for the help, it is much appreciated and very important.
regards,
p.s. although I did not buy DXF Import VCL, I am still going to purchase on of your products, just as soon as I can prove to my employer that it will suite my needs.
<b>
DXF = DXFCreate(NULL, "rectangle.dxf\0");
nLayers = DXFLayerCount(DXF);
printf("there are %d layers\n", nLayers);
</b>
now I did not include the initialization etc, however it does work.
So far so good, DXFLayerCount will retrieve the correct number of layers
Now, here is the part that is puzzling me (relentlessly!)
<b>
DXFLayer(DXF, 0, &DXFinfo); // DXFInfo is a DXFDATA type
</b>
when I execute this command (and change the layer number) I cannot get a list of entities.
I can sometimes get back the Tag number of 4 (dxf layer) but never a count of entities.
Can I get a little bit of help as to what I'm doign wrong here? I just need to walk the layers and entities and get the coordinates/attributes for each of the entities. I have tried a few things, and now all I can think of is that I am forgetting something major.
Thank you for the help, it is much appreciated and very important.
regards,
p.s. although I did not buy DXF Import VCL, I am still going to purchase on of your products, just as soon as I can prove to my employer that it will suite my needs.