Point.ByCoordinates in Python Node

Hi Dynamo gurus,

Have anyone from you any idea, why the python node return me this traceback = AttributeError: ‘type’ object has no attribute 'ByCoordinates’

It seems that I’ve used wrong method for creating a point. I’ve tried to use Autodesk.Point.ByCoordnates(x,y,z) but I’ve got the same traceback but the wrong attribute was Autrodesk.

I am using the Dynamo core 2.3.0.

Thank for any help.

-lt

1 Like

This is most likely a namespace conflict with the class of the same name from the Revit API (Point). As you are exclusively using classes from Autodesk.DesignScript.Geometry, I would remove the rest of the imports below line 4.

Edit: See this post from @Jonathan.Olesen for additional reference.

6 Likes

You’re right cgartland, thanks a lot for explaining how it works.

-lt

1 Like

I solved my similar issue with:

from Autodesk.DesignScript.Geometry import *

Which exposed the design script members.