Thank you for contacting support. Unfortunately, there is no way to detect the Visio document type. We have logged this feature request under ticket id DIAGRAMJAVA-50306 in our issue tracking system. Your post has also been linked to this ticket. We’ll let you know once it is supported. We’re sorry for the inconvenience caused.