Hi ! corpus 6 pro
I created a script that adds a drawer..I would like to know if something can be added to the script where it can open the ‘Insert element” window where I can choose the overlap number of elements when I click on the icon (see the picture below)
the script looks like this
procedure AMW;
var
elm:telement;
d:tdaska;
begin
elm:=LoadParentedElement(e,prgfolder+’Elmsav\Drawers_Blum\AMW.e3d’);
end;
begin
AMW;
end.
Thanks!

You can’t call the system dialog “Insert element”, but you can make your own.
All necessary visual components for such a window are available in scripts. If you have the RC version of Corpus, there is a script to add C/L profiles. It contains all the components that the “Insert element” has.
Script C&L profiles v.2. will only be useful if you have Corpus RC. The reason for this is that this script uses a specially developed library of pascal procedures and functions. That library is not available in “regular” versions of Corpus.
However, I believe that even in your version of Corpus there are some scripts that can be used to “borrow” the code and learn.
Write me which version of Corpus you use and if there are any scripts in the installation. Look for them in the folder: “Corpus X/skripte/” they have the extension *.cps.
Additional tip: ChatGPT is very good at analyzing existing code and suggesting new ones.
I use corpus solution v6.2.100.308 and it has the script for C/L profiles but not an improved version, but that’s not important because I used the script but in more special situations because I already have cabinets made for profiles, I wanted to know if the C/L v2 script is complete so I can study it and at least try to make a window from where I can load multiple elements, the problem is that I don’t understand Croatian and it’s hard for me to figure it out
I want to thank everyone from this forum for the all support..I’m not advanced in coding and what I did in corpus was just edited with your help.
now regarding your answer I saw C & L profiles v2.0 posted here on the forum and I want to know if the archive includes the complete script or just the modified files for version 2.
thank you