powered by CADENAS

Manual

Manual

2.2.2.3.1. File name with reuse of V8.1 pool

The file name shall be the same just as in version 8.1. This enables to reuse a part from v8.1 pool which has been created under v8.1.

[Important] Important

Make sure with V10 setting methods that the file name is the same just as in V8.1.

The file name is set by the FileName key.

Be oriented towards the examples under Section 2.2.2.2, “File name: set generation options ("FileName" key) ”.

Example by reference to Inventor:

With the default setting in V8.1 the file name was created with underscores.

Cylinder_head_screw_ISO_4762_M20x90.ipt

V10 - default setting

Key FileName:

FileName(isCreaOptNotSet,is3dpart)=?GetObject("iface.calcnameservice").start(0).
Format("<GENNAME><MATERIAL(_)>").toFileName("_").add(".ipt").value()

FileName(isCreaOptNotSet,is3dasm)=?GetObject("iface.calcnameservice").start(0).
Format("<GENNAME><MATERIAL(_)>").toFileName("_").add(".iam").value()

Result:

Cylinder head screw ISO 4762 M20x90.ipt

V10 - adjusted setting

Key FileName:

FileName(isCreaOptNotSet,is3dpart)=?GetObject("iface.calcnameservice").start(0).
Format("<GENNAME><MATERIAL(_)>").alnum("_").add(".ipt").value()

FileName(isCreaOptNotSet,is3dasm)=?GetObject("iface.calcnameservice").start(0).
Format("<GENNAME><MATERIAL(_)>").alnum("_").add(".iam").value()

Result:

Cylinder_head_screw_ISO_4762_M20x90.ipt

On the base of the default setting in V9 you have to replace toFileName("_") with alnum("_") in order to create the file name in the same way such as under V8.1.