Jump to content
Sign in to follow this  
Clive Thomas

Importing DXF data

Recommended Posts

I import Ordnance Survey data into VW on a regular basis. This data brings with it many as many as 40 differnt classes. At the moment I manually insert a prefix OS- in front of each class so that they will all become a subset of the 'OS' class. Is there a script that will automate this task and save me a lot of work.

Many thanks.

Share this post


Link to post

See if this does what you want.

Dave--------------------Procedure RenameClasses;VAR

ClassName,NewName:STRING;i: INTEGER;

BEGINi:=1;

REPEATClassName:= ClassList(i);NewName:= Concat( 'OS-',ClassName );RenameClass ( ClassName, NewName );i:=i+1;UNTIL i = (ClassNum+1);

Sysbeep;AlrtDialog('Renaming classes is complete!');

END;Run (RenameClasses);

Share this post


Link to post

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.

Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...