Host reference points on XY plane of reference points

As we know, if we host a reference point on another reference point, these 2 points are “connected”, moving the parent point will also move the other. In Dynamo, I successfully creating reference points on reference points, but the hosted features are gone, Can anyone offer me some assistance by showing me how to get the reference points hosted? Thank you very much!

1 Like

The “unhosted” referfence points on refernce points I created from dynamo.

I don’t think there’s a node for that.
You’d have to code that yourself using a Python node.
Relevant API bits:

Dear Andreas_Dieckmann,
I am really grateful for your comments, but I am totally blank to python coding. Could you please further elaborate so as to give me some guidance? Sorry for my ignorance.


Hi @pccheung

This should do what you want:

import clr
from Autodesk.Revit.DB import*
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
from Autodesk.Revit.Creation.FamilyItemFactory import NewReferencePoint

doc = DocumentManager.Instance.CurrentDBDocument
app = doc.Application

ref = [UnwrapElement(i).GetCoordinatePlaneReferenceXY() for i in IN[0]]
pts = []


for r in ref :
	re = app.Create.NewPointOnPlane(r,UV(),UV(),0)
	p = doc.FamilyCreate.NewReferencePoint(re)


OUT = pts  

First, the hosted points are created. Then the offset can be set as a parameter


HI @Mostafa_El_Ayoubi

This is what I am exactly looking for!!!

This world is beautiful because of your selfless attitude. Tribute to you!

1 Like

@pccheung my pleasure :slight_smile: glad I could help

Hi Mostafa,

Thanks for sharing this!
I have an issue with it… Everytime time dynamo runs it creates a new point. So you end up with multiple coinciding points…
Could you help with fixing that issue?

Thanks again!

Hi @Mostafa_El_Ayoubi

I would like to create Reference Points host by on a Curve.
Could you help me?