I’m trying to access the sketch/drawing data of the model included in sample data at “data/CV5_Aquo_Bottle/"_Aquo Bottle.CATProduct”
From a DrawingBlock reference, I run the following code:
if (pDrwBlock == nullptr) {
return;
}
A3DDrawingBlockBasicData drwBlockData;
A3D_INITIALIZE_DATA(A3DDrawingBlockBasicData, drwBlockData);
A3DStatus status = A3DDrawingBlockBasicGet(pDrwBlock, &drwBlockData);
if (status != A3D_SUCCESS) {
return;
}
std::cout << " Entities: " << drwBlockData.m_uiDrwEntitiesSize
<< ", Markups: " << drwBlockData.m_uiMarkupsSize
<< ", Nested Blocks: " << drwBlockData.m_uiDrwBlocksSize << std::endl;
if (drwBlockData.m_uiDrwEntitiesSize > 0) {
std::cout << " Drawing Entities:" << std::endl;
for (A3DUns32 i = 0; i < drwBlockData.m_uiDrwEntitiesSize; i++) {
if (drwBlockData.m_ppDrwEntities[i]) {
A3DEEntityType entityType = kA3DTypeUnknown;
if (A3DEntityGetType(drwBlockData.m_ppDrwEntities[i], &entityType) != A3D_SUCCESS) {
return;
}
std::cout << entityType << std::endl;
Most of the referenced draw block entities from this sample file have A3DEntityType=1315. This value does not seem to match up to any enum values in the docs but it just overshoots the kA3DTypeDrawing range (1300-1314). I’m wondering, is there a definition for this type that I am missing, or is 1315 simply an undefined drawing entity?
For clarity, I am using the enum headers from the trial code