AcDbCivilHAlignmentElement::EElementType
Hi
I am trying to write some code to extract information from a civil alignment. The code I have written below will not compile:
switch (element->type()) {
case EElementType::eLine:
acutPrintf(_T("\neLine."));
break;
default:
break;
}
Unfortunately I am getting the error "Use of undeclared identifier 'EElementType'" on the second line of code. Is there something I am missing?
Cheers
Brian
I am trying to write some code to extract information from a civil alignment. The code I have written below will not compile:
switch (element->type()) {
case EElementType::eLine:
acutPrintf(_T("\neLine."));
break;
default:
break;
}
Unfortunately I am getting the error "Use of undeclared identifier 'EElementType'" on the second line of code. Is there something I am missing?
Cheers
Brian
0
Comments
-
Dear Brian,
that EElementType enum is part of the AcDbCivilHAlignmentElement class ...
maybe try AcDbCivilHAlignmentElement::EElementType::eLine
?
many greetings !0 -
It worked! Thanks Torsten.0