Skip to main content

A package aimed to simplfy coding of Activex Automation Module of AutoCAD, based on pywin32 library.

Project description

pyacad

A package aimed to simplfy coding of Activex Automation Module of AutoCAD, based on pywin32 library.

Features

  • Uses of COM (Componnent Object Model of Microsoft) for manipulate AutoCAD application with Python.
  • Python Autocad class for manipulate.

Usage

from pyacad import Autocad, APoint

# Create a line in the active document model space.
acad = Autocad()
p0 = APoint(1, 1)
p1 = APoint(2, 3)
acad.model.AddLine(p0(), p1())

# Zoom the line by extents.
acad.app.ZoomExtents()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyacad-0.0.4.tar.gz (4.5 kB view hashes)

Uploaded Source

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