interactive icon indicating copy to clipboard operation
interactive copied to clipboard

Can I intergate with software like Autocad or Revit ?

Open chuongmep opened this issue 1 year ago β€’ 16 comments

The package and version I'm asking about:

Question

Hi team, I have an idea about Jupyter Notebook can open in Autodesk Revit or Autodesk Autocad and use language C# or Python to code, whether your project is good point to research about that ? Regard !

chuongmep avatar Sep 09 '23 13:09 chuongmep

@brettfo what do you think?

colombod avatar Sep 12 '23 23:09 colombod

I have worked the idea of embedding an interactive Kernel in an AutoCAD MAP plugin as it is done in the Connect-WPF example. Unfortunately, AutoCAD .NET API are still in .NET Framework 4.*, so it's a no go (as far as I know).

I upvoted #3144 with the hope it could allow that.

(for now, I use a plugin embedding an old version of F# Interactive. For people wondering what's the stake is, it's great to be able to test things without stopping and restarting AutoCAD each time you make a significant modification of code.)

JDiLenarda avatar Sep 13 '23 12:09 JDiLenarda

@JDiLenarda Did you have link example for that ? I guess I can try now because I'm working on latest Version support .net standard

chuongmep avatar Sep 13 '23 12:09 chuongmep

@chuongmep I didn't know AutoCAD had finally moved on, sad to be stuck with 2021 version at work. Connect-WPF (example of how to embed a kernel in an application) is in the sample directory of this repo. Writing .NET AutoCAD plugins is documented in Autodesk community sites.

JDiLenarda avatar Sep 13 '23 12:09 JDiLenarda

@JDiLenarda , yeah, they moved , you can quick look to this post : https://adndevblog.typepad.com/autocad/2023/08/call-for-action-next-release-of-autocad.html I will try with your sample fist, I hope this issue still open to discuss more, because I want see this can help alot aec move a head

chuongmep avatar Sep 13 '23 12:09 chuongmep

@chuongmep I'm afraid I can't help on this. See #2369.

JDiLenarda avatar Sep 13 '23 13:09 JDiLenarda

Thank you @JDiLenarda , I think it is not problem not important with me now, I try go around first.😊

chuongmep avatar Sep 13 '23 13:09 chuongmep

@JDiLenarda it can work with .netstandard 2.0 as well ?

chuongmep avatar Sep 13 '23 13:09 chuongmep

@chuongmep I just asked my company to get me an AutoCAD 2024 developper licence, hope I can work on this soon.

JDiLenarda avatar Sep 13 '23 13:09 JDiLenarda

@chuongmep I just asked my company to get me an AutoCAD 2024 developper licence, hope I can work on this soon.

2024 still is .net 4.8 @JDiLenarda , We just can try with beta version now and we also have beta license as well https://feedback.autodesk.com/key/AutoCADBeta

chuongmep avatar Sep 13 '23 13:09 chuongmep

Thank you @JDiLenarda , I think it is not problem not important with me now, I try go around first.😊

There have been bug fixes in the WPF sample area, not sure if they help (we did a release yesterday). A lot of .net interactive libraries are netstandard 2.1. let us know how is it going with 4.8 interoperability. @brettfo is a CAD lover too and I would love to understand better you scenario. What are you achieving with .NET interactive interoperability with the cad app?

colombod avatar Sep 13 '23 21:09 colombod

https://www.keanw.com/2023/08/the-next-release-of-autocad-and-net.html according to this you should be in a much better place with NET 6 and 8 support!

colombod avatar Sep 13 '23 21:09 colombod

@colombod I checked with latest version beta and it working with .net6 as well , so many change about folder and also technology behind that. I'm trying hacking some thing now and will respone for everyone soonπŸ˜‚

chuongmep avatar Sep 13 '23 23:09 chuongmep

Hi @JDiLenarda , I'm opened a project at here , hope we can try explore https://github.com/chuongmep/JupyterBIM @colombod , What are you achieving with .NET interactive interoperability with the cad app? It will open the gate for Data enginner easier work with data from Autodesk software. With developer it really is gold because they can combine to explore programing depend on IDE visual studio code and jupyter notebook, just need write some line and share for another on the github with format ipynb as a guideline document.

chuongmep avatar Sep 14 '23 13:09 chuongmep

@colombod I occasionally write AutoCAD extensions. AutoCAD.Net APIs are poorly documented, so it's a lot of trial and error to achieve what I want. Doing test with a project demands to close and restart AutoCAD a lot. Having an extension with an Interactive Kernel would help me to do quick tests from a Notebooks cell.

@chuongmep I will surely follow your project, but for now, there is a clause from the beta feedback program that me and my company deem too intrusive to subscribe.

JDiLenarda avatar Sep 22 '23 10:09 JDiLenarda

Hi @colombod @JDiLenarda , any new update about downgrade version of dotnet to expand limit for this ? I saw a new opensource implementation with same idea : https://github.com/jowsy/bim-net-interactive

chuongmep avatar Feb 17 '24 06:02 chuongmep

The core .NET Interactive package (which includes ProxyKernel infrastructure) now targets Netstandard 2.0.

https://www.nuget.org/packages/Microsoft.DotNet.Interactive

jonsequitur avatar Apr 03 '24 23:04 jonsequitur

Thank you for everyone helped , it can going now !

chuongmep avatar Apr 04 '24 16:04 chuongmep