Multibody and Ipart

Multibody and Ipart

halganabi
Contributor Contributor
641 Views
9 Replies
Message 1 of 10

Multibody and Ipart

halganabi
Contributor
Contributor

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

0 Likes
Accepted solutions (1)
642 Views
9 Replies
Replies (9)
Message 2 of 10

A.Acheson
Mentor
Mentor

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.

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 10

Frederick_Law
Mentor
Mentor

@halganabi wrote:

As u know we can't use the Multibody and ipart at the same time,


Are you sure?

IV2023.4

MultiBodyiPart-01.jpg

0 Likes
Message 4 of 10

JelteDeJong
Mentor
Mentor
Accepted solution

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.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 5 of 10

halganabi
Contributor
Contributor

the issue with this that you can not make components 

0 Likes
Message 6 of 10

halganabi
Contributor
Contributor
Yes this works!
Thanks alot
0 Likes
Message 7 of 10

Frederick_Law
Mentor
Mentor

@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:

MultiBodyiPart-02.jpg

0 Likes
Message 8 of 10

halganabi
Contributor
Contributor

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

0 Likes
Message 9 of 10

Frederick_Law
Mentor
Mentor

Please attach your iPart file.

I can make different sheet metal iPart and put them in drawing with flats.

Using IV2023.

MultiBodyiPart-03.jpgMultiBodyiPart-04.jpgMultiBodyiPart-05.jpg

0 Likes
Message 10 of 10

halganabi
Contributor
Contributor

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

0 Likes