Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1 REPLY 1
Reply
Message 1 of 2
shricharana_bharadwaj
239 Views, 1 Reply

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

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.

Labels (3)
1 REPLY 1
Message 2 of 2

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?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report