#1
|
|||
|
|||
Call dialog from defun
Hi to all!
I am ashamed a bit but I do not know how to start a dialog (sd-defdialog) from a normal defun .... Code:
(sd-defdialog 'EsplodiBOMDlg :dialog-title "Sel. Gruppo per BOM" :variables '( ;(ASSY :value-type :assembly :modifies :instance ;:title "Gruppo") (ASSY :value-type :assembly :modifies :nil :initial-value (sd-inq-curr-part) :title "Gruppo") (LEVEL_TYPE :title "Livello" :range ("Multilivello" "Primo Livello" "Custom") ) ;; end LEVEL_TYPE (OUTPUT_TYPE :title "OutPut" :range ("TabView" "File TXT" "File XLS" "Custom") ) ;; end OUTPUT_TYPE ) :local-functions '( (doit () (let (NomeParte) (setf NomeParte (TITUS-ObjName ASSY)) (EsplodiBOM NomeParte LEVEL_TYPE OUTPUT_TYPE) ) ) ) :ok-action '(doit) :toolbox-button nil ) (defun menu-action-on-assy-bom (obj name) ;(oli::sd-display-message "assemblato") ; lancia esporta bom ;(setf *objsel* (BrowserNode-objPath obj)) (EsplodiBOMDlg) ) Can you help me? Device |
#2
|
|||
|
|||
Re: Call dialog from defun
Under ASSY you only want assemblies but you want to make a part active This doesn't work. Use :value-type art-assembly or select the assy of the current part.
|
#3
|
||||
|
||||
Re: Call dialog from defun
It's been a while, but IIRC, you may want to call the dialog via the sd-call-cmds helper (see IKIT).
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
#4
|
|||
|
|||
Re: Call dialog from defun
ok, with sd-call-dialog it's work fine!!!
thanks to all!! Device |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|