Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

c# .net, drag and drop button to import .fbx and .obj file

c# .net, drag and drop button to import .fbx and .obj file

dineshkUK68R
Explorer Explorer
1,611 Views
4 Replies
Message 1 of 5

c# .net, drag and drop button to import .fbx and .obj file

dineshkUK68R
Explorer
Explorer

I am simply trying to import .fbx, .obj and .dae files on custom UI buttons click. UI is very simple as You can see in the attached image. Each button has a file path.

Screenshot (118).png

 

Is it possible with 3ds max .net api?

If possible, please give me some link to study the document or some code snippets to understand the process for doing this.

As of now I am completely new and I am not getting any good references to study.

Please Help, 

Thank you

 

 

0 Likes
1,612 Views
4 Replies
Replies (4)
Message 2 of 5

istan
Advisor
Advisor

did you try google "3ds maxscript dotnet drag and drop"?

Message 3 of 5

dineshkUK68R
Explorer
Explorer

yes, i have been tried.

but i got my solution through a guess from this link

https://forums.autodesk.com/t5/3ds-max-programming/c-net-drag-and-drop-button-to-import-fbx-and-obj-...

there is a line in this solution :- var layir = glob.COREInterface19.LayerManager.GetLayer("100_");

So,i started finding something in the global.COREInterface and i got ImportFromFile method in COREInterface14

 

IGlobal global = Autodesk.Max.GlobalInterface.Instance;
IInterface14 ip = global.COREInterface14;
var lays = global.COREInterface14.ImportFromFile(string name, bool suppressPrompts, IClass_ID importerID);

 

This is working on button click and I am able to import file but don't know this is the right way to do this or not.

Still looking for the documentation with dotnet.

Please provide me the link of dotnet documentation of 3dsmax 2019 sdk.

Thank you 

 

 

0 Likes
Message 4 of 5

istan
Advisor
Advisor

Sry, but your topic says dotnet drag/drop..

I'd simply call an MXS from C#..

ExecuteMaxscriptCommand() or so..

https://knowledge.autodesk.com/support/3ds-max/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/3DSMa... 

Message 5 of 5

dineshkUK68R
Explorer
Explorer

d&d is the final but it is fine for the time being it is working on button click.

I have no idea about maxscript, i will read on it.

Thanks for the link.

0 Likes