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.
Descriptions for constants?
EvanReese
Member, Mentor Posts: 2,188 ✭✭✭✭✭
I'm trying to add a description to a constant so that when I mouse over the constant places it's used, I'll see the explanation. I'm looking for the exact same behavior as you see when you mouse over one of the standard library constants like millimeter. Degree is done this way in the standard library:
I've tried it like this, but it doesn't seem to do it. What am I missing?
/**This is my description*/
const myConstant = 1*inch;
/** A constant equal to 1 degree. */
annotation { "Name" : "Degree", "Abbreviation" : "deg" }
export const degree = 0.0174532925199432957692 * radian;
I've tried it like this, but it doesn't seem to do it. What am I missing?
/**This is my description*/
const myConstant = 1*inch;
Evan Reese
0
Comments