Problems with dcl-control-getproperty from forms

Started by Peter2, January 04, 2017, 09:32:33 AM

Previous topic - Next topic

Peter2

I have a lisp which calls a project, loops through all forms in the project and displays them. It works fine, but it crashes when it finds the tabs of a tab-strip. Any ideas to avoid it?

Code (autolisp) Select

(defun c:odcl_printscr ()
    (if projektdatei
        (setq projektdatei (getfiled "ODCL-Datei wählen" (strcat (vl-filename-directory projektdatei) "\\") "odcl" 0))
        (setq projektdatei (getfiled "ODCL-Datei wählen" "c:\\" "odcl" 0))
    )
    (setq projekt (dcl-project-load projektdatei T (vl-filename-base projektdatei)))

    ; Titelzeilen
    (setq inhalte nil inhalte (dcl-Project-GetForms projekt))
    (if (and inhalte (dos_dirp outputpfad2))
        (progn
            (foreach form inhalte
                (if (dcl-Control-GetProperty form "(Name)") ;; -->> this line will crashes when the form is a tab-strip
                    (progn
                        (setq name (dcl-Control-GetProperty form "(Name)"))
                        (dcl-form-show (eval (read (strcat projekt "/" name))))
                        (princ (strcat name ))
                    )
                )
            )
        )
    )
    (princ)
)


Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

owenwengerd


Peter2

Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10