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 = []
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}")

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.8-cp39-abi3-win_amd64.whl (22.9 kB view details)

Uploaded CPython 3.9+ Windows x86-64

File details

Details for the file acad_extractor-1.0.8-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for acad_extractor-1.0.8-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 56070cbbfebcb45c451c2b601e3816aaa5d567a243ebe7f85eed2746558a7c72
MD5 71d6203873d19c6a133c04ff38c949af
BLAKE2b-256 7f23a5499a20b1f75cc090262c1c71fd96344d881572762f8db5011b8cb7d7c6

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