Results 1 to 9 of 9
Like Tree3Likes
  • 1 Post By Raff
  • 1 Post By snowyweston
  • 1 Post By Raff

Thread: Merge Two HTML Reports - Navis & Word

  1. #1
    Member Raff's Avatar
    Join Date
    June 13, 2014
    Location
    @EIMHINATWORK
    Posts
    94
    Current Local Time
    12:47 PM

    Question 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?!?!





    snowyweston likes this.

  2. #2
    Moderator snowyweston's Avatar
    Join Date
    December 21, 2010
    Location
    C.LONDON
    Posts
    4,262
    Current Local Time
    12:47 PM
    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.

  3. #3
    Member Raff's Avatar
    Join Date
    June 13, 2014
    Location
    @EIMHINATWORK
    Posts
    94
    Current Local Time
    12:47 PM
    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 23rd, 2017 at 03:26 PM.

  4. #4
    Member Raff's Avatar
    Join Date
    June 13, 2014
    Location
    @EIMHINATWORK
    Posts
    94
    Current Local Time
    12:47 PM


    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 Thumbnails Attached Thumbnails Merge Two HTML Reports - Navis &amp; Word-untitled.png  

  5. #5
    Moderator snowyweston's Avatar
    Join Date
    December 21, 2010
    Location
    C.LONDON
    Posts
    4,262
    Current Local Time
    12:47 PM
    If I find some time I'm going to have to give this go.
    Raff likes this.

  6. #6
    Member Raff's Avatar
    Join Date
    June 13, 2014
    Location
    @EIMHINATWORK
    Posts
    94
    Current Local Time
    12:47 PM
    https://sourceforge.net/projects/htmlmg/files/

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

  7. #7
    Moderator snowyweston's Avatar
    Join Date
    December 21, 2010
    Location
    C.LONDON
    Posts
    4,262
    Current Local Time
    12:47 PM
    Quote 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.

  8. #8
    Member Raff's Avatar
    Join Date
    June 13, 2014
    Location
    @EIMHINATWORK
    Posts
    94
    Current Local Time
    12:47 PM
    Quote 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!
    snowyweston likes this.

  9. #9
    Junior Member
    Join Date
    March 23, 2011
    Location
    South Florida
    Posts
    11
    Current Local Time
    07:47 AM
    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

Similar Threads

  1. Railing Reports Length of Zero
    By Verudis in forum Architecture and General Revit Questions
    Replies: 0
    Last Post: June 7th, 2016, 07:40 PM
  2. html to xml in c#
    By Ning Zhou in forum Third party Add-Ins, API and R&D
    Replies: 4
    Last Post: September 4th, 2014, 12:01 AM
  3. Replies: 0
    Last Post: August 11th, 2014, 06:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •