Jump to content

Alessio

Member
  • Content Count

    10
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Alessio

  • Rank
    Greenhorn

Personal Information

  • Location
    Netherlands

Recent Profile Visitors

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

  1. Thanks for the reply, I created a workaround Now it works like i wanted it to work.
  2. Hi, I Created a custom dialog to create several worksheets. On the custom dialog i made a checkbox to export the active worksheet to a .txt file. I wonder if its possible to make is like: if you check several checkboxes and the "EXPORT TO TXT" checkbox is checked than it wil give me after the sheet is generated the "Export Worksheet" dialog. Example : Check the "Total LED" checkbox Check the "LED Screen 1" checkbox Check the "EXPORT TO TXT" checkbox Press "Create" The Script Creates the worksheet The Script opens the export setings DoMenuTextByName('Export Worksheet',0); You store the Export to a destination The Script will repeat the steps on every checkbox that will be cheked. Part of the scrip: GetBooleanItem(id, 6, Bool); if Bool THEN DoMenuTextByName('Oaktree ALL LED',0); GetBooleanItem(id, 7, Bool); if Bool THEN DoMenuTextByName('Oaktree LED Screen 1',0); GetBooleanItem(id, 8, Bool); if Bool THEN DoMenuTextByName('Oaktree LED Screen 2',0); The id of the "EXPORT TO TXT" checkbox is 37. i hope someone has a solusion. Alessio
  3. sometimes you need to reboot your vectorworksūüėÖ It works with INOBJECT. This post may be deleted.
  4. Hi, I added my own custom record to a projector in the projector models.vwx file. When i use the "Video Screen tool" and i select the projector where i attached the record to, it imports the record format in my active drawing. Now i made some "auto generate worksheets" in vectorscript and i want to seach for the record but it only works if i check the "plug-in object" checkbox in the header search criteria. Does somene knows how to enable the "plug-in object" option in the script. my script: dynCharArray:DYNARRAY [] OF CHAR; var tH :handle; dynCharArray := '=DATABASE((INSYMBOL & (R IN [''[Faber]Projection'']) & (''[Faber]Projection''.''Amount''>=1)))'; SetWSCellFormulaN(tH,5,0,5,0,dynCharArray); SetWSCellFormula(tH,5,1,5,1,'=(''[Faber]Projection''.Amount)'); SetWSCellFormula(tH,5,2,5,2,'=(''[Faber]Projection''.Brand)'); SetWSCellFormula(tH,5,3,5,3,'=(''[Faber]Projection''.Type)');
  5. Hi All, I got it working the way i want with the custom dialog. thank you!
  6. Hi Josh, I changed the script from a tool to a menu command and tried triggering it with "Do Menu Text By Name" and that worked perfect. i also created a Custom dialog with checkboxes. How can i make a checkbox listen to a "DoMenuTextByNamen"if it is checked? Here is the script for the dialog: PROCEDURE CreateDialog; VAR id: LONGINT; result : LONGINT; BEGIN id := CreateLayout('Create Screen Report',TRUE,'Create', 'Cancel'); CreateStaticText(id,5,'Select Screens:',-1); CreateCheckBox(id,6,'All Screens'); CreateCheckBox(id,7,'Screen 1'); CreateCheckBox(id,8,'Screen 2'); CreateCheckBox(id,9,'Screen 3'); CreateCheckBox(id,10,'Screen 4'); CreateCheckBox(id,11,'Screen 5'); CreateCheckBox(id,12,'Screen 6'); CreateCheckBox(id,13,'Screen 7'); CreateCheckBox(id,14,'Screen 8'); CreateCheckBox(id,15,'Screen 9'); CreateCheckBox(id,16,'Screen 10'); SetFirstLayoutItem(id, 5); SetBelowItem (id,5,6,0,0); SetBelowItem (id,6,7,0,0); SetBelowItem (id,7,8,0,0); SetBelowItem (id,8,9,0,0); SetBelowItem (id,9,10,0,0); SetBelowItem (id,10,11,0,0); SetBelowItem (id,11,12,0,0); SetBelowItem (id,12,13,0,0); SetBelowItem (id,13,14,0,0); SetBelowItem (id,14,15,0,0); SetBelowItem (id,15,16,0,0); SetHelpText(id,6,'This will create all screens combined in one report.'); result := RunLayoutDialog(id,NIL); END; RUN(CreateDialog);
  7. Oke i am completly new at this. Is there a manual somewhere how i can set it up?
  8. I want it to be like: Select tool -> click drawing -> get dialoge screen with screen selection -> press oke -> generate all the selected Worksheets.
  9. Hi Pat, Thank you for the quick reply, in the plug in manager i created a "tool" with just a script in it to generate a worksheet. In my tool set i made some buttons for it like in the video i attached. I want to make a tool that triggers these tools with the boolean selection. It would be great if that works. Kind Regards, Alessio ScreenRecorderProject2.mp4
  10. Hi All, I created some tools to generate workseets with record information of some custom symbols. Now i want to create a tool were I can select the sheetname that I want to generate. I started a new tool and then at "Edit Definition" I created some booleans with the sheet names i want to generate. Can someone tell me how to start the script? I want it to be like: If One boolean is selected than it runs the tool that generates the worksheets and if more booleans are selected it runs all selected tools. Kind Regards, Alessio

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

√ó
√ó
  • Create New...