Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 67020

Re: Create family instance

$
0
0

Dear Payalorna

 

 

Following steps will help you:

 

Step 1: Filter All FamilySymbol of Structural Framing and Bind with Combobox Using Display Member & Value Member

 

    a. Display Member Contains Symbol Name.

    b. Value Member Contains Symbol ID.

 

Step 2: As Per Selection from Combobox. Get Value of Combobox which is ID of Symbol.

 

Step 3: Now Get Symbol from Document  and Cast it into Symbol using doc.GetElement() As FamilySymbol

 

Step 4: Use this Symbol into Familyinstance Creation Method.

 

In case of Already Created instances.

 

a. you can use  FamilySymbol fs = (Placed instance Familysymbol); fs.ChangeTypeId( Selected Family Symbol id From Combo box) Method.

 

 


Viewing all articles
Browse latest Browse all 67020

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>