设置了DBText的对齐方式,和对齐点,但DBText位置没变怎么解决
在当前文档里面这么做没问题。如果我在一个没在CAD里面打开的Database里面这么设,文本的位置不会变,非要设置Position才能变,设置Position还要根据对齐方式和对齐点去反算,而且还很不准,不想这样做。盼求大神解决:handshake
// For adding a text with an alignment to an in-memory database
// set the working database before using AdjustAlignment
Database prevWorkingDb = HostApplicationServices.WorkingDatabase;
HostApplicationServices.WorkingDatabase = db;
dbText.AdjustAlignment(db);
HostApplicationServices.WorkingDatabase = prevWorkingDb;
页:
[1]