PrimalSense not showing all parameterset parameters

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 7 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
OldLost
Posts: 55
Last visit: Wed Feb 21, 2018 8:00 am

PrimalSense not showing all parameterset parameters

Post by OldLost »

PowerShell Studio 2016 v5.2.120 x64
Windows Server 2012 R2 64bit

I have the following function:
  1. function New-HeaderCell {
  2.     [CmdletBinding(DefaultParameterSetName = 'SaveColor')]
  3.     Param (
  4.         [Parameter(Mandatory, Position = 0)][string]$Text,
  5.         [Parameter(Position = 1, ParameterSetName = 'SaveColor')][string]$Color = '#024D89',
  6.         [int]$ColSpan = 0,
  7.         [int]$RowSpan = 0,
  8.         [Parameter(ParameterSetName = 'SaveColor')][Parameter(ParameterSetName = 'RandomColor')][string]$SaveColor,
  9.         [Parameter(ParameterSetName = 'UseColor')][string]$UseColor,
  10.         [Parameter(ParameterSetName = 'RandomColor')][switch]$RandomColor
  11.     )
  12. }
If I reference this function by typing its name, then put a value in for the mandatory parameter, thusly:
  1. New-HeaderCell 'Some Text' -
when I type the last "-" character and PrimalSense gives me a list of parameters for the function all I see are the parameters for the default parameterset, even though at that point which parameterset I will be using is still undefined. All I've done so far is specify a value for the Text parameter which is valid for all parametersets. Before I enter the Text parameter I see all parameters for all parametersets.

Am I doing something wrong? Or is there some sort of bug/issue with PrimalSense?
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: PrimalSense not showing all parameterset parameters

Post by davidc »

We are investigating the issue.

David
David
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: PrimalSense not showing all parameterset parameters

Post by davidc »

Please try the latest service build: v5.2.121.

David
David
SAPIEN Technologies, Inc.
This topic is 7 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.