AutoCAD Electrical Forum
Welcome to Autodesk’s AutoCAD Electrical Forums. Share your knowledge, ask questions, and explore popular AutoCAD Electrical topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Api Question/Problem

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
176 Views, 3 Replies

Api Question/Problem

I am trying to use "WD_RETAG_UPDATE_NOPROMPTS" API to retag all of the components on the current drawing without being prompted to update the rest of the drawings in the project list. So i tried this:

(c:wd_retag_update_noprompts 1 nil)

The problem is i am getting a "update other drawings" dialog box. I am trying to use this with a batch program so this dialog is killing me here. What am i doing wrong?

I am using ACAD E 2006.
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous


Here is the API doc from on line help for this
function:

 



(c:wd_retag_update_noprompts options
ent_lst)


Replaces obsolete functions wd_update_circ_noprmpts
and wd_retag_comp.


Re-tag schematic component(s) on current dwg or
across active project.


"options" = 1's bit to do
dwg-wide retag update without asking if okay
, =0 user prompt to select
components to retag, user prompted for okay to check other dwgs in project for
related children (unless bit 32 set).


"options" = 2's
color=#0000ff>also do project wide retag update without asking if
okay
.


"options" = 4's bit set = DESCx was changed on parent
and nothing else.


"options" = 8's bit set = DESCx changed on parent
along with TAG, CAT, or something else significant.


"options" = 16's bit set = processing/updating CHILD
cross-refs only (no retag).


"options" = 32's bit set = (with 1's bit set) -
suppress child check on other dwgs of project.


"options" = 64's bit set = (with 1's bet set) -
suppress project child "Now/Later" dialog, do "Now".


"ent_lst" = (with 1's bit set), nil=do all components
on dwg, OR else do ents passed in this argument. Can be single entity name,
entity handle, list of entity names, list of entity handles, or selection
set.


So, I think you need both the 1's bit set and the
2's bit set in the first argument. Give this a try...
(c:wd_retag_update_noprompts 3 nil)  where the 3=1's bit + 2's bit set. Let
me know if it still doesn't give you the results you're looking
for.

 

thanks!

Nate.

 

 

I am trying to use
"WD_RETAG_UPDATE_NOPROMPTS" API to retag all of the components on the current
drawing without being prompted to update the rest of the drawings in the project
list.  So i tried this:

(c:wd_retag_update_noprompts 1
nil)

The problem is i am getting a "update other drawings" dialog
box.  I am trying to use this with a batch program so this dialog is
killing me here.  What am i doing wrong? 

I am using ACAD E
2006.
Message 3 of 4
Anonymous
in reply to: Anonymous

Thank You. That solved my problem.
Message 4 of 4
Anonymous
in reply to: Anonymous

Nate,

Does the options bits 1 & 3 work automatically to retag all sheets, or does it merely retag the open sheet and fix the children and all cross-references on all pages. What I would like is a single API call to re-tag the whole project, without prompts and to update all children and cross-referencing. Much like the wire label api, which doesnt require me to open each page and perform the function.

Thanks,

Dean Janes

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost