The syntax is
(c:wd_import_scratch_mdb_doit fnam dwgix table_lst
options)
Parameters
Description
fnam
Full path name of AcadE project database file (nil =
active proj).
dwgix
The "DWGIX" field in the target table(s) to identify
which records go with the current dwg (the DWGIX field value in FILETIME
table).
table_lst
List of tables to process, ex: (list "COMP" "TERMS"
"PNLCOMP").
options
For future use (set to
0).
When the fnam is input use "/" rather than
"\" in the path.
The dwgix is the number in the project database
assigned to the drawing you want to process. So you want the dwgix for the
active drawing. I believe you can get it with these API calls.
(wd_mdb_wdp2ix_ix
(c:wd_is_cur_dwg_in_proj))
(c:wd_is_cur_dwg_in_proj) returns hte active
drawing's place in the project. (wd_mdb_wdp2ix_ix position) takes that place and
finds the dwgix from the project database. So here is an example.
(c:wd_import_scratch_mdb_doit "c:/my path/my
project.mdb" (wd_mdb_wdp2ix_ix (c:wd_is_cur_dwg_in_proj))
(list "COMP" "TERMS" "PNLCOMP")
0)
Pat Murnen
I'm
trying to take advantge of the wd_import_scratch_mdb_doit API call but can't
get it to work.
This is what I've tried so
far...
(c:wd_import_scratch_mdb_doit "PathAndFilename.mdb" (list
"*") (list "COMP" "TERMS" "PNLCOMP") 0)
I'm confused with the
dwgix argument. I want to update all drawings/all
tables.
Anyone?? :)