Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

@Jam_Jumpin ,

 

Try below iLogic code.

 

TempFile="C:\Users\***\Target\temp_part.ipt"
TargetFile="C:\Users\***\Target\New file.ipt"

ThisDoc.Document.SaveAs(TempFile, True)

Dim Temp2 As PartDocument 
Temp2 = ThisApplication.Documents.Open(TempFile, True)

Dim oDef As PartComponentDefinition
oDef = Temp2.ComponentDefinition 

oDef.Parameters.Item("w").Expression = InputBox("Width", "Size", "10") 
 
Call Temp2.Update 

Temp2.SaveAs(TargetFile, True)

Temp2.Close

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network