Setting Yes/No parameters value through API
Not applicable
08-07-2019
07:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello! Im trying to import values from an Excel file into my Revit Project. This is the way I am setting the parameters right now but it doesnt do anything to the Yes/No box.
Parameter p = e.get_Parameter(new Guid("1c8055b5-7eb4-4aba-9da7-91f0255a84d5")); using (Transaction t = new Transaction(doc, "parameter")) { t.Start("param"); p.Set(0); t.Commit(); }
Shouldnt the 0 unselect the Yes/No box? Or do I have this mixed up with something else.
Let me know if you need any clarification.