使用anycad进行开发的时候,有好多的问题,而且网上的资源特别少,都灭有弄明白到底怎么回事,一直都是运行不了
OpenFileDialog dlg = new OpenFileDialog();
dlg.Filter = "SKP (*.skp)|*.skp|All Files(*.*)|*.*";
if (DialogResult.OK != dlg.ShowDialog())
return;
ModelReader reader = new ModelReader();
GroupSceneNode node = reader.LoadFile(new AnyCAD.Platform.Path(dlg.FileName));
if (node != null)
{
renderView.ShowSceneNode(node);
}
打开的是一个skp的文件。但是走到if判断node是不是为null的时候就跳过去了。因为node是null
有没有人知道怎么回事?