Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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_WangEmily_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? 

Answers

  • kevin_o_toole_1kevin_o_toole_1 Onshape Employees, Developers, HDM Posts: 565
    There's currently no way to add such a field to the feature dialog.

    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.
Sign In or Register to comment.