tcpMDT
Find alignment by name
Searches for an alignment in the MDT drawing by name (partial search, case-insensitive) and zooms to it in CAD. Returns the full name of the alignment, start station, end station and total length.
If no matching alignment is found, it returns an error indicating this. If there is more than one match, it lists the candidates so the search can be refined.
Prerequisites: The MDT plugin must be loaded and alignments must be defined in the active drawing. Use List drawing alignments to see all available ones.
Parameters
Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| text | Yes | — | Text to search for in the alignment name. Partial search, case-insensitive. Example: |
Result
The CAD zooms to the extent of the found alignment. The assistant returns: full name, start station, end station and length in metres. If there are multiple candidates, it returns the list for the user to choose from.
Tip: This is the necessary preliminary step for Generate longitudinal profile. Use it to verify that the alignment name is correct before launching more expensive calculations.
Example prompts
You can ask the assistant things like:
Find the alignment "carretera" and zoom to it
Where is alignment EJE-2?
Locate the alignment called "principal"
Show me the alignment containing the word "acceso"
How long is the alignment "variante"?