Khushi Posted December 17, 2022 Report Share Posted December 17, 2022 Hello I have an element dependent on some parameter then do I need to use the parameter name or id in the dependency expression. For example, I have a parameter WIDTH <ipxact:parameter parameterId="WIDTH_ID" resolve="user" type="int"> <ipxact:name>WIDTH</ipxact:name> <ipxact:value>8</ipxact:value> </ipxact:parameter> and one of the port left dimension depends on this parameter should I use the parameter name or id in the expression ? <ipxact:vector> <ipxact:left>WIDTH-1</ipxact:left> <ipxact:right>0</ipxact:right> </ipxact:vector> or <ipxact:vector> <ipxact:left>WIDTH_ID-1</ipxact:left> <ipxact:right>0</ipxact:right> </ipxact:vector> Which one is correct ? Thank you Quote Link to comment Share on other sites More sharing options...
Jason H Posted December 19, 2022 Report Share Posted December 19, 2022 Your second case is correct. Always the parameterId. You can obviously make the parameterId the same as the name. On the other extreme, some editors, like kactus2, use UUIDs for the parameterId but always show the parameter name in the UI to abstract away the ID referencing details. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.