Load lisp file from vb.net resource

Load lisp file from vb.net resource

bahman.jf.68
Advocate Advocate
621 Views
0 Replies
Message 1 of 1

Load lisp file from vb.net resource

bahman.jf.68
Advocate
Advocate

Hi all,

I have added a lisp file to a vb.net project and I need to load it in autocad by Initializing DLL, Do you think it's possible?

Actually I already have done like it to call image from resource as a tab button :

 

ribbonbutton1.Image = getBitmap(My.Resources.img12)

Public Function getBitmap(ByVal image As Bitmap) As BitmapImage
            Dim stream As New MemoryStream()
            image.Save(stream, ImageFormat.Png)
            Dim bmp As New BitmapImage()
            bmp.BeginInit()
            bmp.StreamSource = stream
            bmp.EndInit()

            Return bmp
        End Function

 

 

And I don't know how I can accomplish the same way with .lsp file.

0 Likes
622 Views
0 Replies
Replies (0)