dimensions not showing on view plan

dimensions not showing on view plan

horikawaE7XJN
Contributor Contributor
131 Views
2 Replies
Message 1 of 3

dimensions not showing on view plan

horikawaE7XJN
Contributor
Contributor

In RevitAPI, I am not able to display dimensional lines on a plan view. (I want to display the dimLine created in line 179 of the attached code in the planView created in line 206. The target instance is the instance at line 90 and the target Face is the xyFacce at line 131) Could you please tell me how to modify the code? I am attaching the Revit data of the original family of the instance and the created instance together as a reference.

 

horikawaE7XJN_0-1749350092797.png

 

0 Likes
Accepted solutions (1)
132 Views
2 Replies
Replies (2)
Message 2 of 3

TripleM-Dev.net
Advisor
Advisor
Accepted solution

First, please use UnitUtils.ConvertToInternalUnits  and UnitUtils.ConvertFromInternalUnit , don't go converting values yourself.

 

Next split the code up for testing (to much happening for giving advice), don't place the families and try to dim them in one go (and create a view I see) if you're not famliliar with that specific part of the API. 

 

So manually place the families, existing view and than create a code piece (with Id variable for the placed family, and current view) and try to dim that, and check if the retrieved faces / points match what's expected. And maybe also generate detaillines on found positions to graphically check retrieved parts.

 

Also I don't know if you can place a family and get valid references to it in the same transaction.

 

What are you actually dimensioning, the side line of the topface?

Why not take the 2 side faces as dimension references, using their normal direction for evaluation?

 

- Michel

Message 3 of 3

horikawaE7XJN
Contributor
Contributor

Thank you for your advice. I will try it.

0 Likes