• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD P&ID

    Reply
    Distinguished Contributor
    craig.wood
    Posts: 133
    Registered: ‎02-20-2012

    "No Target" in annotations due to Batch Script

    472 Views, 13 Replies
    10-25-2012 06:10 PM

    I am running a batch script on a project currently consisting of some 330+ P&IDs. The batch script seems to function just fine, but leaves one side-effect. The annotations are left graphically displaying "No Target", as if the drawing wasn't linked to the database. When I manually open a drawing, the annotations will update and properly display, but they will not update unless I manually open that drawing. This means that if I run a batch script on all of my drawings, and then run a batch plot, all of the annotations display "No Target" instead of their true values. Is there any way to get them to update properly with some command that I can throw into my batch script, or is there any other way around this?

     

    By the way, I've even tried adding "synchstyles" into my batch script, but with no differing results.

     

    I've attached an example of what I am getting as a result on any given pdf.

     

    Thanks for any help you can provide,

    Craig

    Please use plain text.
    Valued Mentor
    ybogdanov
    Posts: 338
    Registered: ‎07-07-2011

    Re: "No Target" in annotations due to Batch Script

    10-26-2012 04:19 AM in reply to: craig.wood

    Try to use "Resave All Project Drawings". Press right click on project in the navigation tree in project manager.

     

    -----------------------------------------------------------
    Yury Bogdanov
    ASIDEK(Grupo CT)
    Barcelona (Spain)
    Please use plain text.
    Distinguished Contributor
    craig.wood
    Posts: 133
    Registered: ‎02-20-2012

    Re: "No Target" in annotations due to Batch Script

    10-26-2012 08:32 AM in reply to: ybogdanov

    I just tried doing what you suggested, but it did not seem to update the annotations back to normal.

     

    Thank you for the suggestion though!

     

    Craig

    Please use plain text.
    Active Member
    Posts: 8
    Registered: ‎05-18-2009

    Re: "No Target" in annotations due to Batch Script

    10-28-2012 06:23 AM in reply to: craig.wood

    Hello Craig,

     

    I hope the following will work for you, it's a lot of work but I think the only way.

     

    First of all, it will be fine to have a backup of the project.

     

    Create a new project from the original project

     

    Be sure that you have all the properties you have in the new project like in the old one.

    Remove the drawings from the project

    Add the drawings to the new project

     

    Hope this works for you

    Hans Knol
    CADTEAM

    hans@cadteam.nl
    www.cadteam.nl
    Please use plain text.
    Member
    hung.tam
    Posts: 3
    Registered: ‎07-20-2011

    Re: "No Target" in annotations due to Batch Script

    10-29-2012 08:58 AM in reply to: craig.wood

    What do the script does? How about running the script one more time with just synchstyles in the script?

     

    By the way, i have updated my plant tools. You can use to batch synchstyles a bunch of drawings. Because it opens the drawing from the project manager, it will update the data properly.

    http://lazcad.com/download

     

    Please use plain text.
    Product Support
    Posts: 236
    Registered: ‎03-05-2010

    Re: "No Target" in annotations due to Batch Script

    10-29-2012 09:37 AM in reply to: craig.wood

    Hi,

     

    As you have said, the "No Target" tags usually indicate that the connection to the database has been lost so it is goot that manually opening the drawings re-establishes teh connection.

     

    I suspect that this is something that you will need to do so perhaps the open/close of the drawing can be included as part of your script?

     

    Thanks,
    Dan


    Dan Scales
    Product Support Specialist
    Autodesk, Inc.


    Please use plain text.
    Distinguished Contributor
    craig.wood
    Posts: 133
    Registered: ‎02-20-2012

    Re: "No Target" in annotations due to Batch Script

    11-07-2012 10:37 AM in reply to: DanScales

    Thanks everyone for the suggestions. I've tried many of the offered solutions, but nothing seems to be a viable solution. And I don't want to have to backup/remove/add all of my 350 (now) drawings to a new project everytime I run a batch script, so I did not try that one.

     

    The script that I ran was very simple, in fact this was all it did:

     

    synchstyles
    rea
    tilemode
    0
    Zoom
    Extents
    qsave

    I am working on getting the LazCadPlantBrowser to run correctly, as I have high hopes for it. I'll see if it offers any fixes and let everyone know.

     

    Thanks,

    Craig

    Please use plain text.
    Distinguished Contributor
    craig.wood
    Posts: 133
    Registered: ‎02-20-2012

    Re: "No Target" in annotations due to Batch Script

    11-07-2012 10:40 AM in reply to: hung.tam

    Just letting you know that I posted my error message on your site. I'm sure I'm doing something wrong.

     

    FYI...I am using the 2013 version on my 2013 P3D installation.

     

    http://lazcad.com/07/30/laz_plant_browser_batch_command

     

    Thanks,

    Craig

    Please use plain text.
    *Expert Elite*
    Rave.Tam
    Posts: 166
    Registered: ‎05-19-2011

    Re: "No Target" in annotations due to Batch Script

    11-07-2012 05:12 PM in reply to: craig.wood

    Did you unblock the ZIP file before you extract the file? 

     

    If my post answers your question, please click the "Accept as Solution" button.

    Check out my blog http://lazcad.com
    Please use plain text.
    Distinguished Contributor
    craig.wood
    Posts: 133
    Registered: ‎02-20-2012

    Re: "No Target" in annotations due to Batch Script

    11-07-2012 05:21 PM in reply to: Rave.Tam

    Yes, I made sure to unblock it under its properties before extracting. I even checked the dll file to make sure it wasn't still being blocked.

    Please use plain text.