Jump to content

RMorse

Member
  • Posts

    19
  • Joined

  • Last visited

Reputation

0 Neutral

Personal Information

  • Occupation
    Architect
  • Location
    Western Massachusetts

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I'm looking for a single line font for CAD to g-code to CNC machining. I can convert any TTF to lines, but all the fonts I know of have *thickness* which converts to lines as an outline (double line). I'm looking for just a single line font as commonly used in engraving work. Any suggestions? I've Googled around hard without results. I figure I'll try this forum before creating my own from altering a simple on like Arial. -- Rich --
  2. I didn't know that. I guess I'm used to editing other code (like webpages) with Notepad. I don't know what is happening with your workspace editor. Once you have the renamed/edited Plug-In showing up in the Plug-In Editor, you should be able to assign a keyboard shortcut to it. Are you sure your edited the "new/renamed" one and not the original one? I ended up calling VW on that one. Turns out that VW doesn't "see" custom scripts and plug-ins in its Plug-Ins directory (Program Files/Vectorworks/...). It looks for them in another Plug-Ins directory (C:/Documents and Settings/[name}/Application Data/Nemetschek...). I was creating copies to alter and placing them in the wrong directory. The LineWeight must be set in Mils (1/1000 inch). If you are trying to use any other unit, it will end up being wrong. Yup you nailed that one down. Setting ALL the related things to Mils fixed it. Now everything seems to be working the way I want it too! Thanks so much for your help and patience! -- Rich --
  3. I guess I got confused as I don't know the difference as my PIO or script (I still don't know what it is) lives in the Plug-Ins folder and is accessible with the VectorScript editor. Great! I was now able to make that script and have it tell me what attributes my lines have. Strange thing though - I can see what the line colornumbers are... but I don't understand why they have different FillFore and FillBack numbers. That all makes sense. Here's one of them: ************************************* PROCEDURE setcolorweightgrayfour; VAR h :HANDLE; BEGIN { gets a handle to the first selected object on the layer } h:= FSActLayer; IF FSActlayer = NIL Then Penfore(41120,41120,42148); IF FSActlayer = NIL Then Pensize (4); { while you have a valid handle to an object, perform the operation } WHILE h <> NIL DO BEGIN SetPenFore(h,41120,41120,42148); SetLW(h,4); { get a handle to the next selected object after the current one } h:= NextSObj(h); END; END; RUN(setcolorweightgrayfour); ************************************* I hadn't realized that I can edit it there. I've been trying to alter the code by using Notepad as that's what comes up when I doubleclick on the filename. Each of these scripts/PIOs have lots of extra strange characters in them with Notepad and are a bit different for some reason. So now I've just altered the scripts (saved as with a new name) with the VS editor and changed the workspace to make my old hotkeys trigger the new scripts (what ARE they called?) but for some reason it didn't "take". When I use my hotkeys, selected objects still change as they used to, not as the new commands. And now I have an additional problem: the change changes the colors to the "old" colors - AND - the lineweights change to be very different from what I had them previously (or newly). Very strange. Any idea what's going on there? Why won't the workspace recognise my new commands and why are the old ones acting differently? Getting the linecolor/weight thing to work would be great. The font problem is that the font I've always used (MrHand) and with 12.5 its linewrap capability is gone. It wraps wherever the textbox ends whether in the middle of a word or not. And on top of that, even though I see text on the monitor, when it prints it only prints out rows of little squares. Strange. VW says they did something different to the font compatibility stuff when going to 12.5 which makes older fonts not work. So I contacted the people I got my architectural font package from (which went through several ownerships since I first bought it in 1994)... of course the current owners don't know anything about how the fonts were made or updated. I ended up buying the current version of them which works fine with 12.5 when I create new drawings (and text) but anything with previous MrHand text (including Word docs, spreadsheets, etc.) are total garbage. I don't know what do about it. For the moment I've put the text problem on hold and have been doing all my work in 12.0. I'm thinking that I might be able to get around this problem by renaming the new text and using it for 12.5 for new jobs and leaving the old version in place so that I can access all my other work in 12.0. -- Rich --
  4. Is a script a PIO? I'm confused as I've been trying to run scripts by going to Tools/Scripts/Run VectorScript... which opens up a window to select a file but there are NO *.vss, *.xxt, *.mpc, *.txt... files in the Plug-Ins directory. What script? The code you posted? I really have no idea how to make that into a script. I tried using the VW plug-in editor but after copying the code in I can't find it to run it. Where does it save those things? And then what do you do with that? Make another script of it? I'm using VW 12.0 as 12.5 messes up my fonts and doesn't allow any of my scripts or hot-keys to function. There's no way I'm going to get 2008 as it will take me forever to configure things to the point that it is as functional as my 12.0 is. I tried so hard with 12.5 and became totally frustrated. I'm not stupid... and I've been using VW since MiniCad days (about 12 years). Yes, I need help - ideally with the script. The RGB values are just a stepping stone in getting there... but I can't seem to get even that far. I'm trying to change a script slightly what already works (my drafter made it about 10 years ago), which is that I have hot-keys Ctrl+Shift+3, Ctrl+Shift+4, Ctrl+Shift+5, Ctrl+Shift+6, Ctrl+Shift+7, Ctrl+Shift+8, such that whatever is selected turns into the line color and weight I want it/them to. The change is that I want the line colors and weights to be a little different than I've been using for the past several years. -- Rich --
  5. What is a pio? The OIP is Object Information Pallet? If so, what field do I write it in? But I can't get that far as your attachment link doesn't seem to work. All I get it an error: "The page cannot be found". It'd be so good to be able to have full color control! Thanks for pointing me to that color chart and for the value numbers! At least I was able to adjust my script with them but now for some reason I can't seem to implement them. I added them to my workspace and they don't do anything. The previous hot-keys remain active rather than activating the new script files. Suggestions? -- Rich --
  6. I'm at it again.... I can't seem to figure out how to make a script that will change color and lineweight. I tried a few months ago and gave up to do a miserable kludge. Now I've got a new project and would like to start RIGHT! The issue is that I'm trying to alter a VW script which sets a line color an weight and can't figure out what the numerical colors are. The color table is of no help as it doesn't seem to correspond with the archiac (?) 5x numerical system. What looks like "medium gray" it calls "9" and yet is referred to as 41120,41120,42148 in the script. I'm used to the hexidecimal #999999 or 153,153,153 designations for that particular color. Here is the dialogue from the last time I inquired about this. Things seem to wind up that I had to run a script called "Create Color Chart" but for some reason that doesn't "run". I get an error message instead. So I can't even get to square one. Being that this may be the only time I'll ever have to deal with this, perhaps one of you folks can just tell me what numbers these colors are: Gray: 3rd row down, 2nd from the right end Gold: 4th row down, 5th from the right end Red: 2nd row down, 1st form the left end Purple: 6th row down, 7th from the left end Blue: 3rd row down, 1st from the left end Black: 1st row, 2nd from the left end Or help me alter the scripts I have? -- Rich --
  7. I want to make anything I have selected change color and lineweight by a hot-key command. I typically use only 4 (rarely to 6) lineweights and like lines in those weights be depicted in different colors so that I can instantly see how they'd print out. One of my drafters made scripts that did just that (about 10 years ago) which has worked flawlessly until v12.5. Great! Unfortunately they don't work. I get the same error message: Line #1: MCVS Getting the first two scripts to work should do it for me. I really don't understand what the third one is for? -- Rich --
  8. I'm trying to alter a VW script "setcolorweight" and can't figure out what the numerical colors are. The color table is of no help as it doesn't seem to correspond with the archiac (?) 5x numerical system. What looks like "medium gray" it calls "9" and yet is referred to as 41120,41120,42148 in the script. I understand that the "convert color" script which is a part of v12.5 is supposed to enable us to figure out what the 5x colors are. Unfortunately I get an error message (Line #1: MCVS) when trying to run that. In fact I get that error message when trying to run all the VS I've tried in the plug-ins folder. Strange? I also tried making a new script the editor using script a guy sent to me but no-go. It won't run. Same error. I've checked out the "VW Function Reference" that says that it "lists all procedures and functions available in the VectorScript language".... but doesn't seem to have a line-weight-color one. So I'm really confused. I thought people could make their own scripts? So that's a dead end too. I don't know what to do. I should also mention that I've never written a script and know nothing about coding language. Suggestions? -- Rich --
  9. Thanks - I'll query over there! Ah! Now that I'm trying to make one again I see in the editor window that that's where they'll wind up. Pretty squirrelly. I really don't think I'm capable. I've never done coding and don't even know what a "document-specific script" is (only works in on one VW file?). I just want a script that I've been using for years to *work* (works fine in v12 but not v12.5) and to make a couple more similar to it. Right now I have a menu command (if that's the right word?) and hot key that I've made my workspace editor with to access the script file. When doing that, whatever lines I have selected turn the color and lineweight I want. I don't know why the script doesn't work in v12.5 which is one problem... and the other: I'd like to adjust the lineweights in the script and add a couple more scripts for different color/weights. The "Create Color Chart" is a script that lives in the Plug-ins directory which came with both v12 and v12.5. Unfortunately it doesn't work. The error says: Line #1: MCVS Actually - I've just now tried to open several files. They all don't open. Most have the same error message. Maybe there's something wrong with my VW installation? Another strange thing I noticed is that when I look for the VS files to run, I don't SEE ANY as all VS extensions which defaults seem to be vss, xxt, mpc, and txt don't show. But when I switch the type to "All Files", I see the vso, vsm... which ARE VS files? Strange. I just don't understand. Thanks. I've got a feeling I'll be needing a lot of it. I'll try reposting this problem over on the VS forum. But please don't let that from continuing to help me out! Thanks! -- Rich --
  10. I can't seem to find the script I created using your script above. When making it, it says that it'll be in the Vectorworks\12\Plug-ins folder but it's not there. I don't know why it'd be put there anyway as I have 12.5 (I looked there and it's not there either). But I DID find a "Create Color Chart" script but when I try to run it I get an error: Line #1: MCVS I have no clue what's going on. I've just talked to VW techhelp but they say that they don't know anything about scripting as it's not a "part" of VW.... and to repost my problem here under the "Script" section of this forum. But I can't seem to find that section!!! -- Rich --
  11. I'm afraid not. I've never had to work with a script before. So what happens when I put a "9" for the "0" in that script you show? How do I "run" a script? What happens then - some window pops up to tell me what the RBG values are? I opened up the script in NotePad which shows this: -------------------- MCVS ILine Gray 5?i?? ! ???? 7?7?! ? ?6??6? Miscellaneous? ! ,6?,6? ?? ? ? ? ? ! ? ??? ?? ! p T6?T6? ! ??? ? ! ,6?<? ??pt: P ! ???? ? ! ???? ? 4$?? x?? ? P PROCEDURE setcolorweightgrayfive; VAR h :HANDLE; BEGIN { gets a handle to the first selected object on the layer } h:= FSActLayer; IF FSActlayer = NIL Then Penfore(41120,41120,42148); IF FSActlayer = NIL Then Pensize (4); { while you have a valid handle to an object, perform the operation } WHILE h <> NIL DO BEGIN SetPenFore(h,41120,41120,42148); SetLW(h,5); { get a handle to the next selected object after the current one } h:= NextSObj(h); END; END; RUN(setcolorweightgrayfive); --------------------- Which is similar to what the VW script editor shows... I don't know why there are all those strange characters though. Should I delete them? Or maybe the VW script editor intentionally hides them? The help file for the editor says that it lissts "all procedures and functions available in the VectorScript language". I guess it missed the one I want to edit/use. I'm thinking I can just adjust in the color numbers I want but I have no clue how scripts work. I would imagine that there'd be a table with these numbers somewhere. I can't find any by Googling the net. -- Rich --
  12. I'm trying to alter a VW script "setcolorweight" and can't figure out what the numerical colors are. The color table is of no help as it doesn't seem to correspond with the archiac (?) 5x numerical system. What looks like "medium gray" it calls "9" and yet is referred to as 41120,41120,42148 in the script. I'm used to the hexidecimal #999999 or 153,153,153 designations for that particular color. Can anyone point me to a table with all the 5x color codes I'm supposed to use? Thanks! -- Rich --
  13. Thanks - that worked! It would have been great for the "help" info to have something on how to undo symbols.... -- Rich --
  14. How do I go about decomposing symbols so that I can alter them for a specific instance? I don't want that particular symbol to be a symbol in the drawing I'm currently working on. All the various things I've tried (decompose, convert, unlock, etc.) don't seem to have any affect on it. -- Richard --
  15. I do resize the textbox by dragging the handles with the scaling enabled (mode bar), but it breaks wherever the box ends regardless of where the words/letters are. I ended up having to reinstall 12.0 as the upgrade had overwritten it! Plus dealing with my plugins, settings, etc. Ugh. I'll call VW techelp tomorrow to see if they can shed some light. -- Rich --
×
×
  • Create New...