Question
I can't get a method to be activated from a VLX compile using the separate name space argument, but I can with a lsp or fas file?
Answer
What is happening is that ObjectDCL creates a global variable for each control and form, each named using the "
A simple example is shown below.
; import the ObjectARX functions into this separate name space (vl-arx-import "objectdcl.arx") (defun c:test10 () (Odcl_LoadProject "Test" T) ; in a seperate namespace it is important to use quotes not the VarName variable for any Odcl_Form_... calls. (Odcl_Form_Show "Test" "Test") );end defun (defun c:test_TextButton1_OnClicked () (Odcl_Control_SetProperty (vl-doc-ref 'test_test_Ctrl1) "Text" "New Text goes here") ;the above line works in a vlx the same way an un-compiled lisp. );end defun
Knowledge Base
FAQ