Creating the Powermill.dll file

Creating the Powermill.dll file

Andrewharlow2
Contributor Contributor
1,102 Views
3 Replies
Message 1 of 4

Creating the Powermill.dll file

Andrewharlow2
Contributor
Contributor

Hi,

I was trying to create a plugin and have been trying on and off. everytime i try to create the powermill.dll file i have issues. is there an updated version as to how to create the powermill dll file for plugins? or even a more specific manual for creating plugins? i want to use plugins with the api so it works with the open instance of more than one powermill. it creates the strong name but wont read the pmill.exe file. i also notice under the a7.0 folder that it doesn't have the tlbimp.exe file at the end under x64

Thanks

0 Likes
Accepted solutions (1)
1,103 Views
3 Replies
Replies (3)
Message 2 of 4

Sean570
Advocate
Advocate

Attached are the two guides that I have but they are a bit older. Each one explains how to create the dll a little bit differently, so maybe it'll help?

Once I'm in the pmill.exe folder (in the command prompt) I enter this (change anything that says 19.0.10 to whatever powermill version you have. Also make sure that your microsoft SDK folder is set correctly, it may not be what I have.):

SET PATH=%PATH%;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64


sn.exe -k key_pair.snk


tlbimp.exe pmill.exe /keyfile:key_pair.snk /asmversion:19.0.10

I believe that is all I had to do, it's been a little while since I've had to create the dll, but I hope that'll help.

0 Likes
Message 3 of 4

Andrewharlow2
Contributor
Contributor

Where are you getting the amsversion number from?? I've tried a few different ways of going about that. One being in the "about"  of a powermill session. I also noticed in the properties of the powermill icon. I've also noticed one in the directory that the pmill.exe file is in.

0 Likes
Message 4 of 4

Sean570
Advocate
Advocate
Accepted solution

Your powermill version should be on the about page. I believe if you have the newest version of powermill it would be 2021.0.1  If there are any numbers after that then I believe you should ignore it. on my about page it actually shows Version 19.0.10.64.1182248 but only the first three numbers matter. So long as this has not changed since 2015 it should work.

0 Likes