AnsweredAssumed Answered

ModelName is erased after using InsertMoveFace function

Question asked by Sina Mohseni on Jun 14, 2016
Latest reply on Aug 12, 2016 by Mostafa Abbasi

     Hi all,

 

    I use "ModelName" to assign names to faces and save some description for each face.

 

bStatus = swEntity.Select4(False, Nothing)         ' Select face

swEntity.ModelName  = Temp_strings                 ' write name in swEntity.ModelName

 

    It usually works pretty well, but when I move faces using "InsertMoveFace", suddenly all ModelName from all other faces in the part are erased. I mean the translated face saves its name, but ModelName for all other fixed faces in the part become empty.  I also tried "InsertMoveFace3".

 

bStatus = swEntity.Select4(False, Nothing)         ' Select face

swEntity.ModelName  = Temp_strings                 ' write name in swEntity.ModelName

Part.SelectionManager.SetSelectedObjectMark 1, 1, 0

Set myFeature = Part.FeatureManager.InsertMoveFace(0, False, 0, trans)

'Set myFeature = Part.FeatureManager.InsertMoveFace3(0, False, 0, trans, 0, 0, swEndCondUpToSurface, 0)

 

   Any Idea why it happens?

 

Thank you,

Sina

Outcomes