Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
JBerns
in reply to: JBerns

@Curtis_Waguespack / @Michael.Navara,

Apparently you have to post on the forum in order to find the mistake in your own code.

I was constraining two components in a subassembly.

The subassembly was being created on the fly from a template.

What I did not notice, until NOW, was that the 'Return_Rail_Liner_Thickness' parameter was not defined in the template.

I had used similar code using expressions to constrain top-level components - where the parameter WAS defined.

Can't constrain in a subassembly if parameter is missing. That explains why offset=0 worked, but an expression with the parameter name failed.

Thank you all for helping me find this embarrassing mistake.

 

Regards,

Jerry

-----------------------------------------------------------------------------------------
CAD Administrator
Using Inventor 2022
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional