Notifications
Clear all
[Closed] a file with nested xref files in it
Mar 19, 2009 5:50 pm
A file with xref files in it, and the xref files may xref other files too .
How can we merged all the nested files together into one file ?
6 Replies
Mar 19, 2009 5:50 pm
I’ve find the answer . just to chech the number of Xrefs .And use it as the loop threhold
Mar 19, 2009 5:50 pm
You will need to make a recursive function to be called untill the number of xrefscenes is 0 like so:
fn MergeAllXrefScenes =
(
for i = xrefs.getXRefFileCount() to 1 by -1 do merge (xrefs.getXRefFile i)
if xrefs.getXRefFileCount() != 0 then MergeAllXrefScenes()
)
MergeAllXrefScenes()
Mar 19, 2009 5:50 pm
my approch
while xrefs.getXRefFileCount() > 0 do
(
xrefShell = xrefs.getXRefFile 1
merge xrefShell
)
any comment is really appreciated.