I'm trying to use this block of code in a CFG file
%if $(_USTN_USERINT)$(_USTN_USERINTNAME)\*.dgnlib != $(_MDSHA_USERROOT)*.dgnlib
But get an error message in a command prompt "expect BoolInt expression, (filename, line number)
What am I doing wrong?
Hi Chuck,
it's not quite clear what do you want to test. Using *.dgnlib wildcards produces list of *.dgnlib file, which is not comparable object.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
I really want to compare the actual strings.
I think I got this to work:
%if concat($(_USTN_USERINT)$(_USTN_USERINTNAME),"\*.dgnlib") != concat($(_MDSHA_USERROOT),"*.dgnlib")
Charles (Chuck) Rheault CADD Manager
MDOT State Highway Administration Maryland DOT - State Highway Administration User Communities Page
yes, now it seems correct as your comparing strings itself and not the content of configuration variables.
P.S. Looks like your footer / signature has grown, now it seems to be 80% of the whole post ;-)
This was my final solution - the earlier post code failed for the wrong reason:
1_TEMP = $(concat (_USTN_USERINT,_USTN_USERINTNAME,"\*.dgnlib")) 2_TEMP = $(concat (_MDSHA_USERROOT,"*.dgnlib")) %if $(1_TEMP) != $(2_TEMP) MS_DGNLIBLIST > $(_MDSHA_USERROOT)*.dgnlib %endif %undef 1_TEMP %undef 2_TEMP
I could not resolve the proper syntax for the Boolean comparison using the concat function so I used two temporary variables.
Answer Verified By: caddcop