tca Posted February 19, 2018 Share Posted February 19, 2018 Does anybody have any advice for the following problem? 1. We received an Autocad template (.dwt) containing a layer system used by the client (we have to use the same system) 2. When we import the .dwg (saved from the .dwt) in Vectorworks it only brings in the layers (VW classes) which contain objects. The .dwt template doesn't contain any objects so no classes in Vectorworks 3. Possible solutions would be: - manually draw an object in each of the +300 layers in autocad and then import in VW - some kind of autocad script that does the above - a magic VW trick or script? thanks Quote Link to comment
Boh Posted February 19, 2018 Share Posted February 19, 2018 Can the client send you another file from a different project that has objects on each of the template classes. If so you could then import that file into vw and the classes will import too. Then just delete the objects. Alternatively if you can get a text file listing the classes then I'm pretty sure worksheets could be used to create the classes. The scripters and worksheet experts would have to help there though as that is beyond my level of expertise... Quote Link to comment
markdd Posted February 20, 2018 Share Posted February 20, 2018 Pat Sandford on another part of the forum came up with a simple script for importing class names from a txt file. It works really well. I hope he won't mind me sharing it here. Its years since I used AutoCAD but I am sure you can export layers as a text file. What you may have more trouble doing is getting all the class properties. If you post about this on the scripting section of this forum I am sure someone will have a solution for you. Class from text.vwx Quote Link to comment
Cris with no H Posted February 20, 2018 Share Posted February 20, 2018 My solution would have been to use a copy of ACAD or Draftsight to open the template, save as a .dwg there, then import THAT into Vectorworks. I've had plenty of dwgs come in with empty classes. Quote Link to comment
Vectorworks, Inc Employee Nina Ivanova Posted February 21, 2018 Vectorworks, Inc Employee Share Posted February 21, 2018 8 hours ago, Cris Dopher said: My solution would have been to use a copy of ACAD or Draftsight to open the template, save as a .dwg there, then import THAT into Vectorworks. I've had plenty of dwgs come in with empty classes. Vectorworks does not create empty classes (or layers) anymore. Unused block definitions, line types, materials, dimension styles are also purged during the import. Quote Link to comment
tca Posted February 21, 2018 Author Share Posted February 21, 2018 I already have a script that creates classes form worksheets but no way to get the Acad classes (with properties) in a worksheet. I managed to solve the problem by importing the .dwg in VW 2015. As Nina mentioned VW stopped importing empty classes somewhere between VW 2015 and 2018. Would be nice to have this as an option when importing instead of just deleting the functionality 1 Quote Link to comment
Cris with no H Posted February 22, 2018 Share Posted February 22, 2018 I agree this should revert. The user should have the option to Purge on his own, whether at time of import or later. 1 Quote Link to comment
Art V Posted March 17, 2018 Share Posted March 17, 2018 (edited) On 2/21/2018 at 8:43 AM, Nina Ivanova said: Vectorworks does not create empty classes (or layers) anymore. Unused block definitions, line types, materials, dimension styles are also purged during the import. This is very bad practice as I regularly deal with files having a set of standard symbols included and having those purged means I can no longer add those items for drawing updates. As mentioned by others, it is the user who should have the option to import non-used items or not as this can be a really messy situation. So far I have (un)fortunately not noticed this new behavior because most of the time I insert items from the library so I wouldn't really notice if it is not present anymore. Or I didn't need the missing items at the time. But not knowing things are missing in VW unless one happens to open the original dwg file is a big no-no as it can really mess up drawing consistency in a project. Please, please do revert this automatic purging of dwg files upon import. I'd rather have a dialog pop up or an option in the import dialog asking if non-used items should be imported or purged or be handled on an item-by-item basis during import (i.e. decide per item or item type to import or purge). Edited March 18, 2018 by Art V typo corrected for clarity 3 Quote Link to comment
JMR Posted March 18, 2018 Share Posted March 18, 2018 ^^ Exactly. We MUST be able to import an empty client DWG with client's own class (Autocad layer) system. This is absolutely critical! Please fix this ASAP. 2 Quote Link to comment
Art V Posted March 18, 2018 Share Posted March 18, 2018 (edited) 6 hours ago, JMR said: ^^ Exactly. We MUST be able to import an empty client DWG with client's own class (Autocad layer) system. This is absolutely critical! Please fix this ASAP. Yes, I have that requirement too, just noticed I forgot to mention this in addition to the symbols. Even worse, (inter)national standards bodies have their own template sets with predefined layers which you have to adhere to unless you have no alternative than adding additional classes/layers for a specific purposes. The current import situation means you can't use their dwg based templates at all if they don't already have at least one object in those layers and one would have to recreate the template from scratch and try to mimic line types etc. This also means that non-used line types also should be imported if they are not already linked to a layer (usually they are, but occasionally they are not) and the same applies to anything else not used in layer in the dwg file that would otherwise be imported if it would have been used in a layer. This also means that there should be an option to maintain empty classes (dwg layers) and other non-used items in the exported dwg file for roundtripping purposes (though this could be fixed by using a dwg based editor to fix the VW exported dwg file with the original template, it would be another few steps which could easily be omitted). Edited March 18, 2018 by Art V 1 Quote Link to comment
Vectorworks, Inc Employee Nina Ivanova Posted March 19, 2018 Vectorworks, Inc Employee Share Posted March 19, 2018 Thank you all for your comments! We will consider your requests. Best regards, Nina 1 Quote Link to comment
RickR Posted April 11, 2018 Share Posted April 11, 2018 Hmmm, I've been doing a lot of DWG imports lately. After every one I do a Purge and there is lots to clear, maybe not as much as there used to be, but classes, symbols and other stuff. Quote Link to comment
Pat Stanford Posted April 11, 2018 Share Posted April 11, 2018 I think that is based on the income DWG file, not VW. VW is going to import everything in the DWG. When you purge it removes resources (plus layers/classes) that are not actually in the drawing layers. If the DWG comes in with lots of stuff that is not used, there is little that VW can do about that other than let you purge it. If it auto purged, there would be a possibility that you needed something that was imported but not yet used. You could ask the file sender to purge (or whatever the Autocad name is) before they send you the file. Quote Link to comment
RickR Posted April 12, 2018 Share Posted April 12, 2018 I was simply comparing my experience to Nina's description of current function. It never dawned on me that VW might delete things contained in a DWG file. I purge because I know I'll never want them, and they come from clients that are usually to busy for me to add to their load. If VW is going to delete things then I want the option to keep them for all the reasons listed above. Just because I purge often doesn't mean I always will or that others want to as well. Quote Link to comment
Pat Stanford Posted April 12, 2018 Share Posted April 12, 2018 @RickR I failed to read back far enough into the thread. What I read into your message was that you were wondering WHY you needed to purge. Obviously you understand very well. Mea Culpa. Quote Link to comment
RickR Posted April 12, 2018 Share Posted April 12, 2018 I think you've earned a few passes for short cuts. 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.