I know we could use SEM builder to draw the sem path figure first and then get the estimations and code. I am wondering whether we can do this reversely - we code the sem part by ourselves, and then get the sem figure automatically.

For example, after the following commands, is there a way to get the SEM path figure?
Code:
sysuse auto.dta
sem(price <- mpg headroom)(mpg <- headroom)