Skip to main content

A Python module for IronCAD automation and scripting.

Project description

python-ironcad

IronCAD Logo

A Python module for IronCAD automation and scripting. This package exposes IRONCAD's entire API to python.

Installation

pip install python-ironcad

In order for python to access the IRONCAD API, dll's from IRONCAD's install need to be registered system-wide. to do this, simply run the setup script:

python -m python_ironcad

Quick Start

import the package

import python_ironcad

construct IronCAD object

IRONCAD = IronCAD()

if you want to attach to currently running IRONCAD process

IRONCAD.attach()
IZBaseApp = IRONCAD.GetIZBaseApp()
IZDoc = IZBaseApp.ActiveDoc # get currently open document

if you want to launch new IRONCAD process

IRONCAD.launch()
IZBaseApp = IRONCAD.GetIZBaseApp()
IZDoc = IZBaseApp.CreateNewDoc(1, 0, 1, "", 1) # create a new document

Please refer to samples for more in-depth examples

tips

help() function to find member methods and data

to inspect all members of a given object, use help(object) help function

intellisense in Visual Studio Code

if you want to use intellisense to see object members, you can use python type hints. (this also works in pycharm)

Intellisense

known issues

  • INOVATE is currently not supported
  • Some methods that use VARIANT type don't work
  • currently only targets the most recent installed version of IRONCAD

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

python_ironcad-0.1.16.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

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

python_ironcad-0.1.16-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file python_ironcad-0.1.16.tar.gz.

File metadata

  • Download URL: python_ironcad-0.1.16.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for python_ironcad-0.1.16.tar.gz
Algorithm Hash digest
SHA256 9f6c96ff180f1a3c6bb7753c3f3d59f03399d6c976c54256f2a084ea85544e0c
MD5 397416ac3bbf46930a77d2a08398fb09
BLAKE2b-256 67cc89c7da1b3ba2786e3f5fa2d25bc4563e10be674fd9d62a8045968b01f21b

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_ironcad-0.1.16.tar.gz:

Publisher: release.yml on IronCAD/python-ironcad

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file python_ironcad-0.1.16-py3-none-any.whl.

File metadata

  • Download URL: python_ironcad-0.1.16-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for python_ironcad-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 43cde50944618a0450745faba13d34c2d33d8947ab52fd019f28e41fb297b5ff
MD5 4db6d5608bfe5c4dd945fa557852bdc4
BLAKE2b-256 2a6adf29895d139f315397ca69f0f644020b51cbfe03cfcad27bde6dc8592a15

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_ironcad-0.1.16-py3-none-any.whl:

Publisher: release.yml on IronCAD/python-ironcad

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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