![]() |
a problem about ilayer5 setproperty |
Post Reply
|
| Author | |
amos
Visitor
Joined: April 09 2010 Location: China Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: a problem about ilayer5 setpropertyPosted: 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! Edited by amos - April 09 2010 at 10:11am |
|
![]() |
|
amos
Visitor
Joined: April 09 2010 Location: China Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
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!
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
|
|
![]() |
|
Post Reply
|
|
|
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |