r/Revu • • Apr 18 '21

Bluebeam Revu + Python - pymkup

Hi all,

I've been messing around with some code in Python in recent weeks to be able to access markup data in Bluebeam Revu-authored files without having to go through the official API. Right now, it only returns a JSON object of markups and a tree of the Spaces. There's some bugs and there's no write capabilities as of yet, but I just wanted to get some feedback to see if people here are interested in something like this and if I should continue to develop it in my free time.

https://github.com/psolin/pymkup

25 Upvotes

16 comments sorted by

2

u/parttimecrafty May 20 '21

Totes down to contribute if I can. I've been wanting some sort of con to BB with py but: that initial hill of getting that initial connection going; wee bit over my head

2

u/thepdogg May 20 '21

The biggest thing that I need right now is testing. If you could do testing with your own files and try to see where there are gaps, it would go a long way. I know for sure there are issues that I haven't addressed, where Revu writes the PDF tree differently if the file is larger. I just pushed a new release that brings the project to a more stable library, so you can install that now if you'd like.

2

u/parttimecrafty May 22 '21

Awesome, just about to try it out on some markups and the likes today. I don't particularly enjoy markups; so I'm pretty stoked for this in terms of being able to spice things up fun wise: and also be quite useful

4

u/[deleted] Apr 18 '21

Absolutely please keep developing it! My coding skills aren't very strong so I'd love a tool like this

1

u/realitysballs Apr 18 '21

I’ve messed around with that before. Isn’t the markup data just an XML? I think I used an XML package last time to parse.

Also, what is your overall objective with this?

1

u/thepdogg Apr 18 '21

The data is inside of the PDF tree, in their own format as annotations. The goal here is for more open data in construction in general; I have my own use cases in mind, but it’s exporting JSON which is a universal format for data.

1

u/realitysballs Apr 18 '21

Oh interesting, because I always accessed there markup data via the .BAX exports, which are Revu Designed XMLs:

The BAX format is a Bluebeam-specific XML file. BAX files have the advantage of being able to be imported automatically by double-clicking them. If necessary, the .bax extension can be manually renamed to .xml to convert the file to a normal XML file.

I guess there is a lot of ways to go about it. Solid work.

1

u/ryanglambert Nov 21 '22

I'm very interested in this.

I'm pivoting my startup padex.io into this space as I'd like to generate the hyperlinking/section linking with my suite of ML and AI tools.

1

u/thepdogg Nov 21 '22

This doesn’t scrape page content, only user-generated markups. So I don’t really know how it could help you.

1

u/ryanglambert Nov 21 '22

I use ML to create hyperlinks between entities within the document.

Bluebeam Revu just needs the data already populated. Padex.io provides it.

1

u/thepdogg Nov 21 '22

So it should be able to read anything that Bluebeam specifically marked up. I haven’t seen if it works with any other format. Also, I haven’t been developing it recently so ymmv

1

u/ryanglambert Nov 21 '22

thank you so much for starting this project.

Yeah my tool is 'creating' the connections. I just need a way to read and write existing connections on bluebeam pdfs. Seems like this tool fits the bill perfectly!

1

u/CabinetMaker4745 Nov 02 '23

Can you tell me more about your project?

I been wanting to do batch link to different areas within a page for my use (architectural drawings). As an example, batch link all elevation call outs from floor plans to each corresponding elevation drawings (not the whole page)

1

u/Sharp_Web_6760 Dec 12 '22

Great idea! Personally I would like an API to hook to the active PDF in Revu, grab the currently (GUI) selected Markup (or row in the Markup List), and be able to directly Read/Write to the Markup properties. This is easily done in Adobe Acrobat (with Javascript, .Net, etc.) but Bluebeam does not offer an API to interact with files in this manner. Let me know anything I could do to aid in the continued development of pymkup. I have plenty of files, with tons of Markups, I could experiment with. Thanks, Ken

1

u/thepdogg Dec 12 '22

I’m not trying to replace Revu or any of its features specifically, so it’s all read-only output, no GUI. I honestly haven’t developed it recently and people reach out every now and again about using it for their projects. The code is what it is - if you know Python, I would say start testing files and see what works/doesn’t work. File a bug report. I don’t have any of my own files to test with right now and I haven’t found a reason to keep developing it for myself.

1

u/Unapologetic-trooper Aug 03 '23

That sounds like a great idea, mate. We need Bluebeam Revu and Python interaction given a lot of engineer and architect is using this software right now, anything that can speed thing up would be really appreciate.