コード例 #1
0
        private void CreateBlockRefs(DocumentModifier docMdf, BlockTableRecord space, BlockTableRecord blockDef,
                                     Point3d[] points, double[] elevations)
        {
            AttributeDefinition attDef = blockDef.GetAttributeDefinition(BlockAttributeName);

            for (int i = 0; i < points.Length; i++)
            {
                Point3d        pos      = new Point3d(points[i].X, points[i].Y, elevations[i]);
                BlockReference blockRef = CreateBlockRef(docMdf, space, blockDef, attDef, pos);
            }
        }