Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Multibody and Ipart

9 REPLIES 9
SOLVED
Reply
Message 1 of 10
halganabi
340 Views, 9 Replies

Multibody and Ipart

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

9 REPLIES 9
Message 2 of 10
A.Acheson
in reply to: halganabi

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
Message 3 of 10
Frederick_Law
in reply to: halganabi


@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

Message 4 of 10
JelteDeJong
in reply to: halganabi

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

Message 5 of 10
halganabi
in reply to: Frederick_Law

the issue with this that you can not make components 

Message 6 of 10
halganabi
in reply to: JelteDeJong

Yes this works!
Thanks alot
Message 7 of 10
Frederick_Law
in reply to: halganabi


@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

Message 8 of 10
halganabi
in reply to: Frederick_Law

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

Message 9 of 10
Frederick_Law
in reply to: halganabi

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

Message 10 of 10
halganabi
in reply to: halganabi

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.

Post to forums  

Technology Administrators


Autodesk Design & Make Report