A Python module for IronCAD automation and scripting.
Project description
python-ironcad
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)
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)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_ironcad-0.1.21.tar.gz.
File metadata
- Download URL: python_ironcad-0.1.21.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9030556b07d3a58833d8e22fe0e752727780d7ee65d11cfda69caeb4954b0ccf
|
|
| MD5 |
45f1739819efe727e5b0c5fdf45346f8
|
|
| BLAKE2b-256 |
79a0033d00305438ebdfba27e17c571e255cd6b117a9ad295e94cad2e314e095
|
Provenance
The following attestation bundles were made for python_ironcad-0.1.21.tar.gz:
Publisher:
release.yml on IronCAD/python-ironcad
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_ironcad-0.1.21.tar.gz -
Subject digest:
9030556b07d3a58833d8e22fe0e752727780d7ee65d11cfda69caeb4954b0ccf - Sigstore transparency entry: 1394441074
- Sigstore integration time:
-
Permalink:
IronCAD/python-ironcad@85644fad891e428e32617e1063687e44dad15274 -
Branch / Tag:
refs/tags/v0.1.21 - Owner: https://github.com/IronCAD
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@85644fad891e428e32617e1063687e44dad15274 -
Trigger Event:
push
-
Statement type:
File details
Details for the file python_ironcad-0.1.21-py3-none-any.whl.
File metadata
- Download URL: python_ironcad-0.1.21-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b6281ce1bdfa43e44cb789b225eff7ca1a601750a63c55dfa208580b9339c45
|
|
| MD5 |
05f0bfec158405afdf6bc3e64460d711
|
|
| BLAKE2b-256 |
e510dc9d56d455152dadba213efef893686118aba9f8429009edad482bbeea36
|
Provenance
The following attestation bundles were made for python_ironcad-0.1.21-py3-none-any.whl:
Publisher:
release.yml on IronCAD/python-ironcad
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_ironcad-0.1.21-py3-none-any.whl -
Subject digest:
1b6281ce1bdfa43e44cb789b225eff7ca1a601750a63c55dfa208580b9339c45 - Sigstore transparency entry: 1394441255
- Sigstore integration time:
-
Permalink:
IronCAD/python-ironcad@85644fad891e428e32617e1063687e44dad15274 -
Branch / Tag:
refs/tags/v0.1.21 - Owner: https://github.com/IronCAD
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@85644fad891e428e32617e1063687e44dad15274 -
Trigger Event:
push
-
Statement type: