- 积分
- 8888
- 明经币
- 个
- 注册时间
- 2012-8-7
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
请问各位老师,如何explode炸开Mtext实体?在AcadMText中,没有发现explode的方法
AcadSelectionSet MTextSelectset;
MTextSelectset = AcadDocpart.SelectionSets.Add("MTextSelection");
Int16[] MTextFilterType = new Int16[1];
object[] MTextFilterData = new object[1];
MTextFilterType[0] = 0;
MTextFilterData[0] = "MTEXT";
double[] MTextpoint01 = new double[3];
double[] MTextpoint02 = new double[3];
MTextpoint01[0] = 0; MTextpoint01[1] = 0; MTextpoint01[2] = 0;
MTextpoint02[0] = 1000; MTextpoint02[1] = 1000; MTextpoint02[2] = 0;
MTextSelectset.Select(AcSelect.acSelectionSetAll, MTextpoint01, MTextpoint02, MTextFilterType, MTextFilterData);
AcadMText[] T = new AcadMText[MTextSelectset.Count];
AcadDocpart.SendCommand("explode" + Convert.ToChar(Keys.Enter).ToString() + Convert.ToChar(Keys.Enter).ToString());
if (MTextSelectset.Count > 0)
{
textBox1.Text += DwgPaths[n] + "存在多行文字,程序处理炸开为单行文字";
for (int i = 0; i < MTextSelectset.Count; i++)
{
T[i] = (AcadMText)MTextSelectset.Item(i);
//如何炸开?
}
}
AcadDocpart.SelectionSets.Item("MTextSelection").Delete();
|
|