haplokuon / netDxf

.net dxf Reader-Writer
MIT License
966 stars 392 forks source link

is possible working this library with IronPython? #481

Closed xyont closed 9 months ago

xyont commented 9 months ago

hi,

is possible to call and loading the library from IronPython? i give a try but thrown some error messages.

regards,

2023-10-10 03_48_17-test16 py - SciTE

haplokuon commented 9 months ago

I cannot think of a reason why it should not work, this is a pretty standard net library after all; but I have no experience with IronPython. Try to explicitly import the netDxf.Entities namespace where the circle class resides or use the full namespace netDxf.Entities.Circle to instantiate a Circle object. Same thing applies to similar cases.

You are also using an old version of this library, update it just in case.

xyont commented 9 months ago

thank you for the hints and giving such as guidance, it seems almost work except in DxfDocumentto add entity.

2023-10-10 14_53_03-test16 py - SciTE

haplokuon commented 9 months ago

The AddEntity method does not exist anymore, I changed that long time ago. This is how I knew that you were using an old version of the library, now you can find it in dxf.Entities.Add.

Check the samples, check the documentation, and pay attention to the error IronPython is returning.

xyont commented 9 months ago

i downloaded from NuGet here, there's only one matched.

2023-10-11 02_44_58-netDxf dll Properties

where's the latest DLL versions link to download?

haplokuon commented 9 months ago

Download the latest source code and build the library yourself. I am not related in any way, shape, or form with the nuget releases.

xyont commented 9 months ago

hi,

it seems the problem solved., thanks again for latest hint about dxf.Entities.Add now is working, so many thanks for all.

2023-10-11 02_56_43-nanoCAD 5

sorry for confusing of my mixed example from previous versions of the libraries.

regards,