Skip to content
Discussion options

You must be logged in to vote

Just a note, you should not mix Db and Ax if the object is opened, otherwise it’s undefined behavior.
Ax opens and closes on every function call, possibly changing the state of the DbObject

Make sure bref is closed or garbage collected before getting ax_bref

This is a flaw in AutoCAD’s .net API because your forced to have the Db object opened kForead to get the AcadObject, then all ‘set functions fail because the object is opened kForread

hope that makes sense

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gswifort
Comment options

gswifort Mar 18, 2025
Collaborator Author

Answer selected by gswifort
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