Hello,
I am not able to insert {[]} characters into StringValueCommandInput. I mean, when I create a command dialog with a single stringvaluecommandinput, user can not use {[]} characters in it. We need it so we can create regular expression strings. Is there an option to allow these characters?
Documentation says:
""
A StringValueCommandInput is used to get any string input from the user. Any text can be entered and no validation is performed.
""
Solved! Go to Solution.
Solved by BrianEkins. Go to Solution.
I'm not able to reproduce the problem. I added a StringValueCommandInput to a command of mine and I'm able to add the string you specified and am able to get the full string using the value property. I also tried it with a
TextBoxCommandInput and it worked correctly too. I think you'll need to post some code to reproduce the problem. Not that I would expect any difference, but are you using a Mac? I tested it on Windows.
Thank you for your reply and testing. I made a few additional tests and it seems that pasted characters work as expected, so the problem is "before" the input, when using "Alt Gr" modifier key.
Specific testing:
Trying to input any character which needs "Alt Gr" as a modifier key.
1) Works in notepad
- Possible to input any characters
2) Works in Fusion "Parameters" window
- Parameter can be named using special characters, example "parameter$"
3) Does not work in "New component" command name field
- Cannot use $ as part of component name.
4) Does not work in commands dialogs
- Impossible to type "parameter$" as a value for any commands
5) Does not work in dimension tool of sketching workspace.
- Cannot use parameter named "parameter$"
I am running windows 10 and in my keyboard layout $ comes from "Alt Gr + 4" and {[]} from"Alt Gr + 7/8/9/0".
$ is considered as valid input for component name in Fusion. On my windows machine Alr Gr + 4 produces this ♦ which is not a valid character in name.
Thank you for your effort, Autodesk Employee. I am sorry if my message was not clear, please point out the parts which confuse you the most.
I am asking you to put your focus on the post that contains a numbered list. I would appreciate if you tried to reproduce the listed issues using your keyboard layout. Maybe this issue is related to localization.
My only concern is about the fact that dollar sign does not seem to be working where it should work. I can use it to name parameters, but I cannot reference those parameters anywhere. Reason for that seems like a bug. Why is it possible to type $ into parameters window but not anywhere else.
Explaining this should not be this hard 🙂
This is really annoying, it works with english keyboard but not with finnish/nordic keyboards. Currently our finnish users need to copy/paste these characters and english users can just type them.
Is there any official bug tracker?
I bet you are using english keyboard. Bug does not occur with that. Nordic keyboard users are experiencing the issue. Is there any official bug tracker where this could be reported? Currently most of our users need to copy-paste these characters into dialogs. English users are not affected.
It would be best to report it on the support forum. I believe you said that this behavior is reproducible in some of the standard command dialogs too, which means it's a general problem with that type of command input. I would report the problem relative to those commands and not mention the API. If it's fixed there, then that should also fix it for the API.
Can't find what you're looking for? Ask the community or share your knowledge.