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
Release history Release notifications | RSS feed
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
File details
Details for the file acad_extractor-1.0.8-cp39-abi3-win_amd64.whl
.
File metadata
- Download URL: acad_extractor-1.0.8-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 22.9 kB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56070cbbfebcb45c451c2b601e3816aaa5d567a243ebe7f85eed2746558a7c72 |
|
MD5 | 71d6203873d19c6a133c04ff38c949af |
|
BLAKE2b-256 | 7f23a5499a20b1f75cc090262c1c71fd96344d881572762f8db5011b8cb7d7c6 |