Conventions#

Note

Python is case sensitive, and so is the MotionSolve Python Interface.

MotionSolve Classes#

All MotionSolve classes use Upper Camel Case for capitalization, which means the first letter is always a capital letter. If the class name consists of two or more meaningful words joined together, the first letter of the subsequent words are also capitalized. All other letters are lower case. See the examples below.

Valid Class Name

Invalid Variations of the Class Name

Joint

JOINT, joint, jOINt.

SpringDamper

Springdamper, SPRINGDAMPER, springdamper.

MotionSolve Class Attributes#

Attributes are always lower-case. See the examples below.

Valid Attribute Names

Invalid Variations of Attribute Names

id

ID,Id.

variables

Variables, VARiables.

Example

jupiter = PaRT(MASS=1.89E27)

NameError: name 'PaRT' is not defined

jupiter = Part (mass=1.89E27)
jupiter.mass
1.89e+27