05-22-2019
02:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
05-22-2019
02:37 AM
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
