What I mean is that if you could post the error message that is displayed in the command window. It is difficult to trace the reason of the error in the Message Box because it is not detailed.
I have seen in the snapshot that the form is not properly loaded. Did you saved the createGrating.pmlfrm file in the PMLLIB folder? If not, instructions below:
1. Create your own folder in the local PMLLIB; to know the path of the library, type in the command line: Q EVAR PDMSEXE 2. Look for the PMLLIB folder in the Environment variable specified in the above command output and then Create your Folder within.
3. Put all your PDMS macro files to your folder in the local PMLLIB (pmlfrm, pmlfnc, pmlobj & etc).
4. Type in the PDMS command: PML REHASH ALL 5. To call the Create Structural Grating Form, type in the PDMS command: SHOW !!CREATEGRATING
Try to check if the createGrating.pmlfrm file is registered in the pml.index.
Command: q var !!pml.getpathname('creategrating.pmlfrm') If the above command will result: (44,33) FNF:File not found, then the file is not registered in the index otherwise it will gives you the file directory being saved to.
Your PDMSEXE environment variable is set to multiple path, it is quite confusing where is the right location of your local PMLLIB.
Another way:
1. Type in the PDMS command: Q VAR !!EVAR('PMLLIB').SPLIT() If it will output the path array of PMLLIB, just select one of array and then browse to the specified path.
2. Create your own FOLDER under the PMLLIB and the put [COLOR=#3E3E3E]all your PDMS macro files to your FOLDER in the local PMLLIB (pmlfrm, pmlfnc, pmlobj & etc).
[/COLOR]3. Navigate back to the PMLLIB folder and look for the file pml.index and then DELETE the pml.index file. Do not worry, it will be create again.
4. Type in the PDMS command: PML REHASH ALL
5. [COLOR=#3E3E3E]To call the Create Structural Grating Form, type in the PDMS command: [/COLOR]SHOW !!CREATEGRATING
There is no other file that is link to that macro file. The button pixmap that is used is also from the Aveva default icons. If you could not follow the instructions that I have explained, it is good to ask some help from your PDMS Administrator on how to load the PDMS pml form. The form is tested by my colleagues and it is working fine with PDMS 12.0SP6 and PDMS 12.1SP4. I expect also that you did not change any of the code inside in the form definition.
it work just great on me..
but for penetration wise this might not suitable.
for look real this are the way... on the other hand it might not the proper way.
looking to your code...and I can see that your form is using pictures which you didn't attached. Thats why when open the form it gives us error FNF: File not found. Can you please upload all files for this form.
i am working on a PDMS global server,can not save any pmlfrm in the global pml library, is there any way so that i can keep them locally and use button on toolbar to call the pmlfrm same as a macro.