Announcement

Collapse
No announcement yet.

Merge Two HTML Reports - Navis & Word

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Merge Two HTML Reports - Navis & Word

    Merging a Navisworks report with a word doc report

    We'reusing nwd's and xml's to share clash & viewpoint reports you'd normal.



    ButI also need to create a report as a deliverable document - this is really arecord copy of it, a deliverable - something for pm's to wave in the face ofthose not pulling their weight, for lawyers & those who pay the bills topoint at if things go sour.


    Yes,we could just pdf the html report, and forget about it. (gets done sometimes)

    Iwould like to take our report template in word which includes all our QA &internal report standards.

    Revision& date information
    Whatfiles were included in the model review.
    Whatall the acronyms mean
    Whoauthored it & who checked it.
    Notesabout what was in the scope of the clash tests or review
    Stageand suitability of the information contained in the reports.

    Mywork flow I'm looking at is:

    1. Create report in word as company standrd & save as HTML File (word.html)
    2. Export Navisworks report as HTML (Navis.html)
    3. Copy everything between and excluding <Head> </Head> from navis.html. Paste this just before the end of the word.html "</Head>" and save.
    4. Bobs your uncle!


    Problems:
    1. This is fine for me because I'm not scared of hands dirty. It doesn't scale and I cant expect anyone else to do it. ]
    2. There must be a simpler way - ideally without specialist software


    Isthere:
    • batch utility that might do this for me?
    • A .bat script that I could run to merge the files
    • Is my basic knowledge of word holding me back? is there something really simple that I'm missing?!?!






    ----------
    That he is mad, ’tis true. Tis true, ’tis pity,
    And pity ’tis ’tis true

    #2
    Dude, .pdf the report and be done with it!

    If your branding people are getting their undergarments knotted have them learn the trickery-pokery or (failing that) transpose it all manually.

    That would be my first response.

    But I hear you, and yes, I share a similar desire to do the same.

    There are certainly means to parse a html (I believe Konrad has been with his Mandrill work on warnings) - which (once learnt) could get the pertinent information into Word via .csv to run a mail merge.

    But it's that parsing part that's the hurdle.

    Comment


      #3
      Ha yes just printing the pdf is the way to go for the moment. I may just two merge pdfs in acrobat but having the html file is useful

      It's not branding people, more an audit trail - being able to recording what's in the report to minimize the amount of pain to recreate what's being tested in the first place.


      edit:
      *accidentally a word.
      Last edited by Raff; January 23, 2017, 02:26 PM.

      ----------
      That he is mad, ’tis true. Tis true, ’tis pity,
      And pity ’tis ’tis true

      Comment


        #4


        So you can insert a html page into a word doc, problem is for a view point report, it forces the table to fill the whole page , which means the image fills a full page.

        guess it'll do the job until someone smarter than me makes a .bat file to merge html files... they'll just have to live with 300+ page reports & some formatting is lost too

        (insert > object > text from file )
        Attached Files

        ----------
        That he is mad, ’tis true. Tis true, ’tis pity,
        And pity ’tis ’tis true

        Comment


          #5
          If I find some time I'm going to have to give this go.

          Comment


            #6


            Hope you haven't spent much time on it yet snowy =)

            ----------
            That he is mad, ’tis true. Tis true, ’tis pity,
            And pity ’tis ’tis true

            Comment


              #7
              Originally posted by Raff View Post
              Hope you haven't spent much time on it yet snowy =)
              Nah consumed by Dynamo mostly (or at least thinking about what I want to do with it).

              A quick squiz of that though and reckon I completely rewrote your query into my take on things*, so yeah, merge away and leave me be with my own self-inflicted torture!


              *I want to strip out all the in-line not-css style "stuff" (preformatted by Autodesk when creating the export) and get the values out of the html. But even writing that down makes me think skipping the html and getting at the innards of Navisworks might be a more sensible route as it won't (shouldn't) have all the fluffy html styles guff masking the good bits.

              Comment


                #8
                Originally posted by snowyweston View Post

                *I want to strip out all the in-line not-css style "stuff" (preformatted by Autodesk when creating the export) and get the values out of the html. But even writing that down makes me think skipping the html and getting at the innards of Navisworks might be a more sensible route as it won't (shouldn't) have all the fluffy html styles guff masking the good bits.
                I'll refer you to your first comment snowy

                Dude, .pdf the report and be done with it!

                ----------
                That he is mad, ’tis true. Tis true, ’tis pity,
                And pity ’tis ’tis true

                Comment


                  #9
                  Perhaps you'd be better-off editing the Clash or Viewpoint Report templates? You may need to edit in Word to detail some of your specific info after exporting each time, but this could vastly improve formatting time and you might be able to use a Macro in Word to query the data.

                  FYI, the default folder for Navis Manage 2018 is: C:\Program Files\Autodesk\Navisworks Manage 2018\en-US\stylesheets

                  Comment

                  Related Topics

                  Collapse

                  Working...
                  X