The Wall Closure parameter of a Window element

The Wall Closure parameter of a Window element

nam_vt
Enthusiast Enthusiast
738 Views
3 Replies
Message 1 of 4

The Wall Closure parameter of a Window element

nam_vt
Enthusiast
Enthusiast

Hi Support,

 

In my sample Construction project there are windows attached to walls. I try to change the parameter Wall Closure of a Window element to Interior then use the below snippet of codes to retrieve that parameter:

 

.................................................

            

            Parameter wallFunction = wd.get_Parameter(BuiltInParameter.TYPE_WALL_CLOSURE);
            TaskDialog.Show("Wall Closure", "Integer - value = " + wallFunction.AsInteger().ToString());

 

.................................................

 

It always show "Integer - value = 0" no matter what I change the Wall Closure parameter. Please advise

 

 wall_closure.png

 

 

Thanks,

Cuong

0 Likes
739 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

Dear Cuong,

 

Thank you for your query.

 

Please use RevitLookup and check what storage type this parameter uses.

 

AsInteger should be used for integer values.

 

I hope this helps.

 

Best regards,

 

Jeremy

 

P.S. Please do not address your questions to 'support'. This is a public discussion forum. Address your questions to your peers. In order to motivate them to enter into a discussion with you, you need to be nice and friendly and ensure that your questions are interesting and as informative as possible. This is a community of give and take. 



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

Message 3 of 4

nam_vt
Enthusiast
Enthusiast

Dear Jeremy,

 

Thanks for reminding me Smiley Happy, now I'm able to retrieve the Wall Closure parameter, it should be retrieved by getting the ElementType first

 

.................

ElementType type = _doc.GetElement(wd.GetTypeId()) as ElementType;

..................

 

 

Regarding the Revit Lookup tool I understand that it's tool for developer to loop up the parameters of an element right ? Sorry I'm a Revit API newbie I follow the instruction to install this tool but I got an error message saying that failed to initialize the RevitLookup.dll file, I already put two files RevitLookup.addin, RevitLookup.dll in folder C:\ProgramData\Autodesk\Revit\Addins\2016.

 

Please help me 

 

Best Regards,

Cuong

0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk

Dear Cuong, 

 

Well done. Congratulations!

 

Regarding the installation of RevitLookup, please work through the Revit API getting started material first to understand the fundamentals of loading Revit add-ins.

 

That will help you to resolve the problem yourself, and is important for your basic understanding before proceeding any further.

 

Cheers,

 

Jeremy



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