Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I know how to set a parameter of an element I can select but how do you set a project parameter? Thanks.
Solved! Go to Solution.
I know how to set a parameter of an element I can select but how do you set a project parameter? Thanks.
Solved! Go to Solution.
Please always search the help file, SDK samples, Internet, The Building Coder and especially this forum for existing answers before posting a new question.
Most questions have already been answered multiple times over.
In this case, I searched for 'set project parameter' and saw many related threads, e.g.,:
Cheers,
Jeremy
My reply was to this reply I got in an email. "I would suggest you do this right away, before asking any further questions :-)"
I will look into the possible solution you posted here. Sorry if I've asked too many questions. I'm new to this forum, is there a limit?
Thanks for the help.
I structured my question incorrectly. My apologies. I'm actually trying to set the value of a project parameter (created from a shared parameter) that is in the "Project Information" category. I know how to get and set parameters of elements that I can select but there's no object to select (in this case) when it's in the project information category.
Document Doc = commandData.Application.ActiveUIDocument.Document; Parameter myParam = Doc.ProjectInformation.LookupParameter ("Building Designator"); myParam.Set("B");
This works
Congratulations on solving the issue!
Congratulations also on narrowing down what the real question actually was: setting a (normal) parameter on the project information element.
To answer your other question: nope, there is no limit on the number of questions you can submit here.
On the other hand: yes, certainly, obviously, there are personal limits on the number, complexity, and repetitivity of questions individual forum members feel happy to answer.
Cheers,
Jeremy
Thanks a million!
Simple clean code. I don't why some like to complicate things!!