blimey Posted October 30, 2005 Share Posted October 30, 2005 quote: Originally posted by Mechanix: i went to the web site below and cut & pasted the list class utility. how do i get it to work? http://www.panzercad.com/VW%20Freebies/VectorScripts/Utility/ This was posted in the general discussion and I'd like very much to be able to use that tool. So i've tried to make a script with the txt file provided, it worked fine and compiled succesfully. Then I don't know how to use the tool. I expected it to output a text file with the classes, but do not know how to run it or were it saves the file... Can someone help me? Thanks Quote Link to comment
Chris D Posted December 2, 2005 Share Posted December 2, 2005 Tried this myself in VW12 on a mac. It puts the file in your user support library. Use Spotlight (or other search) to find filename.mcd.CLASSES Quote Link to comment
Chris D Posted December 12, 2005 Share Posted December 12, 2005 This will allow you to place the file somewhere sensible: PROCEDURE ClassListOut; VAR counter, countClasses : INTEGER; outputfile : STRING; BEGIN PUTFILE('Export Class List','Class List',outputfile); countClasses:=CLASSNUM; IF (countClasses>2) THEN BEGIN counter:=0; REWRITE(outputfile); REPEAT WRITELN(CLASSLIST(counter)); counter:=counter+1; UNTIL (counter>countClasses); CLOSE(outputfile); END; END; RUN(ClassListOut); Quote Link to comment
shorter Posted June 30, 2009 Share Posted June 30, 2009 Better late than never... Does anyone have a script that not only exports the list of classes but also the line weight, line style, line colour of each class...? Quote Link to comment
Miguel Barrera Posted July 1, 2009 Share Posted July 1, 2009 Would it be more beneficial to have this info in a worksheet? That way you could print it or export it as text (.csv) for use in Excel, etc. How should the color be reported? by number or RGB. These are the only values that can be reported with VS. Quote Link to comment
Pat Stanford Posted July 1, 2009 Share Posted July 1, 2009 I am not the original poster, but I think RGB is the only way to go that will allow you to use the data cross file. The color chart really does not work any more since we have multiple color palettes. Quote Link to comment
_c_ Posted July 6, 2009 Share Posted July 6, 2009 Steven, there is a sub-routine in Vectorlab which does what you need. You must open/close the file elsewhere, but there is an example which is running as stand-alone script. I believe you'd prefer this. Export class attributes is Subroutine for exporting class attributes as TAB file I didn't try it in a while, but it should work. Since is old, it might fail on custom markers. 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.