Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

is possible working this library with IronPython? #481

Closed
xyont opened this issue Oct 9, 2023 · 6 comments
Closed

is possible working this library with IronPython? #481

xyont opened this issue Oct 9, 2023 · 6 comments
Labels

Comments

@xyont
Copy link

xyont commented Oct 9, 2023

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
Copy link
Owner

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
Copy link
Author

xyont commented Oct 10, 2023

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

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

@haplokuon
Copy link
Owner

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
Copy link
Author

xyont commented Oct 10, 2023

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
Copy link
Owner

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
Copy link
Author

xyont commented Oct 10, 2023

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,

@xyont xyont closed this as completed Oct 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants