Modulus operator buggy?
Modulus operator buggy?
(OP)
Is there some trick when using the modulus operator "%" in expressions?
It seems that it doesn't work consistently - sometimes I get an syntax error and other times it just works just for the same expression.
When entering the expression as soon as % is entered the auto-completion stops working. This is all inside the expression editor. Using the mod() function works in the same context by the way...
For example: "(1%level)*(stock_dia/2+gap)" gives an syntax error while "mod(1,level)*(stock_dia/2+gap)" just works.
I'm using NX9.0.1.3
It seems that it doesn't work consistently - sometimes I get an syntax error and other times it just works just for the same expression.
When entering the expression as soon as % is entered the auto-completion stops working. This is all inside the expression editor. Using the mod() function works in the same context by the way...
For example: "(1%level)*(stock_dia/2+gap)" gives an syntax error while "mod(1,level)*(stock_dia/2+gap)" just works.
I'm using NX9.0.1.3





RE: Modulus operator buggy?
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: Modulus operator buggy?
It seems that it never works if the value has units and it stops working when the expression gets more complicated.
CODE -->
RE: Modulus operator buggy?
RE: Modulus operator buggy?
test_x=test_flag*(stock_dia/2+gap)
As for the 'constant' issue, I'm not surprised ay all.
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: Modulus operator buggy?
NX sometimes (lately more often than not) makes me