PDA

View Full Version : Dimadvisor Off / Re-store


Rosario Holland
12-11-2006, 05:28 AM
Who knows the command to switch dimadvisor off at start-up?
commands DIMADVISOR OFF or DIMADVISOR_OFF does not work.
2nd question: How can I remove RE-STORE command from file-menu.
Regards,
Arthur

Yannick Rouat
12-11-2006, 06:17 AM
Hello


You can enable/disable the dimadvisor by the command :


enable_dam / disable_dam


For the RE-STORE command, you have to redefine the macro-menu sm_update_store_file and delete the concerned line


DEFINE Sm_update_store_file
CURRENT_MENU Sm_file_1_layout_name
MENU Colo0 Bcol0 '' '' BOX 7 1 13 2
INQ_ENV 23
IF (Store_file_flag)
MENU Colo0 Bcol1 (DGETTEXT 'me10mac' 'STORE')
'Set_sys_store_last_type "MI" Sm_update_store_file Store_all' 7 1
MENU Colo1 Bcol4 (DGETTEXT 'me10mac' 'ALL')
'DEFINE Store_file_flag 0 END_DEFINE Sm_update_store_file' 7 2
MENU Menu_slot_highlight (Sys_store_last_type='MI') (DGETTEXT 'me10mac'
'MI') 'Set_sys_store_last_type "MI" Sm_update_store_file STORE MI ALL' 8
1
MENU Menu_slot_highlight (Sys_store_last_type='CompMI') (DGETTEXT
'me10mac' 'Comp MI')
'Set_sys_store_last_type "CompMI" Sm_update_store_file STORE ALL' 8 2
MENU Menu_slot_highlight (Sys_store_last_type='DXF') (DGETTEXT 'me10mac'
'DXF')
'Set_sys_store_last_type "DXF" Sm_update_store_file STORE DXF ALL' 9 1
MENU Menu_slot_highlight (Sys_store_last_type='DWG') (DGETTEXT 'me10mac'
'DWG')
'Set_sys_store_last_type "DWG" Sm_update_store_file STORE DWG ALL' 9 2
MENU Menu_slot_highlight (Sys_store_last_type='IGES') (DGETTEXT
'me10mac' 'IGES')
'Set_sys_store_last_type "IGES" Sm_update_store_file STORE IGES ALL' 10
1
MENU Menu_slot_highlight (Sys_store_last_type='DWF') (DGETTEXT 'me10mac'
'DWF')
'Set_sys_store_last_type "DWF" Sm_update_store_file STORE DWF ALL' 10 2
MENU Menu_slot_highlight (Sys_store_last_type='SVG') (DGETTEXT 'me10mac'
'SVG')
'Set_sys_store_last_type "SVG" Sm_update_store_file STORE SVG ALL' 11 1
MENU Menu_slot_highlight (Sys_store_last_type='VRML') (DGETTEXT
'me10mac' 'VRML')
'Set_sys_store_last_type "VRML" Sm_update_store_file STORE VRML ALL' 11
2
MENU Colo0 Bcol7 (DGETTEXT 'me10mac' 'Add fonts') 'ADD_FONTS' 12 1
MENU Colo0 Bcol7 (DGETTEXT 'me10mac' "'workfile'") 'DEL_OLD "workfile"'
12 2
************ CUT START ***************
MENU Colo0 Bcol1 (DGETTEXT 'me10mac' 'RE-STORE') 'Store_update' 13 1
************ CUT END ***************
ELSE
MENU Colo0 Bcol1 (DGETTEXT 'me10mac' 'STORE') 'STORE MI' 7 1
MENU Colo1 Bcol4 (DGETTEXT 'me10mac' 'PART')
'DEFINE Store_file_flag 1 END_DEFINE Sm_update_store_file' 7 2
MENU Colo1 Bcol0 (DGETTEXT 'me10mac' 'MI') 'STORE MI' 8 1
MENU Colo1 Bcol0 (DGETTEXT 'me10mac' 'Comp MI') 'STORE' 8 2
MENU Colo1 Bcol0 (DGETTEXT 'me10mac' 'DXF') 'STORE DXF' 9 1
MENU Colo1 Bcol0 (DGETTEXT 'me10mac' 'DWG') 'STORE DWG' 9 2
MENU Colo1 Bcol0 (DGETTEXT 'me10mac' 'IGES') 'STORE IGES' 10 1
MENU Colo1 Bcol0 (DGETTEXT 'me10mac' 'DWF') 'STORE DWF' 10 2
MENU Colo1 Bcol0 (DGETTEXT 'me10mac' 'SVG') 'STORE SVG' 11 1
MENU Colo1 Bcol0 (DGETTEXT 'me10mac' 'VRML') 'STORE VRML' 11 2
MENU Colo0 Bcol7 (DGETTEXT 'me10mac' 'Add fonts') 'ADD_FONTS' 12 1
MENU Colo0 Bcol7 (DGETTEXT 'me10mac' "'workfile'") 'DEL_OLD "workfile"'
12 2
END_IF
END_DEFINE

Rosario Holland
12-11-2006, 06:52 AM
"Dimadvisor off" works now; thanks!
Refering to re-store command:
There is no file "Sm_update_store_file in OS_Drafting_2006 directory.

Arthur

John Scheffel
12-11-2006, 12:27 PM
There is no file "Sm_update_store_file in OS_Drafting_2006 directory.
Sm_update_store_file is not the name of a file, it is the name of a macro stored in the compiled macro file hp_macro_t.mc. You cannot edit this file, but you can redefine the macro in one of your startup files which are loaded later. Inside Drafting enter the following on the command line:

SAVE_MACRO Sm_update_store_file

then enter a file name as prompted. This will save the macro in text form to a file. You can then modify the macro as Yannick indicated and copy it into one of your startup files.

Rosario Holland
12-12-2006, 11:54 PM
Thank you all, it works fine now.
Can you please inform me where I can get
that kind of info. There is no information in the
manuals.
regards,
Arthur

John Scheffel
12-13-2006, 10:10 AM
Unfortunately there isn't a comprehensive source for this kind of information. Much of it is knowledge gained over time which is why this forum is a good place to ask. There are many experienced people here.

Here are a few tips that might help.

Commands such as SAVE_MACRO are documented under Help, Prog Ref Guide. The manuals also contain a "Writing Macros..." guide which may help you learn more about macro programming.

In the classic UI you can often determine which command or macro is run by a menu button by entering EDIT_MACRO on the command line then clicking on the menu button. Once open in the editor you can actually modify and save the macros but it only affects the current session unless you save the modified macro to a file and reload it. The classic menus are also defined by macros as you can see from the example above.

The startup sequence for Drafting is contained in the startup.m file under the main install folder. This is a text file which lists many of the compiled macro files which are loaded.