
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
can you tell what i want to do here. the commented code does not work.
i want to be able to open a part and change its size parameters before i open the assembly. this code will run as an external rule in a new empty file.
if i can do it without opening the part, that is even better.
'test can i open a part, change a param, then close part
Dim fname As String
fname ="C:\Workspace\my_prog\chan\F_BB_L.ipt"
Dim pDoc as PartDocument = ThisApplication.Documents.Open(fname,False)
pDoc = ThisApplication.Documents.Open(fname)
' these are just attempts to find a syntax that works
' i need the method to change the parameter
'param = pDoc.PartComponentDefinition.Parameter.Param("TKNS")
'pdoc.parameter.Param("TKNS") = 8
pdoc.Save
pdoc.Close
Solved! Go to Solution.