Place Points by Getting Coordinates from Excel - Error

Hi All,

I’m trying to create a set of points by getting coordinates from excel and in the last step, a warning occurs to me.
Warning: Point.ByCoordinates operation failed.
The type initializer for ‘Autodesk.LibG.LibGPINVOKE’ threw an exception.

Can anyone tell me how to avoid this warning? and is there any better method to conduct this task?



your code looks correct, i use the same.

Found 2 Options:

  1. Dynamo and Revit installed on different harddrives
    Error when i create points

  2. Old Dynamo version?
    what dynamo version do you use?

Hi wusaga,

Thanks for your reply. My Revit version is 2019.2.1 and Dynamo Revit, Dynamo core They all installed in the same hard disk.



try my code. but its the same
Excel LinienImport.dyn (45.2 KB) Punktdatei.xlsx (9.3 KB)

Hi wusaga,

Thanks for your code, but the same warning came out again. I think it is an issue of the program.


you need to update to 2.0.2 at least - 2019.2 requires 1.3.4 or 2.0.2.