Hi!
I’m trying to use PointsAtEqualSegmentLenght in a python node but I get this message:
AttributeError: ‘Line’ object has no attribute ‘PointsAtEqualSegmentLenght’
Does anyone know why?
Because you are either not importing the ProtoGeometry library or you are importing both the ProtoGeometry and RevitAPI libraries, both of which contain a Line class, so your method call is ambiguous.
Import ProtoGeometry only to resolve, or if you need both, fully qualify the class. On an aside, I would recommend only using the Revit API since ProtoGeomtry library is inefficient and quite rudimentary feature-wise.
Also, double check your spelling: PointsAtEqualSegmentLength
Thank you kenny, just a spelling mistake XD