equal
deleted
inserted
replaced
924 ref_local_id = connections[0].getrefLocalId() |
924 ref_local_id = connections[0].getrefLocalId() |
925 blk = body.getcontentInstance(ref_local_id) |
925 blk = body.getcontentInstance(ref_local_id) |
926 if blk is None: |
926 if blk is None: |
927 return None |
927 return None |
928 |
928 |
|
929 if not hasattr(blk, "inputVariables"): |
|
930 return None |
|
931 |
929 for invar in blk.inputVariables.getvariable(): |
932 for invar in blk.inputVariables.getvariable(): |
930 if invar.getformalParameter() == "EN": |
933 if invar.getformalParameter() == "EN": |
931 if len(invar.getconnectionPointIn().getconnections()) > 0: |
934 if len(invar.getconnectionPointIn().getconnections()) > 0: |
932 if blk.getinstanceName() is None: |
935 if blk.getinstanceName() is None: |
933 var_name = "%s%d_ENO" % (blk.gettypeName(), blk.getlocalId()) |
936 var_name = "%s%d_ENO" % (blk.gettypeName(), blk.getlocalId()) |