Jump to content

changing classes within groups - LOTS of groups...


Recommended Posts

Hi all,

Is there any setting to allow me to change objects inside a group to the class of the group, without drilling into the groups individually? 

...like selecting dozens (hundreds?) of groups in different classes and make their 'interior' objects conform to those various classes?

 

I have a huge mix of polys and groups of polys all on the same class (imported shapefiles).

Pat kindly wrote me script to change them to classes as defined by a record field. V cool.

 

The groups change to those classes, but the polys inside do not.

 

I feel this is a very basic question and surprised that I have not been able to find any help topic nor tick-box or setting to change.

 

Any advice gratefully received.

 

 

Link to comment

Thanks Pat.

 

Procedure ShapeZoneToClass;

VAR    S1            :String;

Procedure Execute(Hd1:Handle);
BEGIN
    S1:=Concat('ZONING-',GetRField(Hd1,'EPI_Land_ZoningRec','SYM_CODE'));
    SetClass(Hd1,S1);
End;

BEGIN
    ForEachObject(Execute,((R IN ['EPI_Land_ZoningRec'])));
End;

RUN(ShapeZoneToClass);

 

The shapefiles do not come in cleanly and lots of groups exist of broken / open polygons.

Many thanks for your help.

 

Link to comment
  • 2 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...