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.9-cp39-abi3-win_amd64.whl (23.0 kB view hashes)

Uploaded CPython 3.9+ Windows x86-64

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