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 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}")

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.6-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.6-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for acad_extractor-1.0.6-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 650edd0f9ff4c779c5d4b4de9e201f79c627383d6e9471c04c88a68eb2c8c0c8
MD5 4beed27969e6d2159c4ae6e4b48136a0
BLAKE2b-256 288776b5f8bb8d2bf8070f1c729f6f65ef6f3e390a315c6b39ff6666072efadd

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