@morisdov said:
Hello Leonardo,
I created a few for customers.
-
Using visual studio create a new project type of a windows class library. In your dll expose public methods to be accessed from sketchup.
-
download from the web win32api.so and copy it into Sketchups Plugins folder. follow the examples on http://ruby-doc.org/docs/ProgrammingRuby/html/lib_windows.html
Start slowly and advance in steps.
Moris
Actually what I had thought was to develop something directly in VB.NET that "converse" with Sketchup.
I add in my project the COM "Sketchup 2.0 Type Library" which gives me access to the API commands SketchUp.
I tried using the code that follows, but it always shows an error saying that the class is not registered.
Imports SketchUp
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim app As SkpApplication = New SketchUp.SkpApplication
Dim doc As SkpDocument
doc = app.ActiveDocument
End Sub
End Class