1、通用做法,可以通过acedGetVar(const ACHAR* sym, struct resbuf* result);函数来获取变量,通过acedSetVar()函数来设置变量
2、如果是某些数据库AcDbDatabase相关变量,可以通过下面示例获取变量
Adesk::Int16 pdmode = acdbHostApplicationServices()->workingDatabase()->pdmode();
通过相对应的方法设置变量
acdbHostApplicationServices()->workingDatabase()->setPdmode(pdmode);
标签:AutoCAD,变量,acdbHostApplicationServices,获取,pdmode,设置,workingDatabase From: https://www.cnblogs.com/unicornsir/p/17507768.html