powered by CADENAS

Manual

Manual

2.2.1.3.  Apply and use own categories

Categories must be applied in the block [Categories].

In the configuration file ifacecommon.cfg standard categories are already applied that cannot/should not be changed. These categories are used in each CAD specific configuration file.

Example for the use of standard categories "is3d" in the pool path key:

poolPath(is3d)=$CADENAS_DATA/pool/solidworks

Own categories are applied in the CAD specific configuration files (ex. ifugnx.cfg) in the block [Categories].

These can the be used in as many other blocks of the CAD specific configuration files.

Example:

Below you can see an example from the configuration file ifugnx.cfg. First, the categories nx4, nx5, nx6, nx7 and nx80 are defined. Then these are used for the allocation of the fitting templates.

[Categories]
nx4=GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="400"
nx5=GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="500"
nx6=GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="600"
nx7=GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="700"
nx75=GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="750"
nx80=GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="800"
tcActive=GetObject("iface.contextservice").GetVariable("UserApp").GetObject
("iface.teamcenter").isTeamcenterActive()

[CreationOptions]
TemplateName(nx4,isMMDoc)=$CADENAS/iface/unigraphics/shared/nx4/seedparts/ups_seed_mm.prt
TemplateName(nx4,isInchDoc)=$CADENAS/iface/unigraphics/shared/nx4/seedparts/ups_seed_in.prt
TemplateName(nx5,isMMDoc)=$CADENAS/iface/unigraphics/shared/nx5/seedparts/ups_seed_mm.prt
TemplateName(nx5,isInchDoc)=$CADENAS/iface/unigraphics/shared/nx5/seedparts/ups_seed_in.prt
TemplateName(nx6,isMMDoc)=$CADENAS/iface/unigraphics/shared/nx6/seedparts/ups_seed_mm.prt
TemplateName(nx6,isInchDoc)=$CADENAS/iface/unigraphics/shared/nx6/seedparts/ups_seed_in.prt
# etc.

The same for Solid Edge in the configuration file ifsolidedge.cfg looks like this:

[Categories]
st1=GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="100"
st2=GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="200"

And for Pro/E in the configuration file ifproewildfire.cfg like this:

[Categories]
wf3=GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="3"
wf4=GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="4"
wf5=GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="5"
wf6=GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="6"
wf34=(GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="3") 
 OR (GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="4")
wf567=(GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="5") 
 OR (GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="6") 
 OR (GetObject("iface.contextservice").GetVariable("UserApp").cadVersion="7")