Jump to content

calsan

Member
  • Posts

    45
  • Joined

  • Last visited

Reputation

1 Neutral

Personal Information

  • Occupation
    Architect
  • Location
    Australia
  1. Try setting Graphics settings (in windows settings) for Vectorworks to high performance. You have to "browse" for vectorworks application as it doesn't show up automatically.
  2. calsan

    Undo issues

    Reviving a dead thread, in case the following helps someone. VW 2020 undo stopped working. Didn't go back 100 versions as above, just no abiity to undo. Seemed to be related to having two or more drawings open at the same time. Similarly, couldn't copy and paste between open drawings, but could copy and paste within any one drawing. I deleted the file Vectorworks Preferences.xml C:\Users\windows user folder\AppData\Roaming\Nemetschek\Vectorworks\2020\Settings\Vectorworks Preferences.xml This obviously meant having to set all my preferences again and switch back to my preferred Workspace, however the undo and copy paste now works once more.
  3. OK, thanks guys. At least there is an underlying logic to why it doesn't work!
  4. I wonder if there is an alternative routine to find by layer name? I tried this and it doesn't work either... PROCEDURE PickLayer250; PROCEDURE SelectThem(h :HANDLE); BEGIN SetSelect(h); END; BEGIN ForEachObject(SelectThem, L='*250*'); END; RUN (PickLayer250);
  5. I'm trying to find objects in layers whose name contains (for example) "250" Why does this work for classes: SelectObj(C='*250*'); but wildcard search doesn't work for layers: SelectObj(L='*250*'); :confused:
  6. Instructions to install the above script into a menu in your workspace: Create the plugin: Select menu item: Tools / Plug-ins / Plug-in Manager... Custom Plug-ins Tab - click "New..." Name the script "Grey Patterns to Grey Fills" Select the option "Command" Click "OK" Click "Edit Script..." Paste the script text copied from the above field Click "OK" Click "Close" Edit your workspace: Find the command "Grey Patterns to Grey Fills" under miscellaneous Drag it under the menu "New" (or your preferred menu location. This will now be available at all times under the New menu
  7. Procedure PatternsSwapToFill; PROCEDURE fillObj1(h:HANDLE); BEGIN SetFPat(h, 1); SetFillBack(h,21760,21760,21760); {Fill 1 - Type the desired fill colour # here} END; PROCEDURE fillObj2(h:HANDLE); BEGIN SetFPat(h, 1); SetFillBack(h, 34816,34816,34816); {Fill 2 - Type the desired fill colour # here} END; PROCEDURE fillObj3(h:HANDLE); BEGIN SetFPat(h, 1); SetFillBack(h, 43520,43520,43520); {Fill 3 - Type the desired fill colour # here} END; PROCEDURE fillObj4(h:HANDLE); BEGIN SetFPat(h, 1); SetFillBack(h, 49152,49152,49152); {Fill 4 - Type the desired fill colour # here} END; PROCEDURE fillObj5(h:HANDLE); BEGIN SetFPat(h, 1); SetFillBack(h, 56576,56576,56576); {Fill 5 - Type the desired fill colour # here} END; PROCEDURE fillObj6(h:HANDLE); BEGIN SetFPat(h, 1); SetFillBack(h, 60928,60928,60928); {Fill 6 - Type the desired fill colour # here} END; BEGIN ForEachObject(fillObj1,(INSYMBOL & INGROUP & INOBJECT & INVIEWPORT & (FP=3))); {Type the original pattern 1 # here} ForEachObject(fillObj2,(INSYMBOL & INGROUP & INOBJECT & INVIEWPORT & (FP=4))); {Type the original pattern 2 # here} ForEachObject(fillObj3,(INSYMBOL & INGROUP & INOBJECT & INVIEWPORT & (FP=5))); {Type the original pattern 3 # here} ForEachObject(fillObj4,(INSYMBOL & INGROUP & INOBJECT & INVIEWPORT & (FP=6))); {Type the original pattern 4 # here} ForEachObject(fillObj5,(INSYMBOL & INGROUP & INOBJECT & INVIEWPORT & (FP=7))); {Type the original pattern 5 # here} ForEachObject(fillObj6,(INSYMBOL & INGROUP & INOBJECT & INVIEWPORT & (FP=8))); {Type the original pattern 6 # here} END; RUN(PatternsSwapToFill);
  8. I found out the fill numbers are unreliable, as they have changed between vectorworks versions. More reliable than fill numbers is to use 24bit RGB values. Get the RGB Value by hovering over the fill in the attirbutes palette. Multiply each RGB value by 256 i.e. Grey of RGB value (221, 221, 221) becomes (56576, 56576, 56576) Below is amended 24bit RGB script.
  9. Procedure PatternsSwapToFill; PROCEDURE fillObj1(h:HANDLE); BEGIN SetFPat(h, 1); SetFillBack(h, 1236); {Fill 1 - Type the desired fill colour # here} END; PROCEDURE fillObj2(h:HANDLE); BEGIN SetFPat(h, 1); SetFillBack(h, 1237); {Fill 2 - Type the desired fill colour # here} END; PROCEDURE fillObj3(h:HANDLE); BEGIN SetFPat(h, 1); SetFillBack(h, 1238); {Fill 3 - Type the desired fill colour # here} END; PROCEDURE fillObj4(h:HANDLE); BEGIN SetFPat(h, 1); SetFillBack(h, 1239); {Fill 4 - Type the desired fill colour # here} END; PROCEDURE fillObj5(h:HANDLE); BEGIN SetFPat(h, 1); SetFillBack(h, 1240); {Fill 5 - Type the desired fill colour # here} END; PROCEDURE fillObj6(h:HANDLE); BEGIN SetFPat(h, 1); SetFillBack(h, 1241); {Fill 6 - Type the desired fill colour # here} END; BEGIN ForEachObject(fillObj1,(INSYMBOL & INGROUP & INOBJECT & INVIEWPORT & (FP=3))); {Type the original pattern 1 # here} ForEachObject(fillObj2,(INSYMBOL & INGROUP & INOBJECT & INVIEWPORT & (FP=4))); {Type the original pattern 2 # here} ForEachObject(fillObj3,(INSYMBOL & INGROUP & INOBJECT & INVIEWPORT & (FP=5))); {Type the original pattern 3 # here} ForEachObject(fillObj4,(INSYMBOL & INGROUP & INOBJECT & INVIEWPORT & (FP=6))); {Type the original pattern 4 # here} ForEachObject(fillObj5,(INSYMBOL & INGROUP & INOBJECT & INVIEWPORT & (FP=7))); {Type the original pattern 5 # here} ForEachObject(fillObj6,(INSYMBOL & INGROUP & INOBJECT & INVIEWPORT & (FP=8))); {Type the original pattern 6 # here} END; RUN(PatternsSwapToFill);
  10. Have modified the script to replace on multiple patterns to fills. Posting as may be of use to someone.
  11. Procedure filler; PROCEDURE fillObj(h:HANDLE); BEGIN SetFPat(h, 1); SetFillBack(h, 1236); END; BEGIN ForEachObject(fillObj,(INSYMBOL & INGROUP & INOBJECT & INVIEWPORT & (FP=3))); END; RUN(filler); This works!!!!!!!! Happy Happy Joy Joy Many thanks to Dieter @ DWorks and twk. I hope the above code will be of use to someone reading this in the future.
  12. And this is the error: Line #8: ForEachObject(fillObj,(INSYMBOL & INOBJECT & INVIEWPORT & (FP=3))); | { Error: Expected a procedure that accepts one handle argument. } Line #10: RUN(filler); | { Error: Expected a RUN statement at the end of the script }
  13. This is the script now. Procedure filler; Function fillObj(h:HANDLE):BOOLEAN; BEGIN SetFPat(h, 1); SetFillBack(h, 1236); END; BEGIN ForEachObject(fillObj,(INSYMBOL & INOBJECT & INVIEWPORT & (FP=3))); END; RUN(filler);
  14. On a tangent... This forum needs a 'like post' option... Would be nice to give a like to someone who's trying to help you out of a hole.
  15. This is with the '' removed Line #1: FUNCTION filler(): | { Error: Expected beginning of a statement. } | { Error: Identifier not declared. } Line #3: FUNCTION fillObj(h: HANDLE): BOOLEAN; | { Error: Identifier not declared. } | { Error: Identifier not declared. } Line #6: SetFPat(h, 1); | { Error: Identifier not declared. } | { Error: Expected a string. } | { Error: Expected a handle. } | { Error: Expected , } | { Error: Expected a string. } | { Error: Expected ) } | { Error: Did not expect this after end of statement - missing ;? } Line #7: SetFillBack(h, 1236); | { Error: Expected END } | { Error: Identifier not declared. } | { Error: Expected a string. } | { Error: Expected a handle. } | { Error: Expected , } | { Error: Expected a string. } | { Warning: Expected a longint or integer expression. } | { Error: Expected , } | { Error: Expected a string. } | { Warning: Expected a longint or integer expression. } | { Error: Expected , } | { Error: Expected a string. } | { Warning: Expected a longint or integer expression. } | { Error: Expected ) } | { Error: Did not expect this after end of statement - missing ;? }
×
×
  • Create New...