How to know the the file's path of XXXPlugIn.rhp ?( C++/Rhino 5 )

There are some .stl files with XXXPlugIn.rhp.
I want to find XXXPlugIn.rph file path to load those .stl files.
Can I find it ?

I’m not sure what you are looking to do. Is the XXXPlugIn.rhp yours? What do you need the path to the plug-in to load STL files when you can just script the Open or Import command?

Yes, It is mine.
I have some .stl file put together with my Plugin.
Those .stl files are standard parts.
So, I need a path to input the .stl file automatically when users need them.

Use either CRhinoPlugIn::GetPlugInFolder or CRhinoPlugIn::GetPlugInFileName.

See rhinoSdkPlugIn.h for details.

I got it.
Thanks so much for your advice. :smile: