05-21-2019
11:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
05-21-2019
11:57 PM
Hoping that below iLogic code may helpful.
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)
Dim oDef As PartComponentDefinition
oDef = Temp2.ComponentDefinition
oDef.Parameters.Item("w") = InputBox("Width", "Size", "10")
InventorVb.DocumentUpdate()
Temp2.SaveAs(TargetFile, True)
Temp2.Close
Thanks and regards,
CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network
