• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

add directory in "catia decleration files" environment

  • Thread starter Thread starter Nic65
  • Start date Start date

Nic65

Guest
Good morning to all:smile:

long ago, to add directories in catia environment (so I don't talk about the mkdir of aix) , I launched a command from an aix environment that allowed me to view an interface from where I could add them directly to then find them in catia environment .
I don't remember the command anymore.

I hope some of you have a chance to help me.
Thank you in advance. :finger:

Good day
 
Bye.

nothing easier. . .
to create a file containing the workbooks and make sure that it can see them in the catia you can do it manually or with an automatic procedure that goes to find all the folders in a certain path.

manual:
created a file that you will call models.dcls example in the main user area catia (catusr) -> then under /home/catusr
inside it with the editor 'vi' go to add the path and the folder you want to see inside the catia.
example : if in the /home/wrk/model folder that could be the root that contains all folders with the relative catia files you want to upload you will write in the model.dcls :
/home/wrk/model/cart1
/home/wrk/model/cart2
/home/wrk/model/cart3 .... etc.
paying attention to the fact that the system is case sensitive then attention to the uppercases and lowercases. .
After that you will include the file models.dcls within the dcls of the project file you are using.
example if you use the project file your will include in your.dcls file models.dcls by adding a line at the bottom:
includes ('/home/catusr/models.dcls')
You get cat back and the game is done.

procedure:
instead of handing back the path and folders inside the models.dcls file, you can do everything automatically with a simple unix procedure that you will save in a file that you will call as you want (e.g. automodels) to which you will give the execution permissions (chmod a+x automodels)

#/bin/ksh

# procedure for statement model files catia

rm /home/catusr/model.dcls 2>/dev/null
list=`ls /home/wrk/model`
for name in $list

echo "catia.model = '/home/wrk/model/$nome' ;
done

You get cat back and the game is done.

tvi71
 
thank you so much tvi71, you were very kind and fulfilling in the answer. Unfortunately I am not able to write in "vi". Unlike all the time I used to learn how to use catia v4, I never spent a few more minutes to learn how to dexter me on unix. I have always looked for shortcuts and now I pay for the consequences. for this I was trying to trace back to that blessed command that time back a systemist had advised me to perform to shorten and simplify the creation and sharing of directories between caia and its environment.
still be thanks:smile:
Hi.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top