简体   繁体   English

Solidworks API - 视图是否为空?

[英]Solidworks API - Is view empty?

Using Solidworks API, how can I find a drawing view is empty?使用Solidworks API,如何发现图纸视图为空?

Same is the case with Sketch object. Sketch object 也是如此。

I have searched the help file but can't find anything relevant.我已经搜索了帮助文件,但找不到任何相关内容。

Most empty views are caused by Solidworks not being able to find the referenced document.大多数空视图是由于 Solidworks 无法找到参考文档造成的。 You can check this with IView::ReferencedDocument.您可以使用 IView::ReferencedDocument 进行检查。 If it returns null, there's your problem.如果它返回 null,那就是你的问题。 If it returns filepath, check if it exists.如果它返回文件路径,请检查它是否存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM