Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

mapkey for filling table cell

jr_tyco

New member
hello


i ve trouble for making a mapkey to fill table cells with predefined value (ie &todays_date)


here the mapkey sequence


;~ Select `main_dlg_cur` `Sst_bar.filter_list`1 `23_Table Cell_SEL FILTER`;\


@PAUSE_FOR_SCREEN_PICK;~ Activate `main_dlg_cur` `Edit.psh_dwg_props`;\


~ Update `note_text_asynch` `txt_note_text``&todays_date`\


~ Activate `note_text_asynch` `psh_ok`;


the sequence does not work


anyone has experienced the same problem?
 
Here is what I use to change an existing text string to &todays_date. It works for any text string whether it is in a table, a note, a symbol, etc. It won't fill in and empty table cell though. Don't know if this will help or not.

mapkey da @MAPKEY_NAMEModify text string in drawing to todays date;\
mapkey(continued) @MAPKEY_LABELDate;%mt;@PAUSE_FOR_SCREEN_PICK;{1:&todays_date };\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdObjActUI.dwg_sr`0

mapkey mt @MAPKEY_LABELMod Text line;#MODIFY;#TEXT;
 
Why don't you just put &todays_date in the drawing format. That way it will automatically fill in for you with out running a mapkey.


DB
 
A wee trick especially for jr_tyco



When you create your drawing border format, put text in ALL cells even
if it is just a SPACE character so the cells only appear to be empty,
that way you can always pick it to edit the text as per dr_gallup.



My borders have &todays_date in the format but I use a method
equivalent to dr_gallup's so I can update it when I modify the drawing.



There is also a relatively new config.pro setting



todays_date_note_format



to control the format of todays date.









DB
 

Sponsor

Back
Top