Plotting in VB.net using Bluebeam PDF.pc3

Plotting in VB.net using Bluebeam PDF.pc3

albarney99
Advocate Advocate
572 Views
1 Reply
Message 1 of 2

Plotting in VB.net using Bluebeam PDF.pc3

albarney99
Advocate
Advocate

I am trying to plot a drawing using Bluebeam PDF.pc3.

I can successfully plot using the DWG to PDF.pc3 but the issue arises with Bluebeam as the paper sizes are stored as "User156" rather the "ISO_A1_(594.00_x_841.00_MM)" for example in the registry.

 

The issue is the Bluebeam "UserXYZ" for A1 plot on my PC is "User136" but another user in the office it is "User156".

 

So when I plot using a drawing setup by another user it will set the mediaName in the  _plotsetvalidate.SetPlotConfigurationName to "User156" which is the Saved mediaName in the Plot Setting for the drawing file

 

But

 

my A1 is mediaName is actually "User136" so it seems I get an corrupt PDF.

 

If I use "User136" I get a dotnet error.

 

So plotting like this works but the PDF created is corrupt (this is using the CanonicalMediaName from the document)

_plotsetvalidate.SetPlotConfigurationName(my_plotset, "Bluebeam PDF.pc3", "User156")

 

Plotting like this I get a Dotnet error at this line (uses my local BB registry value for A1)

_plotsetvalidate.SetPlotConfigurationName(my_plotset, "Bluebeam PDF.pc3", "User136")

 

Plotting like this I get a Dotnet error at this line (actual BB A1 description)

_plotsetvalidate.SetPlotConfigurationName(my_plotset, "Bluebeam PDF.pc3", "ISO_A1_(594.00_x_841.00_MM)")

 

Plotting like this works fine and get a successful PDF
_plotsetvalidate.SetPlotConfigurationName(my_plotset, "DWG To PDF.pc3", "ISO_full_bleed_A1_(594.00_x_841.00_MM)")

 

Any help appreciated.

0 Likes
573 Views
1 Reply
Reply (1)
Message 2 of 2

norman.yuan
Mentor
Mentor

To me, it seems not a programming issue, because for the same PC3 you have different custom/user media name for the same paper size. You may want to check the corresponding *.pmp file. That is, if the PC3 is "Bluebeam PDF.pc3", there might be a file "Bluebeam PDF.pmp"(not every PC3 file has corresponding *.pmp: when a custom paper size is configured to a plotter/PC3, *.pmp file is added to save the custom paper size and its MEADIA NAME, usually like "UserXX").

 

It seems someone configured the same papersize for "Bluebeam PDF.pc3" in different computer and named the media differently (thus "User136" at one computer and "User156" at another). You can simply copy/distribute the correct *.pmp file to all the computers that runs your plotting code.

Norman Yuan

Drive CAD With Code

EESignature

0 Likes