Advice on a Script

Hi,
So I have some coordinates that I have placed in Excel (x, y, and z ), these coordinates will put into place a family that has been created in Revit into a project. There are loads of these parts that need to be placed hence why there is a table with information in excel. I have tried following a tutorial that was actually made for Civil 3D and later found out that those nodes are not available for Revit. My goal is to place a family instance into a project and being able to use an excel sheet to identify where each instance needs to go x , y, z coordinates wise, which would eliminate any human errors, if say I would be manually placing the family individually. So I have been on a journey trying to figure a few of these nodes out but they do not work for me. I think this is due partly because I am a beginner. If you have any advice, please let me know, would highly appreciate any input :blush:

Below is an example of one of the scripts I have tried but have failed

Also I was thinking the best way to do that is by creating a path script but either the script has error and won’t fully run like the screenshot in the original post or it won’t run at all

Hi try check the object type for point at coordinates has to be double-integer, but not sure without see your list expended

I am unsure what you mean, sorry ?

Is that why it doesn’t want to work ? I am currently trying to place some existing columns so I have to use an accurate World Coordinate System, which means that I can’t simplify that into a two integer number. Based on that is there a different node that I can use that would be compatible?

1 Like

if it is strings you feed in, then you could try string to number before you feed in, but not 100 its the issue…but try it :wink:

I think I have tried this correctly, to no avail

could you share that excel sheet ? or show us all nodes expended/pinned so we can see what go trough

1 Like

here is a little snippet of the excel sheet

hi, remove your 2nd line (index 1 for remove) you send a “” to the string to number
cordially
christian.stan

try as here

1 Like

Really hard to know what’s going on without seeing the node outputs. Please make sure you pin all the node preview bubbles when sharing a screenshot. Otherwise we have no clue what your data actually looks like. I’m guessing your initial issue is with the list structure coming from excel. You either want to Transpose your data or set your GetItemAtIndex nodes to use the appropriate list levels.

Hi, I have done that, it still doesn’t work still, however there was a pop up that told me to change my Geometry Scaling, which I am seeing that as a step forward :smile:

1 Like

I have tried this and had a problem at the end of the script, unsure where to go from here

Its really bhard to say…isnt that not geometry scalling ? PS be sure you clean up so only the numbers go into the point.by.coordinates…guess if you share that excel sheet, we can find a solution…or it is only guessing

so this is how the script looks like, I have also changed the geometry scaling too

allright cant see it but is it 2 here ?

ps i have only tried on that excel structure as you show

  1. Always leave geometry scaling on medium.
  2. Your values are strings now numbers, so you will need to convert them with a String.ToNumber node.
  3. You need to remove the first two rows of data before attempting to create geometry as those are headers - the integer input into the List.DropItems node after the excel node needs to be a 2, not a 0.
3 Likes

Yes :wink: :wink: looks like it 0 now, but cant see it…you know im a old man :wink: :wink: there need some glasses

2 Likes

i put down a 0, sorry was it meant to be a 2 ?