How to use AutoLISP functions created in C# in AutoLISP when using visual studio?

How to use AutoLISP functions created in C# in AutoLISP when using visual studio?

shricharana_bharadwaj
Enthusiast Enthusiast
387 Views
1 Reply
Message 1 of 2

How to use AutoLISP functions created in C# in AutoLISP when using visual studio?

shricharana_bharadwaj
Enthusiast
Enthusiast

Hi, 

Because of a problem I'm having with importing blocks in C#, I wanted to try importing the blocks in AutoLISP and then call the c# function to work with the imported blocks.

I'm using Visual Studio Code for AutoLISP. 

I'm loading the required dll into AutoCAD and then attaching VS Code to the project to debug the lisp file. When I run the command, I'm getting "no function definition" error even with the function defined in C# and dll loaded.

Am I missing something? 

I remember once the dll loaded, the function showing up with blue highlights same as predefined functions when using vlide. 

 

shricharana_bharadwaj_0-1722841718147.png

 

shricharana_bharadwaj_1-1722841737040.png

 

 

Thanks in advance for any help.

0 Likes
388 Views
1 Reply
Reply (1)
Message 2 of 2

shricharana_bharadwaj
Enthusiast
Enthusiast

ok, so the dll wasn't being loaded or wrong dll was being loaded. So the function is now working. But,

Still it doesn't show in VS Code as a known function as it does in vlide.

Should it be added manually in VS Code or something?

0 Likes