www.skylinesoft.com Homepage
Forum Home Forum Home > SkylineGlobe Enterprise Products > TerraExplorer for Developers
  New Posts New Posts RSS Feed - How to traverse the object
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to traverse the object

 Post Reply Post Reply
Author
Message
hVenus View Drop Down
Visitor
Visitor


Joined: November 14 2011
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote hVenus Quote  Post ReplyReply Direct Link To This Post Topic: How to traverse the object
    Posted: December 27 2011 at 3:28am
I have a sky file, but do not know what's inside. How to do in order to traverse the inside of the object?

I develop a WEB project using javascript.
Back to Top
Eylon View Drop Down
Skyline Admin Group
Skyline Admin Group
Avatar

Joined: May 05 2003
Location: Israel
Status: Offline
Points: 259
Post Options Post Options   Thanks (0) Thanks(0)   Quote Eylon Quote  Post ReplyReply Direct Link To This Post Posted: December 27 2011 at 7:23am
Eylon
Back to Top
hVenus View Drop Down
Visitor
Visitor


Joined: November 14 2011
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote hVenus Quote  Post ReplyReply Direct Link To This Post Posted: December 27 2011 at 9:02am
I know api.
but FindItem function requires Path, GetNextItem function requires ItemID.
All of these Path, ItemID do not know how to traverse the object?

Is there a  root id?
Back to Top
rajeev.sood View Drop Down
Visitor
Visitor
Avatar

Joined: November 08 2010
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote rajeev.sood Quote  Post ReplyReply Direct Link To This Post Posted: December 28 2011 at 6:46pm
Try FindItem("root")


Back to Top
hVenus View Drop Down
Visitor
Visitor


Joined: November 14 2011
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote hVenus Quote  Post ReplyReply Direct Link To This Post Posted: December 29 2011 at 1:31am
"SGWorld.ProjectTree.FindItem('root');"

return 0
Back to Top
Eylon View Drop Down
Skyline Admin Group
Skyline Admin Group
Avatar

Joined: May 05 2003
Location: Israel
Status: Offline
Points: 259
Post Options Post Options   Thanks (0) Thanks(0)   Quote Eylon Quote  Post ReplyReply Direct Link To This Post Posted: December 29 2011 at 9:46am
The root ID is 0 (zero), so it you want the first object in the tree use GetNextItem to get the first child of the root: SGWorld.ProjectTree.GetNextItem 0,11
Hope it helps
For more examples look at the Traversing objects sample in the Managing objects hierarchy section of the Interactive Tutorial (TerraExplorer button > Resources > Interactive Tutorial.
Eylon
Back to Top
hVenus View Drop Down
Visitor
Visitor


Joined: November 14 2011
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote hVenus Quote  Post ReplyReply Direct Link To This Post Posted: December 30 2011 at 1:44am
Thank you so much
I love you!
LOL
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.109 seconds.