Problem on Placing Family Along 3D Cad Line

I am a beginner of Dynamo. I want to place the Lighting Fixtures along a 3d-CAD line withe spacing 1.55m about 1.4km long. My problem is the Families that placed from dynamo can’t have the correct level , its only line on level 1. I can’t edit the family level as well. My script as the following:


My Reivt File: My Revit File
Lamp Family: TF1-rotation-non.rfa (376 KB)
Problem:

Hey there i didnt really took the time to read the whole node by details but i can’t see any nodes reffering to the height or level it is placed on.

FamilyInstance.ByPoint should be include height

This is caused by your family- it is workplane (level) based, so you can’t move it vertically

Most lighting families will have parameter for offset from host- so you could either keep it as level based and add a parameter for offset, or use a point based family

image

thanks alot, i do it successful after adding a parameter for offset