Family appears in wrong place in dynamo

I have a property line (red) and a family.
The family is made up of a grey filled region and a circle.
image

I select them in dynamo and this happens:

Anyone know why the position of the detail family has moved?

can you share your graph?

maybe it has someting to do with the coordinate system

Sure
JumpingFam.dyn (37.3 KB)

and the family is:
TurningCircle.rfa (400 KB)

The location you are getting is from within the family. use Element.GetLocation in combination with Geometry.Translate to get the square in the right position.

ps. you should make sure the origin defining refplanes are not changed in the family, as they should be on the Internal Origin. Rebuild the family if you realy need the bottom left corner to be the insertion point.

pss. forgot the rotation…

good luck with your generative design script

2 Likes

Wow, that’s a faff!!
Thank you, I’d have taken forever to work that one out!

Any idea why it doesn’t just read its location and rotation in Revit?

Oh I’ve just realised it reads the ‘base’ size of the family too… Not the resized Revit version.

Erm, How do I fix that? :\

Well it works for this instance but I am seriously doubting it’ll hold up for many instances…

Surely there should be a better interaction with families placed in Revit and Dynamo?!

Another way to solve it seems to be the bounding box. I was able to use it to solve my problem and correctly position my converted topography as solid.

But no guarantees, I’m more of a Grasshopper user and relatively new to Dynamo. :laughing: