Directions:
- Provide the background on the task (Objective)
- Use the following command template: “Please use markdown to write the PlantText code for the [Desired diagram type] of the system
- Copy the code provided by MCP
- Goto https://www.planttext.com
- Paste the copied code into the left pane and click the “Refresh” button (or press Alt-Enter)
- Save the diagram in the desired format (PNG/SVG/TXT)
Example:
This is an example of how to use MCP to generate PlantText code versions of SysML diagrams.
The example below shows a conversation between a user and the MCP in which the virtual consultant advises the user on how to create a SysML conceptual design using PlantText code to describe the SysML diagrams. The user can then use these instructions to guide them on how to build the diagrams in their SysML tool of choice.
User:
Objective: To create a system conceptual design model in SysML for a small UAV that will carry up to 4 people and their luggage at least 100 miles from rural areas to metropolitan areas.
MBSE Consulting Portal
Creating a system conceptual design model in SysML for a small UAV is a great goal. The first step is to define the model’s scope. This includes defining the system’s purpose, its stakeholders, and the level of detail the model should include. Once you have a clear scope, you can then identify the system’s components, the relationships between them, and any constraints they may have. Additionally, you’ll need to consider the system’s environment and how it may affect the design. Once you have all the necessary information, you can begin creating the model. You’ll need to identify the system’s functional requirements, the structure of the system, and how it will operate. You can use diagrams, diagrams with text, or text to represent the model. Finally, you’ll need to validate the model to ensure it meets your design requirements.
User:
Please use markdown to write the PlantText code for the use case diagram of this system
Note: Markdown is a formatting syntax used to type plain text. It is the simplest way to add formatting like headings, bold text, italic text, ordered and unordered lists, images, links, code segments, and so on, to plain text.
MBSE Consulting Portal:
@startuml
actor user as “UAV User”
participant UAV
participant GPS
participant City
user -> UAV : Request UAV
UAV –> GPS : Get GPS coordinates
GPS –> UAV : Provide coordinates
UAV –> City : Fly to city
City –> UAV : Land at city
@enduml
User:
Please use markdown to write the PlantText code for the activity diagram of this system
MBSE Consulting Portal:
@startuml
start
:Request UAV;
:Get GPS coordinates;
if (Check GPS coordinates?) then (yes)
:Fly to city;
else (no)
:Abort mission;
endif
:Land at city;
stop
@enduml
User:
Please use markdown to write the PlantText code for the state diagram of this system
MBSE Consulting Portal:
@startuml
[*] –> Idle : Request UAV
Idle –> FetchingGPS : Get GPS coordinates
FetchingGPS –> ValidateGPS : Validate GPS
ValidateGPS –> Fly : Fly to City
Fly –> Landing : Land at City
Landing –> Idle : Done
@enduml
User:
Please use markdown to write the PlantText code for the sequence diagram of this system
MBSE Consulting Portal:
@startuml
actor user as “UAV User”
participant UAV
participant GPS
participant City
user -> UAV : Request UAV
UAV -> GPS : Get GPS coordinates
GPS -> UAV : Provide coordinates
UAV -> City : Fly to city
City -> UAV : Land at city
@enduml