XANSYS Forum Index
    Register    

FAQ    Search    Memberlist    Usergroups    SmartFeedSmartFeed    Profile    Log in
[WB] Mechanical JScript to copy entire folder
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    XANSYS Forum Index -> XANSYS
Author Message
parthiban.karthikeyan
User


Joined: 15 Jun 2015
Posts: 1

PostPosted: Mon Jun 15, 2015 9:58 pm  Reply with quote

Hi All,

i am working to automate image capture of each fields from the Model branch.
i can able to insert static figures by below code.

var Tcoorg = Tmodel.CoordinateSystemGroup;
var Tcoors = Tcoorg.CoordinateSystems;
var TCCount = Tcoors.Count;
var tid = new Array(TCCount);
for ( i = 0; i < TCCount; i++){
tid [i] = Tcoorg.Children(i+1).ID;
}

for (j=0; j<TCCount;j++){

SC.changeActiveObject(tid[j]);
SC.doInsertStaticFigure();
SM.clear();
}

now the captured images stored in "working folder\dp0\global\MECH\SYS\images"
i need to copy entire folder"images" before completing journal execution, bcz i am invoking journal file from shell command "install directory/runwb2" -B -R file.wbjn
and this closes entire session once script execution completes and deletes the images folder.

note:
i have no intention to save the project, since i am executing no of journal files one by one. Also,
is it possible to execute journal files from already opened runwb2 session?
this will save new loading session every time.

Thanks
Parthiban
Honeywell, India
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    XANSYS Forum Index -> XANSYS
All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

sleek template created by Andrew Charron