Dear Bernie,
Thank you for your query.
I am not aware of any differences accessing parameters depending on whether they are reporting or not.
I would however definitely recommend you avoid using LookupParameter at all in a production environment.
LookupParameter returns the first parameter corresponding to the given display name that it happens to find.
If there are more than one, you have no idea which one you are getting.
I recommend:
- Avoid using display names at all when accessing parameters.
- If you do use display names, use GetParameters to retrieve all of them and see how many you are getting.
Here is an example of the latter point:
https://thebuildingcoder.typepad.com/blog/2015/06/cnc-direct-export-wall-parts-to-dxf-and-sat.html#2...
Here is a comment on the former point:
https://thebuildingcoder.typepad.com/blog/2018/11/efficient-elegant-code-and-automatic-dashboard.htm...
LookupParameter will only retrieve the first parameter of the given name. In order to use it, you must be absolutely certain that only one parameter with the given name exists. I would suggest adding a test somewhere in your add-in start-up code to ensure that this really is the case.
It is always safer to use other means to retrieve parameters, e.g., the built-in parameter enumeration value, if it exists, or simply the Parameter definition, which you can look up and cache beforehand, e.g., in the afore-mentioned code ensuring that the parameter name on that element type really is unique.
I hope this helps.
Best regards,
Jeremy