As u know we can't use the Multibody and ipart at the same time,
I have Multibodies part and have a parameter Length, so I want this parameter to be change and save as new and going to next in list,
For exampe i am saving the list of length in Excel or Text file,
Is there an ilogic rule or VBA code that :
read a value of "Length" from External Excel or any thing save it in parameter "Length " make Update save as new part and go to the next value of Length List
Solved! Go to Solution.
Solved by JelteDeJong. Go to Solution.
Hi @halganabi
I'm not sure I follow. Saving as of the part is just creating another part but you mentioned you wanted iparts. Can you attach some images of what is changing? If you have a multibody part what you really need is an assembly/iassembly with the parts of different material within.
@halganabi wrote:As u know we can't use the Multibody and ipart at the same time,
Are you sure?
IV2023.4
You could try something like this:
GoExcel.Open("C:\forum\filename.xlsx", "Sheet1")
For i = 2 To 10
Dim length As String = GoExcel.CellValue("B" & i)
Parameter("length") = length
Dim newFileName = String.Format("C:\forum\MyPart_l{0}.ipt", length)
ThisDoc.Document.SaveAs(newFileName, True)
Next
This rule assumes that you have an excel file "C:\forum\filename.xlsx" and a "Sheet1". the list of lengths starts on cell B2 and ends on cell B10
Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Blog: hjalte.nl - github.com
@halganabi wrote:the issue with this that you can not make components
What do you mean by "can not make components"?
Probably I'm missing something.
I got 3 iParts, one with 2 bodies, the other 2 single body.
All in assembly:
yes but i don't want to use these in Assembly,
i want them to be generated as .ipt seperately so i can use each for idw
and i want to generate flat sheet for each, this require the body to be seperate file from the main part to be able to generate the flat sheet
yes but i don't want to use these in Assembly,
i want them to be generated as .ipt seperately so i can use each for idw
and i want to generate flat sheet for each, this require the body to be seperate file from the main part to be able to generate the flat sheet
Please attach your iPart file.
I can make different sheet metal iPart and put them in drawing with flats.
Using IV2023.
your picture shown ipart with one solid only, my issue with multi solid and using ipart same time,
please find attached ipart file and check if it is possible to generate flat sheet for all cases and can be viewed at seperate items in idw
Can't find what you're looking for? Ask the community or share your knowledge.