Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Special characters in StringValueCommandInput Object

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
mikko.husari
710 Views, 7 Replies

Special characters in StringValueCommandInput Object

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:

""

StringValueCommandInput

A StringValueCommandInput is used to get any string input from the user. Any text can be entered and no validation is performed.

""

source: https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-8B9041D5-75CC-4515-B4BB-4CF2CD5BC359#StringV...

7 REPLIES 7
Message 2 of 8
BrianEkins
in reply to: mikko.husari

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.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 3 of 8
mikko.husari
in reply to: BrianEkins

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". 

 

 

Message 4 of 8
goyals
in reply to: mikko.husari

$ 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.



Shyam Goyal
Sr. Software Dev. Manager
Message 5 of 8
mikko.husari
in reply to: goyals

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 🙂

Message 6 of 8
mikko.husari
in reply to: mikko.husari

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?

Message 7 of 8
mikko.husari
in reply to: BrianEkins

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.

Message 8 of 8
BrianEkins
in reply to: mikko.husari

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.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report