Notifications
Clear all

[Closed] a file with nested xref files in it

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

I’ve find the answer . just to chech the number of Xrefs .And use it as the loop threhold

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()

my approch


while xrefs.getXRefFileCount() > 0 do
(
 xrefShell = xrefs.getXRefFile 1 
merge xrefShell
)

any comment is really appreciated.

Personally , I like your idear , floopyb . It seems more reasonable .

You idea is quite elegant, saves defining a function!

It’s My Way:P