# Access Sweep Curve Geometry in a Family

**URL:** <https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819>\
**Category:** Geometry\
**Created:** [September 14, 2017, 2:47pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819 "2017-09-14T14:47:10Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Dias](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/justin_dias/32/11728_2.png) [@Justin\_Dias](https://forum.dynamobim.com/u/Justin_Dias)\
**Post date:** [September 14, 2017, 2:47pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/1 "2017-09-14T14:47:10Z")

</div>

I have multiple families, each family is a swept geometry and each has a curve/rail to sweep along in the editor. Is there anyway I could access this curve geometry using Dynamo?

Any help would be great, thanks!

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [September 14, 2017, 2:51pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/2 "2017-09-14T14:51:46Z")

</div>

Could this thread help to get started?

> [@How to get the length of a Model In Place sweep?](https://forum.dynamobim.com/t/how-to-get-the-length-of-a-model-in-place-sweep/14746):
>
> If anyone can help!. I’ve spend an all day trying to get the lenght of an in-place model roof, in this case is a roof fascia. The main problem is that this roof is a in place model and it has more then one sweep. I just cant acess the leght of the sweep along the path. I sent some images and a dyn that just doesn’t work. frowning If some one has any idea how to do it i’ll appreciate. Thank’s [\_Fascia Lenght.dyn](https://forum.dynamobim.com/uploads/short-url/dwZD8IKTXXofVyYV51nM6iWSRes.dyn) (25.4 KB) [CANOP…](https://forum.dynamobim.com/uploads/short-url/kAJ5NBJS9uODAvwaWFTWrVVFBn2.rvt)

---

<div class="post-metadata">

**Author:** ![Justin\_Dias](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/justin_dias/32/11728_2.png) [@Justin\_Dias](https://forum.dynamobim.com/u/Justin_Dias)\
**Post date:** [September 14, 2017, 3:11pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/3 "2017-09-14T15:11:04Z")

</div>

Hmm, it doesn’t seem to be returning any results…this is the hierarchy to access the sketch for me:

Edit Family \> Edit Sweep \> Path : Sketch

Should your attached process be working for this case, or am I screwing something up?

![Collector Empty](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/c/2c8aff503b1e9d73119c3810fd4e0ad41e9f9c0d.png)

---

<div class="post-metadata">

**Author:** ![Tom\_James](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/tom_james/32/22277_2.png) [@Tom\_James](https://forum.dynamobim.com/u/Tom_James)\
**Post date:** [September 14, 2017, 3:28pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/4 "2017-09-14T15:28:38Z")

</div>

Have you tried clockwork’s Element.Location node?

---

<div class="post-metadata">

**Author:** ![Justin\_Dias](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/justin_dias/32/11728_2.png) [@Justin\_Dias](https://forum.dynamobim.com/u/Justin_Dias)\
**Post date:** [September 14, 2017, 3:37pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/5 "2017-09-14T15:37:24Z")

</div>

Hi @Tom_James, thanks for the reply, however I’m still getting no results for any curves, this has got me stumped!

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/5/f51a7f8f8c4ecbb6d22d118780bf5cb0e0291f78.png)

---

<div class="post-metadata">

**Author:** ![Tom\_James](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/tom_james/32/22277_2.png) [@Tom\_James](https://forum.dynamobim.com/u/Tom_James)\
**Post date:** [September 14, 2017, 3:38pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/6 "2017-09-14T15:38:37Z")

</div>

Could you share one of the families? It looks like it is point based from your image.  
The output from the ‘IsCurve’ should return true if it is curve based, but it looks like it will return true for the ‘isPoint’ output

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [September 14, 2017, 3:46pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/7 "2017-09-14T15:46:11Z")

</div>

Element.GetLocation

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/3/632c9ca8e5096ce45500b12488e29f1a2857ae98.png)

---

<div class="post-metadata">

**Author:** ![Justin\_Dias](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/justin_dias/32/11728_2.png) [@Justin\_Dias](https://forum.dynamobim.com/u/Justin_Dias)\
**Post date:** [September 14, 2017, 3:51pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/8 "2017-09-14T15:51:44Z")

</div>

Hi @Nick_Boyts, thank you for the reply, however it’s now becoming obvious with your suggestion that @Tom_James may be correct with this being Point based (see below results). Not sure what this means for me collecting the actual curve though, because there is a curve for the sweep in the sweep editor…

Also, unfortunately I can’t share the family as this project is currently confidential.

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/8/e816f5e16dd4d71d73976c0c1c58ac60e8506211.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [September 14, 2017, 3:54pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/9 "2017-09-14T15:54:07Z")

</div>

Ah, I missed that comment. I almost made it myself in fact.  
You are correct in that if your family is point based the only “placement” geometry Revit has is the origin point of the family.

---

<div class="post-metadata">

**Author:** ![Justin\_Dias](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/justin_dias/32/11728_2.png) [@Justin\_Dias](https://forum.dynamobim.com/u/Justin_Dias)\
**Post date:** [September 14, 2017, 4:23pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/10 "2017-09-14T16:23:25Z")

</div>

Ok, so the idea was that if the family was placed based on its sweep curve we could access it, but because it was not we won’t be able to access that embedded geometry?

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [September 14, 2017, 4:26pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/11 "2017-09-14T16:26:12Z")

</div>

Correct. It seems you can only get the placement or origin geometry. In a point-based family that’s obviously the origin point of the family. For a two-point or line-based family that’s the reference line that drives the geometry.

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [September 14, 2017, 4:29pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/12 "2017-09-14T16:29:08Z")

</div>

So it would have been useful to mention what kind of family you used in your graph

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [September 14, 2017, 4:30pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/13 "2017-09-14T16:30:06Z")

</div>

You _might_ be able to get more information from the family document, but the geometry would all be relative. You’d then have to compare it to each instance in your model.

---

<div class="post-metadata">

**Author:** ![Justin\_Dias](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/justin_dias/32/11728_2.png) [@Justin\_Dias](https://forum.dynamobim.com/u/Justin_Dias)\
**Post date:** [September 14, 2017, 4:41pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/14 "2017-09-14T16:41:08Z")

</div>

Yea sorry, I’m dealing with Generic Models in this case

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [September 14, 2017, 4:51pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/15 "2017-09-14T16:51:01Z")

</div>

This kind of discussion _might_ be very confusing for anyone using the forum as a knowledge database. It is generally required to take the time to formulate a request easily understandable that contains screenshots and all useful information, so that no one ends up in losing time 🙂

---

<div class="post-metadata">

**Author:** ![Tom\_James](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/tom_james/32/22277_2.png) [@Tom\_James](https://forum.dynamobim.com/u/Tom_James)\
**Post date:** [September 15, 2017, 8:05am UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/16 "2017-09-15T08:05:17Z")

</div>

That’s fair enough, although a simplified version of the family would be helpful.  
Could you access the data you need another way? For example, if you are trying to get the curve from a sweep try and;

- Add a parameter to the sweep in the family to obtain the volume
- Get the solids from dynamo
- Get the volume of the solids in dynamo
- filter out the correct solid by comparing the volume from the solid and the parameter for the volume from the family
- Once you have obtained the correct solid you can use several of dynamos functions to create the line you are after

---

<div class="post-metadata">

**Author:** ![Justin\_Dias](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/justin_dias/32/11728_2.png) [@Justin\_Dias](https://forum.dynamobim.com/u/Justin_Dias)\
**Post date:** [September 15, 2017, 1:54pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/17 "2017-09-15T13:54:00Z")

</div>

@Tom_James thank you for the reply, initially i was interested in directly accessing this embedded curve geometry through dynamo but it seems this isn’t possible so unfortunately I will end up recreating that curve based on the actual swept geometry like you mention. Thanks again!

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [September 15, 2017, 2:05pm UTC](https://forum.dynamobim.com/t/access-sweep-curve-geometry-in-a-family/14819/18 "2017-09-15T14:05:37Z")

</div>

Hi @Justin_Dias

> [@Justin\_Dias](#):
>
> but it seems this isn’t possible so unfortunately I will end up recreating that curve based on the actual swept geometry like you mention.

May be not. Take a look at this

[Trouble with PolyCurve By Profile Family Type - #6 by Kulkul](https://forum.dynamobim.com/t/trouble-with-polycurve-by-profile-family-type/6591/6)

if you still don’t see curves drop your family here.
