mviita Posted November 3, 2006 Share Posted November 3, 2006 Is there a way to make VW import Sketchup layers directly into VW classes? The default seems to be from layers to layers, which results in a round of manual conversion from layers to classes in VW. Quote Link to comment
Petri Posted November 3, 2006 Share Posted November 3, 2006 (edited) 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 November 3, 2006 by Petri Quote Link to comment
mviita Posted November 3, 2006 Author Share Posted November 3, 2006 Thanks! Might even say kiitos. Quote Link to comment
mark_at_custom Posted January 25, 2007 Share Posted January 25, 2007 Help! When I attempt to use your Layers to Classes VS, It appears that each object on that layer gets a differing class. I now have seemingly hundreds of classes. It bogs the dwg down to a point where it feels like the file is 100mb, while it measures 6.5 mb. Except that this VS looks very promising. Your help is appreciated! Quote Link to comment
Petri Posted January 25, 2007 Share Posted January 25, 2007 That's strange. Can't see it happening. Quote Link to comment
Recommended Posts
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.