下面Create方法中的spaceId怎么得到?也就是模型空间或图纸空间的id.
谢谢
Annotation.Create Method (Autodesk.AutoCAD.Geometry.Point3d, Autodesk.AutoCAD.DatabaseServices.ObjectId, Autodesk.AutoCAD.DatabaseServices.ObjectId, Autodesk.AutoCAD.DatabaseServices.ObjectId, bool, bool)
Create an annotation style based annotation.
C#
void Create(Autodesk.AutoCAD.Geometry.Point3d position, Autodesk.AutoCAD.DatabaseServices.ObjectId styleId, Autodesk.AutoCAD.DatabaseServices.ObjectId targetId, Autodesk.AutoCAD.DatabaseServices.ObjectId spaceId, bool bIgnoreAutoInsertOffset, bool bRetainMinWidths);
[url=]Parameters[/url]
Parameters
| Description
| Autodesk.AutoCAD.Geometry.Point3d position
| Input position of annotation.
| Autodesk.AutoCAD.DatabaseServices.ObjectId styleId
| Input id of annotation style.
| Autodesk.AutoCAD.DatabaseServices.ObjectId targetId
| Input id of annotation target.
| Autodesk.AutoCAD.DatabaseServices.ObjectId spaceId
| Input id of space (e.g. model or paper) to create annotation in.
| bool bIgnoreAutoInsertOffset
| Input - if true, uses position and ignores Auto-Insert offest values.
| bool bRetainMinWidths
| Input - if true, annotation graphics retain their original width when text shrinks.
|
[url=][/url]
|