Hello,
we need to add certain parts which differ from project to project. These are specific parts placed in a folder of the projects workspace.
As these are normal IPTs I want to programm that the runtime user is capeable to add this parts to his ETO generated model without
them disappearing again after the next update. ( This would happen if we simply use the "place" command )
There is a post from 2007 Title : "programmatically adopt a part" but I can not find any example coding for this.
Fixed Parts seems to offer the capability to let the user choose which part he wants to add.
Does anyone know how to do this ?
Thank you / Regards
Timo
Solved! Go to Solution.
Solved by AlexKorzun. Go to Solution.
Hi Timo,
Did you try using Inventor Fixed Part (IvFixedPart) Design?
In most cases, the only Parameter you have to specify is InventorFileName, to indicate the full path to the IPT file.
I like to try this .... 🙂
Child FixedPump As :FixedPart
InventorFileName ="W:\Job Folder\ORE\ETO_Aufträge_BACKUP\100166619_10_ETO_M2014Vault\Pump"
End Child
but it won't compile
Thank you / Regards
Timo
The Design is IvFixedPart.
Also, you have to include the fileName.ipt into InventorFileName
<%%Category("FX"),_ %%PEEditorType("SelectFile")>_ Parameter Rule FXFileMotor As String = "" <%%Choices("0|1"),_ %%Category("FX"),_ %%ChoicesDelimiter("|")>_ Parameter Rule FXMotor? As Integer = 0 Child FixedMotor As ( If FXMotor? = 1 Then :IvFixedPart Else :Nulldesign) InventorFileName = FXFileMotor End Child
Perfect Thank you !
Hi TIMOHART,
Just one question. Why are you using Integer variable instead of Boolean?
<%%Category("FX")> _
Parameter Rule FXMotor? As Boolean = False Child FixedMotor As ( If FXMotor? Then :IvFixedPart Else :Nulldesign) InventorFileName = FXFileMotor End Child
HI Lesoux ,
you are right - there is actually no point of doing this with integer .
Just historically grown...:)
Thank you / Regards
Timo