Hello,
I would like to know how to get LAST_DATE_TIME value in an ULP.
It doesn't seem to be a schematic attribute, neither the frame one.
I can't find the answer on the web or in the documentation.
Thank you for your help.
Best regards,
Grégory
Hello,
I would like to know how to get LAST_DATE_TIME value in an ULP.
It doesn't seem to be a schematic attribute, neither the frame one.
I can't find the answer on the web or in the documentation.
Thank you for your help.
Best regards,
Grégory
On 2/07/2016 1:47 a.m., Grégory 73 wrote:
Hello,
I would like to know how to get LAST_DATE_TIME value in an ULP.
It doesn't seem to be a schematic attribute, neither the frame one.
I can't find the answer on the web or in the documentation.
................
Grégory
Hi
You need not search anywhere other than the HELP in Eagle.
The ULP document is simply an extract from the HELP
The following will show you the date if the frame contains a
>LAST_DATE_TIME
>LAST_DATE_TIME is in the symbol of a device so in the schematic you
need to drill down to the texts of the symbol in the gate of an instance.
HTH
Warren
string result,cmd;
if(!sheet) {dlgMessageBox("Run this ULP in the Schematic Editor"); exit(0);}
sheet(S){
S.instances(I){
sprintf(result,"Instance: %s\n", I.name);
cmd+=result;
I.gate.symbol.texts(SYMTXT){
sprintf(result,"SymbolTexts: %s\n", SYMTXT.value);
cmd+=result;
}
}
}
dlgMessageBox(cmd);
Hi,
OK. Thank you. This is strange that these datas (LAST_DATE_TIME, DRAWING_NAME, ...) are attached to the sheet. I would have expected to have them attached as attributes of the schematics.
Moreover, when I get them from the sheet, I need to know in which order the texts are coming because UL_TEXT don't have a name attribute. This is not very clean.
I would have expected some builtin functions such as variant() which returns the current variant.
Anyway, your solution works. Thank you very much.
Best regards,
Grégory
Hi,
OK. Thank you. This is strange that these datas (LAST_DATE_TIME, DRAWING_NAME, ...) are attached to the sheet. I would have expected to have them attached as attributes of the schematics.
Moreover, when I get them from the sheet, I need to know in which order the texts are coming because UL_TEXT don't have a name attribute. This is not very clean.
I would have expected some builtin functions such as variant() which returns the current variant.
Anyway, your solution works. Thank you very much.
Best regards,
Grégory