Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Units[Converter][AddDimension] - add a dimension to or modify a dimension in the Unit Converter
Calling Sequence
AddDimension(dim, opts)
Parameters
dim
-
expression of type dimension(derived)
opts
equation(s) of the form option=value where option is one of 'display', 'default', or 'make'; specify options for the dimension
Description
The AddDimension(dim, opts) function adds a new dimension to or modifies options of an existing dimension in the Unit Converter.
You describe the options of the dimension by using the optional arguments. The opts argument can contain one or more of the following equations.
'display'=string
This option gives the text that appears in the drop-down box in the Unit Converter dialog box. If this option is not given, the entry is dim.
'default'=truefalse
This option specifies whether the dimension appears as the default dimension in the Dimension: drop-down box in the Unit Converter dialog box. The default value is false.
'make'=truefalse
This option specifies whether the conversion tables are rebuilt after the dimension has been added to the Unit Converter. By default, this option is set to true. If or more dimensions or units are added to or removed from the Unit Converter in one execution group, it is recommended that you execute the Units[Converter][MakeConverter]() calling sequence afterward.
Examples
Change the spelling in the text of 'speed'
Set the existing dimension of energy as the default dimension
See Also
Units, Units/Converter, Units[AddDimension], Units[Converter][GetDimension], Units[Converter][GetDimensions], Units[Converter][HasDimension], Units[Converter][MakeConverter], Units[Converter][RemoveDimension]
Download Help Document