AutoCAD cant save after running my command.

a.kouchakzadeh
Advocate
Advocate

AutoCAD cant save after running my command.

a.kouchakzadeh
Advocate
Advocate

Hello people

 

I noticed one of my applications causes trouble when user wants to save drawing.

AutoCAD pops a message :

akouchakzadeh_0-1719743479566.png

 

I couldn't figure out when this happens because some times this message pops up, some times not.
But I think its when the command stays in jig for a long time. Im not sure though.

My command is just a simple jig, it jigs a line, and adds it to the database along with a polyline on the line.

does any one have any idea what can cause this?

0 Likes
Reply
Accepted solutions (1)
364 Views
3 Replies
Replies (3)

norman.yuan
Mentor
Mentor
Accepted solution

It is difficult to suggest anything without seeing/knowing the code. It could be that there is entity not being added/opened to/from database correctly, or not disposed correctly, or with bad attribute data (XData/ExtensionDictionary...) attached.

 

However, you firstly have to identify the conditions when "sometimes this message pops up". If you can reliably reproduce the issue, you probably then will realize what is wrong in the code.

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes

ActivistInvestor
Advisor
Advisor

AUDIT?

0 Likes

a.kouchakzadeh
Advocate
Advocate

I tried to trace the issue based on what you suggested and you were right. it was caused by adding an object incorrectly to database. thanks for help sir.

thanks for your reply as well Tony.

0 Likes