acad-extractor


Nameacad-extractor JSON
Version 1.0.9 PyPI version JSON
download
home_pageNone
SummaryA quick tool to extract block attributes and properties from AutoCAD drawings
upload_time2024-06-23 04:33:31
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9.9
licenseMIT
keywords quick extract block attributes properties autocad
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # acad-extractor

A quick tool to extract block attributes and properties from AutoCAD drawings.

## Usage

```python
from acad_extractor import select_on_screen

print("Select AutoCAD blocks on screen")
names = []
attrs_list = []
props_list = []
handles = []
points = []
def callback(processed, total):
    print(f"Processed {processed}/{total}")
print("-" * 70)
dt = select_on_screen(names, attrs_list, props_list, handles, callback, points)
print("-" * 70)
print(f"Processed {len(names)} at {dt} ms")
for i, name in enumerate(names):
    print("-" * 70)
    print(f"{name} {handles[i]} ({points[i][0]}, {points[i][1]}, {points[i][2]})")
    for attr_name, attr_value in attrs_list[i]:
        print(f"attr {attr_name} = {attr_value}")
    for prop_name, prop_value in props_list[i]:
        print(f"prop {prop_name} = {prop_value}")
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "acad-extractor",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9.9",
    "maintainer_email": null,
    "keywords": "quick, extract, block, attributes, properties, AutoCAD",
    "author": null,
    "author_email": "Alexandr Gusev <alphacity@yandex.ru>",
    "download_url": null,
    "platform": null,
    "description": "# acad-extractor\r\n\r\nA quick tool to extract block attributes and properties from AutoCAD drawings.\r\n\r\n## Usage\r\n\r\n```python\r\nfrom acad_extractor import select_on_screen\r\n\r\nprint(\"Select AutoCAD blocks on screen\")\r\nnames = []\r\nattrs_list = []\r\nprops_list = []\r\nhandles = []\r\npoints = []\r\ndef callback(processed, total):\r\n    print(f\"Processed {processed}/{total}\")\r\nprint(\"-\" * 70)\r\ndt = select_on_screen(names, attrs_list, props_list, handles, callback, points)\r\nprint(\"-\" * 70)\r\nprint(f\"Processed {len(names)} at {dt} ms\")\r\nfor i, name in enumerate(names):\r\n    print(\"-\" * 70)\r\n    print(f\"{name} {handles[i]} ({points[i][0]}, {points[i][1]}, {points[i][2]})\")\r\n    for attr_name, attr_value in attrs_list[i]:\r\n        print(f\"attr {attr_name} = {attr_value}\")\r\n    for prop_name, prop_value in props_list[i]:\r\n        print(f\"prop {prop_name} = {prop_value}\")\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A quick tool to extract block attributes and properties from AutoCAD drawings",
    "version": "1.0.9",
    "project_urls": {
        "Homepage": "https://github.com/Alexandr-Gusev/acad-extractor"
    },
    "split_keywords": [
        "quick",
        " extract",
        " block",
        " attributes",
        " properties",
        " autocad"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1d9fddb2befa96bcc3ccb8c3f88b50ee7d5b364b465d225122ac3a16a1b11012",
                "md5": "6e2a11de0e9a18041fe5383b0dfb0a2d",
                "sha256": "7bcfc621f3312864c13f7b5e3ac5aab9df89e14a68e558645fcf32a85ce8a27a"
            },
            "downloads": -1,
            "filename": "acad_extractor-1.0.9-cp39-abi3-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "6e2a11de0e9a18041fe5383b0dfb0a2d",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9.9",
            "size": 23011,
            "upload_time": "2024-06-23T04:33:31",
            "upload_time_iso_8601": "2024-06-23T04:33:31.579783Z",
            "url": "https://files.pythonhosted.org/packages/1d/9f/ddb2befa96bcc3ccb8c3f88b50ee7d5b364b465d225122ac3a16a1b11012/acad_extractor-1.0.9-cp39-abi3-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-23 04:33:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Alexandr-Gusev",
    "github_project": "acad-extractor",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "acad-extractor"
}
        
Elapsed time: 0.27505s