Jump to content

Sketchup layers to VW classes -how?


Recommended Posts

Manual? Well, maybe I can offer a digital manus:

 {------------------------------------}


PROCEDURE Layers2Classes;  { ? Petri Sakkinen 1995 - 2006 } 

VAR 
ObHd, LHd : HANDLE; 
LayerName, ClassName : STRING; 

PROCEDURE L2C (ObHd : HANDLE); 
BEGIN 
SETCLASS(ObHd, GETLNAME(GETLAYER(ObHd))); 
END; 

BEGIN 
FOREACHOBJECT(L2C, ALL);	
END; 

RUN(Layers2Classes); 

{------------------------------------}  

In short(hand): copy the VectorScript, paste it into either a new VectorScript in the current document or a Plug-In command.

After issuing the command, have layer options as "Show/Snap/Modify Others", then say "Select All", "Group" and "Ungroup". Finally say "Purge Unused Objects" (Layers) and Bob's your uncle.

No hands.

(Once upon a time, AutoCAD files needed to be reclassified & flattened, thus the original date of 1995.)

Edited by Petri
Link to comment
  • 2 months 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...