Python coordinates to points

This is driving me nuts.
I have a set of coordinates but i cannot turn it into points.
image
how to i get points out of a set of coordinates. What am I doing wrong?

import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference('RevitServices')
from RevitServices.Persistence import DocumentManager

clr.AddReference("RevitNodes")
import Revit
# Import ToProtoType, ToRevitType geometry conversion extension methods
clr.ImportExtensions(Revit.GeometryConversion)

doc = DocumentManager.Instance.CurrentDBDocument
walls = FilteredElementCollector(doc).OfClass(Wall).WhereElementIsNotElementType().ToElements()
worksets = FilteredWorksetCollector(doc).OfKind(WorksetKind.UserWorkset)
worksets_name = [i.Name for i in worksets]
worksets_id = [i.Id for i in worksets]
walls_worksets = [i.WorksetId.IntegerValue for i in walls]

worksetname = ['All Other Elements']

workset_filtered = []
n = 0
for i in worksets_name:
	for k in worksetname:
		if i == k:
			workset_filtered.append(worksets_id[n].IntegerValue)
	n=n+1

walls_filtered = []
n = 0
for i in walls_worksets:
	for k in workset_filtered:
		if i == k:
			walls_filtered.append(walls[n])
	n=n+1

MPoints = []
for wall in walls_filtered:
	loc = wall.Location
	curv = loc.Curve
	MPcord = curv.Evaluate(-0.5, False)
	MPoints.append(Point.ByCoordinates(MPcord.X,MPcord.Y,MPcord.Z))


OUT = MPoints

Hello @ckepner,

Simply change this line:

MPoints.append(Point.ByCoordinates(MPcord.X,MPcord.Y,MPcord.Z))

To this line:

MPoints.append(MPcord.ToPoint())

What you are returning right now is a Revit Type and you need to convert it to a Dynamo Point Type :slight_smile: