Dimension - add/remove references

Dimension - add/remove references

boostyourbim
Advocate Advocate
1,448 Views
2 Replies
Message 1 of 3

Dimension - add/remove references

boostyourbim
Advocate
Advocate

Hi Autodesk,

 

In the Revit UI there is an "Edit Witness Line" command that allows adding and removing references from a dimension. 

 

In the API, there seems to be nothing like this. There is the Dinension.References property but it is read-only. Could you file a request to allow adding and removing references from an existing dimension?

 

Thanks

Harry

0 Likes
1,449 Views
2 Replies
Replies (2)
Message 2 of 3

BardiaJahan
Advocate
Advocate

The workaround is to retrieve the references as a ReferenceArray by dimension.References and then to either Append new references or filter out the ones that need to be removed and recreating the dimension. Unless you are asking them to provide a more straightforward solution.

0 Likes
Message 3 of 3

PieterL_TM
Advocate
Advocate

I'm revisiting this topic. Recreating the dimension is what I'm currently doing as well, but I’m wondering if anyone has found an easier method.
I'm not an expert coder, so I’m not sure if this is even possible—but if the 'Reference' property weren’t read-only, it would definitely simplify things.

0 Likes