show my Shared Parameters in PropertyGrid

show my Shared Parameters in PropertyGrid

Anonymous
Not applicable
418 Views
1 Reply
Message 1 of 2

show my Shared Parameters in PropertyGrid

Anonymous
Not applicable

Hi Friends

i loaded some shared parameters, these parameters are associated to category "project information". In the revit window "Project Properties" it shows my parameters and six revit parameters (Client Name, Project address, Project Issue Date, Project Name, Project Number, Project Status). i downloaded the Revit SDK, includes the example "ProjectInfo.csproj", it have a propertygrid, it show the six revit parameters "proyect Information" but no show my shared parameters which also belong to category "proyect Information". ¿how show my parameters in the PropertyGrid ?

 

Sin título.png

 

This is the code that loads each parameter revit

/// <summary>
/// Gets or sets Project Status
/// </summary>
[Category("Other"), DisplayName("Project Status")]
public String Status
{
get
{
return m_projectInfo.Status;
}
set
{
m_projectInfo.Status = value;
}
}

When replacing the code to load my "Discipline" revit parameter is not recognized. There is some method or other way to load my parameters in the PropertyGrid

 

 

 

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

jeremytammik
Autodesk
Autodesk

Dear Marcosmateo,

 

The code you quote is referring to a property on the project info class:

 

  return m_projectInfo.Status;

 

The code required to retrieve shared parameter values is diffferent.

 

Have you taken that into account?

 

I hope this helps.

 

Cheers,

 

Jeremy



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

0 Likes