How do I edit the values in an iPart table I have placed in an assembly?
Components.AddiPart("b:1", "C:\VaultWS\generic_file_path\TestShape.ipt", findRow := {"L", 10 }, position := Nothing, grounded := False, visible := True, appearance := Nothing) 'component b:1, edit the current rows value of L = 11 'save changes iLogicVb.UpdateWhenDone = True
I have simplified what I'm doing. But for context I am creating an assembly template that prompts the user with a series of inputs for a component, and if it it exists it places that iPart, and if it doesn't exist it copies the row and enters users parameters in the new row before placing the new part. I am stuck on the part where it changes the parameters in the row.
Thanks,
Harvey
Is the factory file located in the workspace or in a library location? If library then the file will be read only. Here is an article to directly edit the factory file. Written in VBA
And a handy way to add a row is to copy another row and start to edit its value. In fact without using the edit excel method there isn't another way.
Syntax
iPartTableRow.Copy( [NewMemberName] As String ) As iPartTableRow
Can't find what you're looking for? Ask the community or share your knowledge.