@Alexander.Rivilis , How do I set the property value for the block?
I am using the following code, but it does not update the value.
if (wcscmp(blkProp.propertyName().kACharPtr(), L"Visibility1") == 0)
{
AfxMessageBox(_T("Visibility1 Found"));
blkProp.setValue(_T("TEST"));
}Also, how do I access or print this following value in TCHAR?
//Get allowed values for property
AcDbEvalVariantArray evalAry;
if ((err = blkProp.getAllowedValues(evalAry)) == Acad::eOk)
{
if (evalAry.length() >= 1)
{
AcDbEvalVariant eval = evalAry[1];
// How do I access this value as a TCHAR or string
// to print in the command line?
if (!blkProp.readOnly())
{
if ((err = blkProp.setValue(eval)) != Acad::eOk)
{
acutPrintf(L"\nError setting property value...");
}
}
}
}