www.skylinesoft.com Homepage
Forum Home Forum Home > SkylineGlobe Enterprise Products > TerraExplorer for Developers
  New Posts New Posts RSS Feed - a problem about ilayer5 setproperty
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

a problem about ilayer5 setproperty

 Post Reply Post Reply
Author
Message
amos View Drop Down
Visitor
Visitor
Avatar

Joined: April 09 2010
Location: China
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote amos Quote  Post ReplyReply Direct Link To This Post Topic: a problem about ilayer5 setproperty
    Posted: April 09 2010 at 10:06am

i have a question!

codes as follows:
                                        pIlayr5.DisplayAs(ObjectTypeCode.OT_BUILDING);
                                        pIlayr5.SetProperty("Selected Face", "All Walls");
(pILayr5 is a variable i have declared)
 
when i run this words,there is no any error.
when i see the property of feature layer i have loaded, i find "type" is changed into "Building" from"Polygon",but "Selected Face" is still the initial value "Roof".
what's wrong with it.
hope to get help! Cry


Edited by amos - April 09 2010 at 10:11am
Back to Top
amos View Drop Down
Visitor
Visitor
Avatar

Joined: April 09 2010
Location: China
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote amos Quote  Post ReplyReply Direct Link To This Post Posted: April 15 2010 at 7:35am
i know what's wrong with this problem.
this words :pILayr5.SetProperty("Selected Face","All Walls") should be changed into:
(1)pILayr5.SetProperty("Selected Face","Roof") ;or
(2)pILayr5.SetProperty("Selected Face",BuildingStyleCode.BS_POLYGONS);
That's it!Smile
So from this example, we can see, some properties can not be set just by input related strings(like :All Walls). but by some methods  that skyline has afforded!
hehe
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.234 seconds.