View Full Version : DWF with all parameters via API?
truevis
2007-05-31, 07:07 AM
Whereas Revit does not seem to add user-created parameters (except for rooms) to its published DWFs, might there be a way to do it via the API?
I'd like to have DWFs that contain all parameters of all elements.
The blog Revit 2008 API: Import/Export of DWG/DWF/Image (http://cadappdev.blogspot.com/2007/03/revit-2008-api-importexport-of.html) says, "...I'm quite happy to say that Autodesk has added Import/Export of both DWG and DWF, as well as import of Image files..."
dtownsend
2007-05-31, 11:27 AM
Whereas Revit does not seem to add user-created parameters (except for rooms) to its published DWFs, might there be a way to do it via the API?
I'd like to have DWFs that contain all parameters of all elements.
The blog Revit 2008 API: Import/Export of DWG/DWF/Image (http://cadappdev.blogspot.com/2007/03/revit-2008-api-importexport-of.html) says, "...I'm quite happy to say that Autodesk has added Import/Export of both DWG and DWF, as well as import of Image files..."I maybe wrong about this, but I don't think you can do this with the Revit API, DWF Export Class.
I looked at the members for this class in the CHM file and it doesn't have too many options.
DWF3DExportOptions Members
Public Instance Constructors
DWF3DExportOptions Constructor Default constructor. Sets all options to their default values.
Public Instance Fields
ExportingAreas (inherited from CADExportOptions) Whether to also export areas and rooms' geometry.
ForcedHLR (inherited from CADExportOptions) Whether to enforce Hidden Lines Removal in 3D views.
TargetUnit (inherited from CADExportOptions) Type of units in the target CAD format.
Public Instance Methods
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
ToString (inherited from Object) Returns a String that represents the current Object.
You might want to look into the DWF API. I am pretty sure you could write an exporter using the Revit API to get the geometry and other data from the Revit model and compile it into a DWF using the DWF Toolkit.
The DWF™ specification is published and available to any developer free of charge to build applications around the DWF format. The Autodesk® DWF™ Toolkit includes C++ source code for reading and writing DWF files.
Autodesk DWF Developer Center (http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=2418019)
DWF Toolkit (http://www.autodesk.com/dwftoolkit)
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.