Create Dimension: Get references to FamilyInstances

Create Dimension: Get references to FamilyInstances

michael
Participant Participant
4,446 Views
20 Replies
Message 1 of 21

Create Dimension: Get references to FamilyInstances

michael
Participant
Participant

Hello,

 

I’m trying to programmatically place a dimension on some family Instances in a section view. Let’s assume, that I have some rectangular boxes placed in a wall. The Insertion point of such a box is in its centre.

I want to place a dimension with references to the origins of each box. I know that I can place a dimension using the “doc.Create.NewDimension” method. But I don’t know how to get the correct reference to the centre of the box. When I place the dimensions manually in the Revit model, I can select the reference planes of the centre of the box, but how do I get them using the API?

 

Any help would be appreciated!

0 Likes
4,447 Views
20 Replies
Replies (20)
Message 21 of 21

Anonymous
Not applicable

Well now I just feel silly.