Can you be more specific or provide some sample code? I need to modify the CropRegion of the ReferenceCallout only, not the original View. If I get the View of the ReferenceCallout then I'd be changing that View instead of the sketch of the ReferenceCallout. I don't see a way to do this at all.
Here's some API Wish List items that would be great:
The ViewSection.CreateCallout method should also allow for a sketched CropRegion by adding:
public static View CreateCallout(
Document document,
ElementId parentViewId,
ElementId viewFamilyTypeId,
ViewCropRegionShapeManager cropRegionShape
)
Allow ReferenceViews to be a View. Add IsReference Property to the View Class to allow for checking against it being a View or ViewReference.
The ViewSection.CreateReferenceCallout method would then create a View and we could have the option for creating with a sketched CropRegion:
public static View CreateReferenceCallout(
Document document,
ElementId parentViewId,
ElementId viewIdToReference,
ViewCropRegionShapeManager cropRegionShape
)
UPDATE:
I was able to determine if a view IsReference by checking the (int)BuiltInParameter.VIEWER_IS_REFERENCE.
Show More