Hallo Miteinander,
Bei Autosketch V10 gibt es offensichtlich die Möglichkeit Automatisierung mittels VBA zu betreiben. Zumindest ist eine "AutoCAD ActiveX and VBA Reference"-Hilfe Datei Teil der Installation. Dort wird zB unter
AppActivate Example
folgender Beispiel-Code angegeben:
----------------------------------------------------------------------------------
Public WithEvents ACADApp As AcadApplication ' Use with Application Event Examples
Sub Example_AcadApplication_Events()
' This example initializes the public variable (ACADApp), which will be used
' to intercept AcadApplication Events
'
' The VBA WithEvents statement makes it possible to intercept a generic object
' with the events associated with that object.
'
' Before you will be able to trigger any of the AcadApplication events,
' you will need to run this procedure.
' We could get the application from the ThisDocument object, but that would
' require having a drawing open, so we get it from the system.
Set ACADApp = GetObject(, "AutoCAD.Application.17")
End Sub
----------------------------------------------------------------------------------
wenn ich das allerdings in einem Excel 2003 Makro so einbaue, dann bekomme ich die Fehlermeldung:
"Laufzeitfehler '429': Objekterstellung durch ActiveX-Komponente nicht möglich"
Nun denke ich, dass man eventuell die Objekte im Excel VBA erst bekannt machen muss allerdings weiß ich nicht welche dll ich da einbauen müsste? Gibt’s eine Hilfe/FAQ für entsprechendes Thema, oder Beispielcodes …?
Hat schon mal wer Autosketch mit VBA gesteuert und wenn ja hat wer Beispiele?
Dank im Voraus,
Grüße,
EcuDevel
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP