|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
#1
|
||||
|
||||
plot command overtakes update TB command??!!
Hi,
I'm creating a fast pdf-batch-plot macro, and here's the core of it: Code:
(AM_LOAD_DRAWING :FILENAME "C:/local/test_batch_anno/56301401-A-1-DRAWING_2D_aip_dwg_annotation.mi") (sd-call-cmds(ndm_am_update_tb)) (sd-call-cmds(AM_PLOT_EX :PLOT_STYLE :PDF :multisheet :yes :destination_browse "C:/local/test.pdf" :plot :YES)) Thanks! Jaap |
#2
|
||||
|
||||
Re: plot command overtakes update TB command??!!
Try this and see if it works.
Code:
(AM_LOAD_DRAWING :FILENAME "C:/local/test_batch_anno/56301401-A-1-DRAWING_2D_aip_dwg_annotation.mi") (sd-call-cmds(ndm_am_update_tb complete)) (sd-call-cmds(AM_PLOT_EX :PLOT_STYLE :PDF :multisheet :yes :destination_browse "C:/local/test.pdf" :plot :YES))
__________________
Tom Kirkman Creo Elements/Direct 20.1 Dell Precision 3581 https://www.o-i.com |
#3
|
||||
|
||||
Re: plot command overtakes update TB command??!!
Thnx for the tip... sorry, doesn't work. But it got me thinking, and I used the Recorder tool to make this .rec-file:
Code:
AM_LOAD_DRAWING cd "C:/local/test_batch_anno" :FILENAME "56301460-A-1-DRAWING_2D_aip_dwg_annotation.mi" ndm_am_update_tb AM_PLOT_EX :PLOT_STYLE :PDF :multisheet :yes :destination_browse cd "C:/Users/JKramer/AppData/Local/Temp" cd "C:/local" "C:/local/test.pdf" :plot It really seems that the Update TB allows the system to perform other commands before it is finished... |
#4
|
||||
|
||||
Re: plot command overtakes update TB command??!!
This is not the most elegant solution, but give it a try.
Code:
(AM_LOAD_DRAWING :FILENAME "C:/local/test_batch_anno/56301401-A-1-DRAWING_2D_aip_dwg_annotation.mi") (sd-call-cmds(ndm_am_update_tb)) (sleep 5) (sd-call-cmds(AM_PLOT_EX :PLOT_STYLE :PDF :multisheet :yes :destination_browse "C:/local/test.pdf" :plot :YES))
__________________
Tom Kirkman Creo Elements/Direct 20.1 Dell Precision 3581 https://www.o-i.com |
#5
|
||||
|
||||
Re: plot command overtakes update TB command??!!
I answered my own question, this does not work.
__________________
Tom Kirkman Creo Elements/Direct 20.1 Dell Precision 3581 https://www.o-i.com |
#6
|
||||
|
||||
Re: plot command overtakes update TB command??!!
Thnx, yes, I tried that, too :-)
|
#7
|
||||
|
||||
Re: plot command overtakes update TB command??!!
oh my.... just deiscovered that I asked the same question before years ago
The thread is here: http://www.cocreateusers.org/forum/showthread.php?t=6919 Oops, I feel quite embarrased... The conclusion then was that the update Titleblock seems to be an asynchronous command, indeed. I'm taking a look at Drafting now... Jaap |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|