Set Parameter By Name gets dereferencing warning

I’ve been asked to create a tool the will provide a sheet count and a number from a list, i.e. “3 of 27”, on a titleblock. I’ve created the shared parameters “Sheet Count” and “Sheet Number of” to see if I can populate them from a filtered list. I get right to the end with everything looking fine but then I get the “Warning: Internal error, please report: Dereferencing a non-pointer.”

I know I’m missing something basic, I just don’t know what.

Thank you,
Jon

Make sure your parameter values are supposed to be numbers.
Also, your SetParameter node for “Sheet Number of” shouldn’t be set to cross-product.

Are the shared parameters you’ve created set to include a number or a string?

And, as Nick mentions, the Element.SetParameterByName shortest instead of cross-product.

Nick,

The shared parameters are both numbers, they were initially integers. I’ve tried all 3 lacing options on the Element.SetParameter node.

Ah.
You’re filtering the Sheet Number instead of the actual sheet so your element input isn’t an element.

1 Like

Doh!

I switched the list filter input to the all elements of category, and it worked.

Next I’m going to add something that will pull the list of all of the first letters to populate the String Contains value and output the appropriate values to the appropriate sheets. I have no idea how to do this, but I’ll give it a whack.

Thank you!!

sheet number2|690x256

It’s doable but you’ll have to be very particular with your list structure. Check out list levels if you’re unfamiliar.
image