Skip to content
Discussion options

You must be logged in to vote

Hello,

Thank you for using SysON.

The easiest way to do that is to import the following textual model into SysON:

package CustomUnits {
	// Custom units, just for example purposes
	private import SI::*;
	private import SIPrefixes::*;
	private import MeasurementReferences::*;
	
	attribute <μm> micrometre : LengthUnit { :>> unitConversion: ConversionByPrefix { :>> prefix = micro; :>> referenceUnit = m; } }

	attribute <px> pixel: LengthUnit;

	attribute <'px/W'> 'pixel per watt' : LengthUnit = px/W;
}

You can put the text above in a text file (with .sysml extension) and then use the "Upload model" action from the Explorer view toolbar to import the sysml text file:

Alternatively, you can …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mbgitmbgit
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants