Skip to content

eLockViolation exception when creating table from context command #97

Answered by gswifort
kwollaston asked this question in Q&A
Discussion options

You must be logged in to vote
def func():
    lock = Ap.AutoDocLock() 
    table = ...
    id = db.addToModelspace(table)
    return id

id = func()
table = Db.Table(id)

@CEXT-Dan will probably explain better why it works this way.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@kwollaston
Comment options

@gswifort
Comment options

Answer selected by kwollaston
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
3 participants