본문 바로가기
  • Welcome!
VBA For Creo

Regenerate 코드

by ToolBOX01 2022. 12. 18.
반응형
Dim curSolid As IpfcSolid
Set curSolid = session.CurrentModel

session.SetConfigOption "regen_failure_handling", "resolve_mode"

Dim regenInstrs As New CCpfcRegenInstructions
Dim iRegenInstrs As IpfcRegenInstructions
Set iRegenInstrs = regenInstrs.Create(False, True, Nothing)
curSolid.Regenerate iRegenInstrs