0 Members and 1 Guest are viewing this topic.
var currentSpace = (BlockTableRecord)tr.GetObject(m_db.CurrentSpaceId, OpenMode.ForWrite);br.TransformBy(m_doc.Editor.CurrentUserCoordinateSystem);currentSpace.AppendEntity(br);tr.AddNewlyCreatedDBObject(br, true);if (btr.Annotative == AnnotativeStates.True){ ObjectContextManager ocm = m_db.ObjectContextManager; ObjectContextCollection occ = ocm.GetContextCollection("ACDB_ANNOTATIONSCALES"); br.AddContext(occ.CurrentContext);}else{ br.ScaleFactors = new Scale3d(br.UnitFactor); }