Is it possible to register a file extension for a plugin?

This topic has been viewed 7594 times and has 1 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
member1
Posts: 1
Joined: Wed May 20, 2020 3:14 pm

Is it possible to register a file extension for a plugin?

Post by member1 »

I have a scene importer plugin. I want my file type to be opened by the program(File->Open or start a program with parameters), but processed by the plugin. Is it possible?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Is it possible to register a file extension for a plugin?

Post by Puybaret »

You can't change the extensions of the files that Sweet Home 3D is able to open from a plug-in.
ContentManager.ContentType contains a USER_DEFINED option which lets a developer define some customized file extensions in a subclass of FileContentManager (like in Export to HTML5 plug-in), but this won't change the extension of the files opened by Sweet Home 3D.
Emmanuel Puybaret, Sweet Home 3D creator
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest