Topic
9 replies Latest Post - ‏2012-12-18T21:14:17Z by josiah820
josiah820
josiah820
131 Posts
ACCEPTED ANSWER

Pinned topic Deleted Export

‏2012-12-17T15:33:33Z |
Hi,
I had a question. I am currently trying to create a way to export objects from DOORS, but i want to make the objects which had been deleted export in red, or another color, to show that they were deleted. Is there a way to do this? Like maybe a "deleted" attribute or something of that sort?
Thanks!
Updated on 2012-12-18T21:14:17Z at 2012-12-18T21:14:17Z by josiah820
  • llandale
    llandale
    2735 Posts
    ACCEPTED ANSWER

    Re: Deleted Export

    ‏2012-12-17T20:14:10Z  in response to josiah820
    Never tried it.

    You could add an enumerated DXL-Attribute "IsDeleted" with two enumerations, "Deleted" and "". Associate "Red" with "Deleted". The Attr-DXL code is trivial:
    • if (isDeleted(obj)) //
    • then obj."IsDeleted" = "Deleted"
    • else obj."IsDeleted" = ""
    I think then you can modify the properties of the "main" column to have color based on attribute "IsDeleted". I wonder if that will export.

    -Louie
    • josiah820
      josiah820
      131 Posts
      ACCEPTED ANSWER

      Re: Deleted Export

      ‏2012-12-17T20:21:25Z  in response to llandale
      Good idea! I forgot about that! I'll play around with it and see what I can do. Thanks for your help!
      • josiah820
        josiah820
        131 Posts
        ACCEPTED ANSWER

        Re: Deleted Export

        ‏2012-12-17T20:46:38Z  in response to josiah820
        Oh, I forgot. Is there any way to make the deleted objects visible using DXL? I know there's an option in a menu, but I'm trying to streamline it, so is there a DXL command that will make the deleted objects viewable?
        Thanks!
        • mcnairk
          mcnairk
          97 Posts
          ACCEPTED ANSWER

          Re: Deleted Export

          ‏2012-12-17T20:53:32Z  in response to josiah820
          showDeletedObjects false

          Ken.
          • mcnairk
            mcnairk
            97 Posts
            ACCEPTED ANSWER

            Re: Deleted Export

            ‏2012-12-17T20:54:09Z  in response to mcnairk
            Duuh:

            showDeletedObjects true
            • llandale
              llandale
              2735 Posts
              ACCEPTED ANSWER

              Re: Deleted Export

              ‏2012-12-17T22:36:58Z  in response to mcnairk
              Do not do this in a layout or attr-DXL.
        • SystemAdmin
          SystemAdmin
          3180 Posts
          ACCEPTED ANSWER

          Re: Deleted Export

          ‏2012-12-17T21:07:23Z  in response to josiah820
          Not sure if you're trying to export to MS Word or maybe MS Excel, but if it's MS Excel then maybe have a look at Michael Sutherland's "Enhanced Export to Excel" DXL script which you can download from http://www.galactic-solutions.com/GalacticDownloads.htm.

          This has an option to add color to deleted objects amongst many other excellent export options to MS Excel. It's open code so you can modify to suit.


          Paul Miller,
          Melbourne, Australia
          • josiah820
            josiah820
            131 Posts
            ACCEPTED ANSWER

            Re: Deleted Export

            ‏2012-12-18T21:14:17Z  in response to SystemAdmin
            That Enhanced Export to Excel was exactly what I needed. Thanks!
    • Peter_Albert
      Peter_Albert
      250 Posts
      ACCEPTED ANSWER

      Re: Deleted Export

      ‏2012-12-18T08:45:58Z  in response to llandale
      Alternatively, if exporting to MS Word, you could probably set the "Paragraph Style" of the deleted Objects to a specific style which has to be defined in the template.

      Regards,

      Peter