object selSet = acadDoc.Get("ActiveSelectionSet");
acadDoc.Invoke(
"Export",
System.IO.Path.ChangeExtension(db.Filename, "wmf"),
"wmf",
selSet);
selSet.Invoke("Delete");
public static void Save( this Document doc )
{
object acadDoc = doc.AcadDocument; // change to .GetAcadDocument() for 2013
acadDoc.GetType().InvokeMember( "Save",
BindingFlags.InvokeMethod, null, acadDoc, new object[0]);
}
[本日志由 tiancao1001 于 2021-11-12 05:16 PM 编辑]
|
暂时没有评论
发表评论 - 不要忘了输入验证码哦! |