pcbaker Posted February 28, 2004 Share Posted February 28, 2004 I want to access a particular symbol sub-folder and copy all the symbols in that sub-folder to a particular layer. I can access to first symbol instance using "symbolHdl := FInFolder(subFolderHdl);", but I can't find a procedure that lets me walk through the rest of the symbol definitions in that particular symbol sub-folder. Any ideas? Quote Link to comment
ccroft Posted February 28, 2004 Share Posted February 28, 2004 I guess this should be in the Vectorscript section..... Anyway,you need a loop and "NextObj". Typically something along these lines: symbolHdl:=FInFolder(subfolderHdl); While symbolHdl<>Nil Do Begin {do something here} symbolHdl:=NextObj; End; Quote Link to comment
pcbaker Posted March 8, 2004 Author Share Posted March 8, 2004 Thank you. Unfortunatley the loop with the "NextObj" procedure does not yield the next symbol in the subfolder. The VectorScript debugger gives a warning that at the NextObj statement that the reference symbol is not valid. I also tried NextSObj with similar results. I can't believe that if there is a procedure for accessing the first symbol of a subfolder, there is not a procedure for walking down through the remaining symbols in that subfolder. Quote Link to comment
ccroft Posted March 9, 2004 Share Posted March 9, 2004 Maybe you picked this up already,but I left something out.It should read: symbolHdl:=NextObj(symbolHdl); Sorry bout that. This works for me. If you're still stuck you should post some of your script. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.