2016-09-19 12:55 UTC
Hi,
Am trying to run some simple code when user clicks OK but it crashes AutoCAD. The OK button should run some code and close the form:
(defun c:CM_Admin/frmCMAdmin/txtButton_OK#OnClicked (/)
(dcl-Form-Close CM_Admin/frmCMAdmin)
(if logo_name
(progn
(insert_logo logo_name)
)
)
)
Sorry for these very basic questions but not getting very far.
Am trying to run some simple code when user clicks OK but it crashes AutoCAD. The OK button should run some code and close the form:
(defun c:CM_Admin/frmCMAdmin/txtButton_OK#OnClicked (/)
(dcl-Form-Close CM_Admin/frmCMAdmin)
(if logo_name
(progn
(insert_logo logo_name)
)
)
)
Sorry for these very basic questions but not getting very far.