See the top rated post in this thread. Click here

Results 1 to 2 of 2

Thread: How to create a component

  1. #1
    Member
    Join Date
    2005-04
    Posts
    31
    Login to Give a bone
    0

    Question How to create a component

    I've been writing an enhanced "Component" command for Revit, something that shows the families a little more sorted and easier to find. I've got most of it done but I'm a little stuck on how to actually add the selected family to the project.

    I'm aware of the Document.NewFamilyInstance Method and it's overrides but I'm not sure how to select which override to use. For example how do I detect if a family is wall or floor hosted. Would that be in the parameters too? Or is there a way to pass a family name to the native component command in Revit?

  2. #2
    100 Club
    Join Date
    2004-02
    Location
    Brookline, MA
    Posts
    186
    Login to Give a bone
    1

    Default Re: How to create a component

    Unfortunately there's no supported way to do what I think you really want (leverage Revit's native component insertion).

    I'm not sure if you can determine wall hosted or floor hosted by this method - but I can tell you that if you look at the visible parameters on different families - I think that you can distinguish "standalone" vs. "hosted" families based on which parameters appear.

    -Matt

Similar Threads

  1. ActiveX component can't create object
    By jkp in forum VBA/COM Interop
    Replies: 3
    Last Post: 2014-11-19, 08:50 PM
  2. Run-time error '429' (ActiveX component can't create object)
    By Pwned555402908 in forum VBA/COM Interop
    Replies: 1
    Last Post: 2011-12-08, 10:05 PM
  3. Create-In-Place Component Wall Blend Finish Not Showing Up
    By residarchitect in forum Revit Architecture - General
    Replies: 4
    Last Post: 2006-12-11, 12:04 AM
  4. 8.1 Window & Door Placement In Create-In Place Wall Component-O
    By David J Krope in forum Revit Architecture - Wish List
    Replies: 4
    Last Post: 2005-12-08, 02:24 PM
  5. 8.1 Create -In-Place Wall Component to be Room Bounding-O
    By David J Krope in forum Revit Architecture - Wish List
    Replies: 0
    Last Post: 2005-12-07, 09:40 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
  •