Hi
I am looking to import a csv into revit but colour the points based off certain columns within the csv file. Any advice?
There isnât a good way to place a âpointâ in the traditional sense using Revit. Can you indicate how youâd do this manually?
Post a file and describe the behavior you want to implement in more detail. Where exactly are you getting stuck? Ignoring the fear of stating the obvious, you may want to start by experimenting with the ImportFromCSV node. I have seen several examples that take advantage of CSV files. Awaiting your reply,
Emmanuel A. Garcia
basically i am a setting out engineer and i use revit. What i want to do is import the points i have surveyed into revit but as a small sphere. If the point is a design point i want it red and if surveyed i want it green
And you want to see them in Revit? FamilyInstance.ByPoint, using a one family type for the design point and another family type for the surveyed points.
Ok, how do i get Dynamo to recognise multiple columns in the excel?
When a CSV file is imported to Dynamo, it becomes a 2-dimensional list. You can use indexing to get each of the columns. If this is your CSV file:
[['X', 'Y', 'Z'],
[1, 1, 0],
[1, 1, 1],
[2, 1, 0]]
All of your Z coordinates are at index 2 of each row, Y at 1, and X at 0.
ok, so i have done a list.transpose and want to seperate each row as an individual element, can this be done?
so for instance my file contains x,y,z,tolerance in the headings and i want to then say in row 1 place point x,y,z and look at tolerance and if the tolerance is Y then use âFamily Xâ
This is where i am at just donât get why the point.bycoordinate isnât working as it recognises them in watch
Looking to add IDâs to the points and then work on the tolerances attaching them to the point
The watch node is showing values because the Point.ByCoordinates node IS working - but itâs working on ALL the data which youâre feeding into it, including the values: âEastingâ, âNorthingâ, and âHeightâ, which Dynamo canât map to a point in 3d space. Itâs like trying to solve avocado
* bacon
* chicken
, which while a great concept for a sandwich, isnât ideal for math. If you use a List.Deconstruct node youâll pull the headers out of the CSV into a nice little list, allowing you to transpose just the good stuff.
Drop items also works as shown. Reason a I like the deconstruct is because it also pulls the headers so you know what the order of the value from each list is are after you transpose them.
hah love the analogy. Makes sense so after list deconstruct, how to i plot so it recognises the point id, easting, northing etc⌠to plot as a point?
Same ways as before - hereâs a quick example.
Note the âwatch nodeâ indicates the data type at each index of the CSVâs data.
Thanks i copied your one to see and i am still getting the same that the point by coordinate not recognising. even though i have set the code block correctly
Please upload the CSV - youâve likely got bad data in there somewhere.