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.
How to see all the properties an object has?
Andre_Comella
Member Posts: 61 PRO
Not sure if this is the right nomenclature, but it would be really helpful to be able to see all the properties an object has (i.e. everything I can access by doing foo.property).
For a more concrete example, I was making coordinate systems and sketch planes. The coordinate systems use .xAxis, and .zAxis while the sketch planes us .x and .y, and .normal. How would I know what these parameters are called? Debug and print both seem to label properties in some human-readable format, which is nice for reading but leaves me guessing and what to use in my code
For a more concrete example, I was making coordinate systems and sketch planes. The coordinate systems use .xAxis, and .zAxis while the sketch planes us .x and .y, and .normal. How would I know what these parameters are called? Debug and print both seem to label properties in some human-readable format, which is nice for reading but leaves me guessing and what to use in my code
0
Best Answer
-
Caden_Armstrong Member Posts: 177 PROkeys(foo) - will give a list of all of the properties of an object.
www.smartbenchsoftware.com --- fs.place --- Renaissance
Custom FeatureScript and Onshape Integrated Applications1
Answers
Custom FeatureScript and Onshape Integrated Applications
E.g., if you've got a call like evMateConnector(context, ...), mousing over that tells you that it returns a thing of type CoordSystem, which links straight to the docs: https://cad.onshape.com/FsDoc/library.html#CoordSystem
It will list the name of the property and a description of what the type is.
https://cad.onshape.com/FsDoc/library.html#Plane
Custom FeatureScript and Onshape Integrated Applications