Find curves that create Form in adaptive component family

Find curves that create Form in adaptive component family

net.k.kiselev
Contributor Contributor
651 Views
3 Replies
Message 1 of 4

Find curves that create Form in adaptive component family

net.k.kiselev
Contributor
Contributor

I want find reference lines that create form together.

I can use this method 

get_CurveLoopReferencesOnProfile

But for mid profile (profile that i need) it return reference that not exist geometry.

Maybe anybody know how i can find this curves only with data that i can extract from Form element?

0 Likes
652 Views
3 Replies
Replies (3)
Message 2 of 4

net.k.kiselev
Contributor
Contributor

I found some work around, but this solution not optimal.

None visible geometry exist curves, and then you need iterate from all curves in document for finding required reference curve with some length, parallel direction and in some place

 


Maybe Revit Api have more convenient  mechanism for this.

 

 

0 Likes
Message 3 of 4

RPTHOMAS108
Mentor
Mentor

If you are enquiring about it's representation within the Family environment then you can use GetDependantElements(ElementFilter) rather than searching the entire document for curves and matching them against geometry items you know belong to the element.

 

If you are in the project environment you probably don't care about those curves unless you want to dimension from them.

0 Likes
Message 4 of 4

net.k.kiselev
Contributor
Contributor

Thanks for advice! But approach with depending elements not working in this case. 

This curves not depending from this solid, and this solid not depends from this curves. But if i change this curves solid geometry also changed, i think i can use some temporary transaction, bat i don't want use this approach because it very bad for performance.

0 Likes