#1
|
|||
|
|||
add "rigidcable" module question
Dear everybody,
I have one problem about “RIGIDCABLE”. I add “RIGIDCABLE” into module dialog. (Open file: C:\Program Files\CoCreate\OneSpacemodeling 15.50b\personality\sd_customize\all_modules.dat, Add text to this file as follow: ("RigidCable" :label "RigidCable" :act-fun (mei::activate-ric) :deact-fun (mei::deactivate-ric) :startup :no ) So, in Module dialog, “RigidCable” have exist as picture-1 ---------------------------------------------------------------------------- i hope that use it to activate and deactivate ‘RIGIDCABLE’ module. I edit “sd_customize” file. C:\Program Files\CoCreate\OneSpaceModeling 15.50b\personality\sd_customize\sd_customize Add text as follow picture-2 (use-package li) (require '"c:/Program Files/CoCreate/RigidCableAdvisor15/postproc.lsp") (defun activate-ric() (if (boundp 'SoCo_CABLES::sococabledir) (progn (sd-add-application-button "RigidCable" :activateaction '(sd-switch-main-task-menu "RigidCable") :cleanupaction '(sd-switch-main-task-menu "SolidDesigner")) (sd-module-activate "RIGIDCABLE") (SoCo_CABLES::create_rigidcable_main_menu) ) (progn (cd "c:/Program Files/CoCreate/RigidCableAdvisor15") (load "startup.lsp") ) ) ) (defun deactivate-ric() (if (sd-module-deactivate "RIGIDCABLE") (progn (sd-destroy-main-task-menu "RigidCable") (sd-remove-application-button "RigidCable") (return-from deactivate-ric T) ) ) ) ----------------------------------------------------------------------------------- Now, I can activate RIGIDCABLE module through check “RigidCable” button. But I can’t deactivate this module through un-check “RigidCable” button. can you tell me why? Thanks very much! Last edited by stevenyuan; 11-21-2007 at 10:53 PM. |
#2
|
||||
|
||||
Re: add "rigidcable" module question
Just a tip for writing code here in that forum:
use [code] and [/code] Code:
(defun deactivate-ric() (if (sd-module-deactivate "RIGIDCABLE") (progn (sd-destroy-main-task-menu "RigidCable") (sd-remove-application-button "RigidCable") (return-from deactivate-ric T) ) PHP Code:
have a look to: vB Code List
__________________
Last edited by Wolfgang; 11-28-2007 at 09:41 AM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|