Point3d pt
= new Point3d
(0,
0,
0);BlockReference br
= new BlockReference
(pt, bt
[BlkName
]);br.TransformBy(ed.CurrentUserCoordinateSystem);
br
.ScaleFactors = (bAnno
) ? new Scale3d
(1,
1,
1) : new Scale3d
(nScale, nScale, nScale
);
if (bAnno)
{
BlockTableRecord btr2 = (BlockTableRecord)tr.GetObject(br.BlockTableRecord, OpenMode.ForWrite);
btr2.Annotative = AnnotativeStates.True;
ObjectContextManager ocm = db.ObjectContextManager;
ObjectContextCollection occ = ocm.GetContextCollection("ACDB_ANNOTATIONSCALES");
ObjectContexts.AddContext(btr2, occ.CurrentContext);
}
InsertJig entJig
= new InsertJig
(br
);Utils.SetFocusToDwgView();
PromptResult pr = ed.Drag(entJig);
string c = pr.StringResult;