EngProgrammer
Aerospace
Dear Forum,
I am trying to cast a feature that was created with the Features.ExtensionBuilder class into a body. The reason why I want to cast it into a body is because I want to sew two sheet bodies that were created from this class using the Features.SewBuilder class. After journaling the sew operation the journal resulted in this following line of code, CType(workpart.Bodies.FindObject("SHEET_BODY(41)"), Body). However, I want to replace this code with the proper casting functionality. I've tried the following to try and cast the feature into a sheet body, CType(NXObjectManager.Get(ExtendLeftBottomSurface.Tag), Body) Where the ExtendLeftBottomSurface is an extension feature object resulting from the creating the surface with the Features.ExtensionBuilder class.
I am always having difficulties with casting within NXOpen.
Any suggestions??
I am trying to cast a feature that was created with the Features.ExtensionBuilder class into a body. The reason why I want to cast it into a body is because I want to sew two sheet bodies that were created from this class using the Features.SewBuilder class. After journaling the sew operation the journal resulted in this following line of code, CType(workpart.Bodies.FindObject("SHEET_BODY(41)"), Body). However, I want to replace this code with the proper casting functionality. I've tried the following to try and cast the feature into a sheet body, CType(NXObjectManager.Get(ExtendLeftBottomSurface.Tag), Body) Where the ExtendLeftBottomSurface is an extension feature object resulting from the creating the surface with the Features.ExtensionBuilder class.
I am always having difficulties with casting within NXOpen.
Any suggestions??