[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 86: htmlspecialchars(): Charset "utf8-bin" is not supported, assuming UTF-8
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 151: htmlspecialchars(): Charset "utf8-bin" is not supported, assuming UTF-8
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 152: htmlspecialchars(): Charset "utf8-bin" is not supported, assuming UTF-8
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/user.php on line 329: htmlspecialchars(): Charset "utf8-bin" is not supported, assuming UTF-8
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4130: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4130: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4130: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4130: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009)
DesignCAD DC Toolkit FileLinker Forum • COM-Schnittstelle
Seite 1 von 1

COM-Schnittstelle

Verfasst: Montag 24. November 2025, 21:45
von LazarusPython
Hallo und guten Abend,

kennt sich hier jemand mit der COM-Schnittstelle aus? Ich habe etwas Erfahrung mit Lazarus und Python, wollte das jetzt auf Nelson anwenden.
https://nelson-lang.github.io/nelson-we ... RFACE.html

Allerdings liefert der Aufruf von DcApp = actxGetRunningServer("DesignCAD.Application") kein COM.DesignCAD_Application zurück (analog so wie in dem Link das Beispiel mit dem Excel-Zugriff COM.Excel_Application liefert) sondern nur COM

Das Ableiten von DcDoc = DcApp.ActiveDocument, DcPts = DcDoc.CmdPoints usw. funtioniert. Der Befehl invoke(DcPts, 'SetCommandPoint' 0,0,0) funktioniert auch. invoke(DcPts, 'GetUserPoint', x,y,z) funktioniert nicht. Hier shlägt wohl die Typumwandlung nach Variant fehl. x,y und z werden vorher mit 0 initialisiert.

Kennt sich jemand damit aus?

Viele Grüße und noch schönen Abend

LazarusPython

Re: COM-Schnittstelle

Verfasst: Donnerstag 27. November 2025, 07:17
von LazarusPython
Guten Morgen,

gibt es eine neuere DOKU zur COM-Schnittstelle? Ich habe gerade nur devguide12.pdf bei mir gefunden. Delphi 4 und 5...

Wird denn bei IMSI-Design überhaupt Wert auf die COM-Schnittstelle gelegt? Wenn man damit programmieren möchte, sollte man da eher auf TurboCAD gehen?

Viele Grüße
LaPy