Skip to main content
1-Visitor
May 11, 2017
Solved

Mapkey for reading an input.txt from a specific directory for the regeneration of the model?

  • May 11, 2017
  • 1 reply
  • 4620 views

Hi,

Is it possible to make a Mapkey so it reads an input.txt file (with value of my models parameters) to use it in the "Read File" regeneration option? The file is in a very specific directory, I does not move and has a fixed name (input.txt)

Nic.

Best answer by HamsterNL

Yes

First step is to create a part (or assembly) with one or more INPUT parameters. That will make the "Read File" available when you regenerate your part.

Then just record a new mapkey, click on Edit --> Regenerate --> Read File --> Enter the full filename

It will look something like this (I have named the mapkey qq)

mapkey qq @MAPKEY_NAMEqq;@MAPKEY_LABELqq;~ Command `ProCmdRegenPart`;\

mapkey(continued) #READ FILE;c:\temp\input.txt;\

mapkey(continued) ~ Activate `main_dlg_cur` `main_dlg_cur`;

1 reply

HamsterNL
HamsterNL18-OpalAnswer
18-Opal
May 12, 2017

Yes

First step is to create a part (or assembly) with one or more INPUT parameters. That will make the "Read File" available when you regenerate your part.

Then just record a new mapkey, click on Edit --> Regenerate --> Read File --> Enter the full filename

It will look something like this (I have named the mapkey qq)

mapkey qq @MAPKEY_NAMEqq;@MAPKEY_LABELqq;~ Command `ProCmdRegenPart`;\

mapkey(continued) #READ FILE;c:\temp\input.txt;\

mapkey(continued) ~ Activate `main_dlg_cur` `main_dlg_cur`;

1-Visitor
May 12, 2017

aaaaaahhhhh... thank you!!! So that was the trick!! Put the whole path to the file!!

Thank you again!

Nic.