Having trouble with basic attribute definition

Was actually trying to define a Boolean. When that did not work, I switched to a “Real” and copied and pasted the example directly from the SysML V2 specification “7.7.2 Attribute Definitions and Usages” Even though I import “ScalarValues”, the tool does not like “Real”. See screenshot. What am I missing here?

Thanks!

David Hetherington

Debug-Boolean.sysml (309 Bytes)

Try

public import ScalarValues::*;

instead. public import ScalarValues; imports the package (makes that namespace accessible), so you have to refer to its members using the qualified name, e.g. ScalarValues::Real. This was probably also the problem with Boolean you had earlier.

Adam Layne, PhD

That was it. Yes, I had read this somewhere, but had not remembered the import nuance. Thanks!