get_file_properties
Retrieve metadata and properties from the active SolidWorks document to support file management, version control, and project organization.
Instructions
Get properties of the current SolidWorks file.
Retrieves comprehensive metadata and properties of the currently active SolidWorks document. Provides essential file information for document management, version control, and project organization.
Returns: dict[str, Any]: A dictionary containing the resulting values.
Example: ```python result = await get_file_properties()
if result["status"] == "success":
props = result["properties"]
# Basic file info
file_info = props["file_info"]
print(f"File: {file_info['file_name']}")
print(f"Size: {file_info['file_size']}")
print(f"Type: {file_info['file_type']}")
# Technical properties
tech = props["technical_properties"]
print(f"Material: {tech['material']}")
print(f"Units: {tech['units']}")
# Document info
doc = props["document_info"]
print(f"Author: {doc['author']}")
print(f"Description: {doc['description']}")
```
Note:
- Requires an active SolidWorks document
- Properties may vary based on document type
- Some properties may be empty if not set
- Technical properties depend on document configurationInput Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||