Skip to main content

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

Project description

acad-extractor

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

Usage

from acad_extractor import select_on_screen

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

acad_extractor-1.0.5-cp39-none-win_amd64.whl (73.9 kB view details)

Uploaded CPython 3.9 Windows x86-64

File details

Details for the file acad_extractor-1.0.5-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for acad_extractor-1.0.5-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 ee362a707fe11c52a87bf0202c184a8277b4e96ab0b70c364a9e527563ac6b96
MD5 10ab3deb87319351bc0d2e8c4cb21bb7
BLAKE2b-256 0d610062f2819322a8e37e1c8726c0af82579807fb239047bcceeb9f32515fa5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page