Function Syntax: RotateMtextVport AI+https://www.cadtutor.net/forum/topic/76283-rotate-to-match-view/ Description This AutoLISP program RotateMtextVport.lsp adjusts the rotation of selected TEXT and MTEXT objects relative to the current viewport orientation. It ensures MTEXT is upright and TEXT aligns with the viewport’s UCS X-axis. Functionalities • Retrieves the current viewport rotation angle from the UCS X-axis. • Selects both TEXT and MTEXT entities for processing. • Sets MTEXT rotation to 0.0 and attachment point to Top Left. • Sets TEXT rotation to match the viewport rotation angle and alignment to Left. • Processes multiple selected objects in a loop. • Provides a message if no valid objects are selected. Important Notes • Command to run this tool: RotateMtextVport. • Uses ActiveX properties (vlax-put) to change rotation and alignment. • Designed to standardize text orientation within viewports for consistent presentation.