Message 1 of 9
Can I create MultiReferenceAnnotation in a viewplane?

Not applicable
12-11-2019
05:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I tried to create MultiReferenceAnnotation in a viewplane,but I failed. my code is bellow: FilteredElementCollector coll = new FilteredElementCollector(doc); MultiReferenceAnnotationType ty= coll.OfClass(typeof(MultiReferenceAnnotationType)).First() as MultiReferenceAnnotationType; MultiReferenceAnnotationOptions options = new MultiReferenceAnnotationOptions(ty); options.SetElementsToDimension(els); options.TagHeadPosition = new XYZ(0, 100, 0); options.DimensionLineOrigin = new XYZ(5, 5, 1); options.DimensionLineDirection = new XYZ(1, 0, 0); options.DimensionPlaneNormal = new XYZ(0, 0, 1); options.DimensionStyleType = DimensionStyleType.Linear; MultiReferenceAnnotation multi = MultiReferenceAnnotation.Create(doc, doc.ActiveView.Id, options); The error message is in the attacments. I wonder if it is possible to create MultiReferenceAnnotation in a viewplane with MultiReferenceAnnotation.Create().