Set the drop down box for the parameter value field with tool tips

Set the drop down box for the parameter value field with tool tips

Anonymous
Not applicable
769 Views
1 Reply
Message 1 of 2

Set the drop down box for the parameter value field with tool tips

Anonymous
Not applicable

 

 

Hi,

 

I am new to Revit API development

 

Reference to the below code snap its possible to set the drop down box for the parameter value field with tool tips !?  

 

*Appreciate the explanation with a small  code snap,possible with below example.

 

FamilyManager familyMgr = doc.FamilyManager;
 
    FamilyParameter param = familyMgr.get_Parameter( 
      "Width" );
 
    if( null == param )
    {
      param = doc.FamilyManager.AddParameter( 
        "Width", BuiltInParameterGroup.PG_GEOMETRY, 
        ParameterType.Length, true );
    }
 
    familyMgr.Set( param, 0.2 ); // set the value

 

Thanks,

Navan.

 

0 Likes
770 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Dear Navan,

 

Thank you for your query.

 

If you are new to the Revit API, I highly recommend working through the Revit API getting started material first of all, especially the DevTV and My First Revit Plugin tutorials:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#2

 

Regarding the question you raise, I hope this will be of use:

 

http://thebuildingcoder.typepad.com/blog/2015/11/drop-down-enumerated-parameter-values.html

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes