Thanks,
Christopher Dix
C++ Developer
FMStrategies
c...@fmstrategies.com
// Begin code
AcDbEntity* pEntity = NULL;
AcGeMatrix3d matrix;
AcGePoint3d point;
AcGeVector3d vec(0.0, 0.0, 1.0); // Z-axis
PointerArray aEntities;
// Set the base point
point.set( 2.0, 3.0, 0.0 );
//matrix.setToRotation( dAngle, AcGeVector3d::kZAxis, point );
// I thought this line would build the matrix. I also tried
// AcGeVector3d::kZAxis as the axis vector.
matrix.setToRotation( dAngle, vec, point );
// Assume we fill aEntities with a group of entities here
.
.
.
for ( int nIndex = 0; nIndex < aEntities.Size();
nIndex++)
{
pEntity = (AcDbEntity*)aEntities[nIndex];
pEntity->upgradeOpen();
pEntity->transformBy( matrix );
pEntity->close();
}
// End code
The angle has to be given in Radian.
Hope this helps.
Peter
Christopher Dix wrote in message <7ed6d8$pe...@adesknews2.autodesk.com>...