Inventor Engineer-To-Order (Read-Only)
Welcome to Autodesk’s Inventor ETO Forums. Share your knowledge, ask questions, and explore popular Inventor ETO topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use Fixed part to get Runtime User add a not adopted part.

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
TIMOHART
579 Views, 6 Replies

How to use Fixed part to get Runtime User add a not adopted part.

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 : "programmat​ically 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

ETO 2014 R2
HP Z420 / Win7 X64
16GB RAM
Nvidia Quadro K4000

6 REPLIES 6
Message 2 of 7
AlexKorzun
in reply to: TIMOHART

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.

 

Thank you,




Alex Korzun
Inventor-Revit Interop / Inventor-Fusion Interop / Inventor ETO
Autodesk, Inc.

Message 3 of 7
TIMOHART
in reply to: AlexKorzun

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

 

 

ETO 2014 R2
HP Z420 / Win7 X64
16GB RAM
Nvidia Quadro K4000

Message 4 of 7
AlexKorzun
in reply to: TIMOHART

The Design is IvFixedPart.

 

Also, you have to include the fileName.ipt into InventorFileName

Thank you,




Alex Korzun
Inventor-Revit Interop / Inventor-Fusion Interop / Inventor ETO
Autodesk, Inc.

Message 5 of 7
TIMOHART
in reply to: AlexKorzun

<%%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 !

ETO 2014 R2
HP Z420 / Win7 X64
16GB RAM
Nvidia Quadro K4000

Message 6 of 7
Lesoux
in reply to: TIMOHART

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
Win10 x64
Xeon E5-1630
32 Gb RAM
Quadro K5200

Inventor 2020.3.4, Build 373
Message 7 of 7
TIMOHART
in reply to: Lesoux

HI Lesoux ,

 

you are right - there is actually no point of doing this with integer .

Just historically grown...:)

 

Thank you / Regards

Timo

ETO 2014 R2
HP Z420 / Win7 X64
16GB RAM
Nvidia Quadro K4000

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report