Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Read-only text box in feature dialog?
Emily_Qi_Wang
Member Posts: 13 EDU
Hi there! Is it possible to have a read-only text box in a feature dialog?
@Lauren_Froschauer and I have a use case where it would be beneficial to know how many items were generated by a feature (given a selected edge and value with units for spacing in between items, this Feature generates an appropriate number of entities along the edge). Currently the number of items can be printed out to the FeatureScript notices dialog (click the ! triangle), but this is less optimal than having the information in the feature dialog itself. Alternatively, what other options are there for providing additional Feature post-creation information to the user?
@Lauren_Froschauer and I have a use case where it would be beneficial to know how many items were generated by a feature (given a selected edge and value with units for spacing in between items, this Feature generates an appropriate number of entities along the edge). Currently the number of items can be printed out to the FeatureScript notices dialog (click the ! triangle), but this is less optimal than having the information in the feature dialog itself. Alternatively, what other options are there for providing additional Feature post-creation information to the user?
0
Answers
You can display a message bubble with reportFeatureInfo(), However, this is unfortunately restricted to messages defined as ErrorStringEnum values, which Onshape has translations for. There's no way to add a custom message here.
Printing to the notices flyout is the best tool available for the job right now. We hope to have better dialogs and custom messages available at some point in the future.