VincentCuclair Posted December 17, 2009 Share Posted December 17, 2009 I have a long list of custom classes I need to export to dwg, is there a way to do this without having to draw an object in every single class? (not all are included in the standard naming list!).....unfortunately an option for exporting empty classes to dwg is not present..........any ideas/solutions? Quote Link to comment
Tom G. Posted December 18, 2009 Share Posted December 18, 2009 Could you drop a locus point into one class then duplicate and move a copy to each successive class? You could place it outside the print boundary too just to be sure it doesn't show up on export. Quote Link to comment
VincentCuclair Posted December 18, 2009 Author Share Posted December 18, 2009 Doesn't seem like anyone has a beter idea, guess I'll have to do that ...... Quote Link to comment
Ozzie Posted December 18, 2009 Share Posted December 18, 2009 (edited) Try this Save the file with the Classes in it Turn all Classes to Invisible Export the file to dwg When exporting to dwg make sure you have ticked Invisible Classes are Exported as Invisible DXF Layers Close your file Open New file Import the dwg back into VW Should have all of the Classes - worked for me Now the exported to Dwg file - open it in AutoCAD I tried and it worked Edited December 18, 2009 by Ozzie Quote Link to comment
VincentCuclair Posted December 18, 2009 Author Share Posted December 18, 2009 Ozzie, are you sure that even empty classes follow to the dwg? I can't get this to work? Quote Link to comment
VincentCuclair Posted December 18, 2009 Author Share Posted December 18, 2009 OK, anyone know if there is a way to get all classes to appear in the classes standard naming worksheet? Quote Link to comment
VincentCuclair Posted December 19, 2009 Author Share Posted December 19, 2009 OK Ozzie thanks anyway....I must be missing something somewhere.....I solved it by drawing a line in every class.......took a while . Quote Link to comment
Kool Aid Posted December 19, 2009 Share Posted December 19, 2009 Yes? I can imagine??This took a minute? But then again, I'm not an engineer! PROCEDURE DummyClasses; { ? Petri Sakkinen 2009 } VAR i : INTEGER; BEGIN FOR i := 3 TO CLASSNUM DO BEGIN LOCUS(0, 0); SETCLASS(LNEWOBJ, CLASSLIST(i)); END; END; RUN(DummyClasses); Quote Link to comment
Ozzie Posted December 20, 2009 Share Posted December 20, 2009 (edited) Vincent - still works for me Try this again Save the file with the Classes in it Turn all Classes to Invisible THIS IS NOT NECESSARY Export the file to dwg When exporting to dwg make sure you have ticked Invisible Classes are Exported as Invisible DXF Layers - DO NOT KNOW IF THIS IS NECESSARY EITHER Close your file Open New file Import the dwg back into VW Should have all of the Classes - worked for me Now the exported to Dwg file - open it in AutoCAD I have done this several times and it seems even the Class Attributes come over also and I have done it on two different computers Laptop is Asus PRO77S Both running Vista Business Desktop specs in Signature below Edited December 20, 2009 by Ozzie Quote Link to comment
VincentCuclair Posted December 20, 2009 Author Share Posted December 20, 2009 Yes? I can imagine??This took a minute? But then again, I'm not an engineer! PROCEDURE DummyClasses; { ? Petri Sakkinen 2009 } VAR i : INTEGER; BEGIN FOR i := 3 TO CLASSNUM DO BEGIN LOCUS(0, 0); SETCLASS(LNEWOBJ, CLASSLIST(i)); END; END; RUN(DummyClasses); We're not all geniususes Petri and we haven't all entered the realm of Script (yet). please bare with me and explain how to use it..... Quote Link to comment
Kool Aid Posted December 20, 2009 Share Posted December 20, 2009 Ahh, few of us are geniuses, but some of us are seriously lazy? If you can get Ozzie's trick to work, that is a much better solution. If not, - copy the code - paste it to eg. TextEdit - make it plain text - save to a convenient location - when needed, issue Run VectorScript command (Tools/Scripts) and point the Open file dialog to the said convenient location What we're doing is very simple. We get the number of classes (NumClasses) and process the list of them (ClassList), ignoring None and Dimension (nos 1 & 2), and create a locus in each class. Quote Link to comment
VincentCuclair Posted December 20, 2009 Author Share Posted December 20, 2009 Thanks! Strange that Ozzies solution doesn't work for me.....one wonders?! Quote Link to comment
Kool Aid Posted December 20, 2009 Share Posted December 20, 2009 You're welcome, Vincent. As you see, laziness can make life easier: I'm too lazy to do the same thing over and over again. Quote Link to comment
Dieter @ DWorks Posted December 20, 2009 Share Posted December 20, 2009 I have made this kind of script a long time ago. You can find it on my page in the free section. www.dworks.be Quote Link to comment
VincentCuclair Posted December 20, 2009 Author Share Posted December 20, 2009 Again guys thanks! Nogmaals bedankt mannen ! Quote Link to comment
James Dawson Design Posted January 10, 2010 Share Posted January 10, 2010 Hi Vincent, I have just tried Ozzies method and it works for me. In fact I can confirm that you dont need to do the following... "Turn all Classes to Invisible THIS IS NOT NECESSARY When exporting to dwg make sure you have ticked Invisible Classes are Exported as Invisible DXF Layers - DO NOT KNOW IF THIS IS NECESSARY EITHER" Quote Link to comment
VincentCuclair Posted January 11, 2010 Author Share Posted January 11, 2010 (edited) Strange I'll have to check that again soon........(, I tried but no go??!! How can it work for some and not for me??) another question, is it at all possible to get the settings ie. color, lineweight etc. to become By-layer/color etc. in the exported dwg? Edited January 11, 2010 by Vincent C Quote Link to comment
Ozzie Posted January 11, 2010 Share Posted January 11, 2010 When I did it attributes turned up in AutoCAK but I did not check them properly I do not know how to use the software Quote Link to comment
VincentCuclair Posted January 11, 2010 Author Share Posted January 11, 2010 (edited) I can't accept this there must be a reasonable explanation.......what version of AutoCAD are you exporting to, and to DWG or DXF what other settings can influence this? I use a completely empty New file....... Edited January 11, 2010 by Vincent C 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.