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

If you're not sure about the file name format, learn more about wheel file names.

acad_extractor-1.0.9-cp39-abi3-win_amd64.whl (23.0 kB view details)

Uploaded CPython 3.9+Windows x86-64

File details

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

File metadata

File hashes

Hashes for acad_extractor-1.0.9-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7bcfc621f3312864c13f7b5e3ac5aab9df89e14a68e558645fcf32a85ce8a27a
MD5 6e2a11de0e9a18041fe5383b0dfb0a2d
BLAKE2b-256 1d9fddb2befa96bcc3ccb8c3f88b50ee7d5b364b465d225122ac3a16a1b11012

See more details on using hashes here.

Supported by

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