Results 1 to 2 of 2

Thread: DWF with all parameters via API?

  1. #1
    AUGI Addict truevis's Avatar
    Join Date
    2004-07
    Location
    Massachusetts, USA
    Posts
    1,186

    Default DWF with all parameters via API?

    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 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..."

  2. #2
    100 Club dtownsend's Avatar
    Join Date
    2006-06
    Location
    Atlanta, GA
    Posts
    163

    Default Re: DWF with all parameters via API?

    Quote Originally Posted by truevis
    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 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.

    Quote Originally Posted by Autodesk Revit 10 API CHM

    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.

    Quote Originally Posted by Developer Center
    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

    DWF Toolkit

Similar Threads

  1. Reporting Parameters broke nested parameters
    By Andre Baros in forum Revit Architecture - Families
    Replies: 4
    Last Post: 2010-09-09, 10:35 PM
  2. Linking door and window parameters to room parameters
    By Mangrove in forum Revit Architecture - Families
    Replies: 5
    Last Post: 2008-12-03, 07:27 PM
  3. Using Flip parameters with Linear parameters?
    By Steve_Bennett in forum Dynamic Blocks - Technical
    Replies: 4
    Last Post: 2007-02-05, 08:38 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
  •