Export to DWFx and force vector format

Export to DWFx and force vector format

PaulCollins7972
Advocate Advocate
1,870 Views
4 Replies
Message 1 of 5

Export to DWFx and force vector format

PaulCollins7972
Advocate
Advocate

We are required by our contractor client to issue DWFx files in vector not raster format.

 

This does not seem to be one of the options that can be set when exporting from the API.

 

I have tried setting the Printmanager.PrintSetup.CurrentPrintSetting.PrintParameters.HiddenLineViews = HiddenLineViewsType.VectorProcessing

 

but I am not sure if this has any effect on exporting to DWF / DWFx

 

Any help welcome.

0 Likes
Accepted solutions (1)
1,871 Views
4 Replies
Replies (4)
Message 2 of 5

matthew_taylor
Advisor
Advisor
Hi,
I would have thought that the dwf(x) format was vector anyway.
Rule of thumb with the Revit API: if you can't do it with the interface, you can't do it with the API. Can you do it with the API?
If the former two comments don't clarify the situation, ask the client to vet a test file.

-Matt

Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes
Message 3 of 5

PaulCollins7972
Advocate
Advocate

OK here is some clarification.

 

When you create DWF / DWFx through the UI you are presented with a Printer Setup like dialog which allows setting of vector or raster.

 

The DWF  / Dwfx created this way respect the choice of vector unless the view has shadows etc when you are shown the usual pop up about raster printing and a raster format file is created.

 

If you open a vector DWF / DWFx in Navisworks and select something then the Revit data properties are displayed. For example a door will show its height, width, fire rating, GUID etc etc. 

 

If the DWF / DWFx is raster then none of that comes through and the intelligence is lost.

 

Unfortunately the default when creating through the API seems to be Raster format and it's not obvious if any of the setup parameters for DWF / DWFx export will force a switch to vector or if changing the print manager setting for hidden lines to vector (which is what the UI is showing as the control method) will have the desired effect either.

 

We are required to produce the vector format "intelligent" files as part of our BIM protocols, exporting via the API helps us produce files with the correct naming format.

 

Thanks

0 Likes
Message 4 of 5

PaulCollins7972
Advocate
Advocate
Accepted solution

OK sorted now.

 

The parameter that controls the "vector / raster" and whether the Revit data is included in the output file is... the ExportObjectData property.

 

Obvious really I guess but I was confused by the "vector / raster" description and thinking that the printsetup dialog was making the difference.

 

Testing using the UI not the API confirms this.

 

Thanks

0 Likes
Message 5 of 5

matthew_taylor
Advisor
Advisor

Oh good. I was just taking a look myself!

I think combine that with the imageformat and imagequality and you should be golden.


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes