Skip to content
Discussion options

You must be logged in to vote

curDb
workingDb
setWorkingDb

curDb is the database from the current document

workingDb is short for AcDbHostApplicationServices::workingDatabase
https://help.autodesk.com/view/OARX/2025/ENU/?guid=OARX-RefGuide-AcDbHostApplicationServices__workingDatabase

setWorkingDb is short for
https://help.autodesk.com/view/OARX/2024/ENU/?guid=OARX-RefGuide-AcDbHostApplicationServices__setWorkingDatabase_AcDbDatabase_

usually curDb and workingDb are the same, but there may be times where you would set the working database to a side database.

PyRx/PyRxCore/PyAcDb.cpp

Lines 56 to 71 in cbcdbf2

static PyDbDatabase curPyDb()
{
if (curDoc() == nullptr)
PyThrowBadEs(eNoDocument);

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gswifort
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants