-
Posts
306 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Articles
Marionette
Store
Everything posted by The Hamma
-
I need a way to overide all lineweights in a viewport to one lineweight. The veiwport advanced settings only let you scale lineweight which is good but there are many times that I would like to export a simple line drawing without different lineweights. Data Visualization should work great for this but it missing the switch to modify linewieghts if you retain original pen. If there was an option here I could retain linetypes but change lineweights.
-
Everytime I approch 24 gigs of ram usage in Vectorworks it slows down. Is there a limit? I have 64 gigs of ram specifically for Vectorworks but I am unable to utilize it?
-
Awesome thanks. I added a few lines to the script to create the record in the file if it does not exist. Procedure MarkOverriddenDims; {May 27, 2022} {©2022 Patrick Stanford pat@coviana.com} {Licensed under the GNU Lesser General Public License} {No Warranty Expressed of Implied. Use at your own risk.} {Object Variable 6 indicates if a Dimension has the Show Dim Value} {Check box checked. If true it means that the dim value is showing} {False means it is not showing.} {This script runs looks at every Dim in the document and deletes a Record} {from those that have Show Dim Value checked and adds the Record} {to those that have it unchecked.} {If you don't ResetObject on each Dim, a Data Visualization} {will not see the correct Record attached/detached value.} Procedure Execute(Hd1:Handle); BEGIN If GetObjectVariableBoolean(Hd1,6) Then DelRecord(Hd1,'OverriddenDim') Else Record(Hd1,'OverriddenDim'); ResetObject(Hd1); End; BEGIN if GetObject('OverriddenDim') = NIL THEN; BEGIN NewField('OverriddenDim', 'Overridden', 'TRUE', 4, 0); END; ForEachObject(Execute, (INSYMBOL & INOBJECT & INVIEWPORT & (T=DIMENSION))); End; Run(MarkOverriddenDims);
-
Thanks, I was able to resize the message dialog manualy but only after I commented out the "ClrMessage" command at the end. Made a quick script to fix, LOL. message('Move and Resize this dialog box as desired. Close when done.');
-
Does anyone know how to change the size of a script message. I am unable to edit it while the script is running and it is taking up to much area. It covers a quarter of the drawing.
-
Is you door in symbol or a group?
-
Hide layer of selected object - Help with script
The Hamma replied to setdesigner's topic in Vectorscript
When I export the standard architect workspace there are 911 lines of menu commands. I added 128 additional lines and the last command I added does not work. I did delete some of the default commands. -
Hide layer of selected object - Help with script
The Hamma replied to setdesigner's topic in Vectorscript
I too was using a script similar to this to hide classes. I’ve added so many Scripts that I’ve actually hit the limit of Scripts that a workspace can handle and I’ve had to pair down and delete Scripts from my workspace so they would all work. It would be nice if there wasn’t a limit to the workspace because I did like having the script rather than using the visibility tool. -
Is there a renderworks style that shows shadow only?
The Hamma replied to Dcrb's topic in Architecture
Matt: Neat idea. I downloaded the file and the wierd thing is that it works but when I open it in my Windows version of VW and the classes show they are overwritten but doesn't show how they are overwritten. See below. In the second window it should have the shadow catcher texture. -
worksheet show only last part of class name
The Hamma replied to Gregovitch's topic in General Discussion
Not the master but getting better all the time. Here are my scripts and workflow -
Would anyone have made a Marionette for a PEMB (Pre-Engineered Metal Building) Bent. I have attached a drawing with a symbol that I would love to have as a Marionette so that I can adjust the span, height and roof pitch as well as the base size. BENT.vwx
-
Adding this to your script will display the time it took to run. import time startTime = time.time() #your code here executionTime = (time.time() - startTime) vs.AlrtDialog('Execution time in seconds: ' + str(executionTime)) Use this to use a list to elimimate options from another list OmitList =['name1','name2','name3', 'name4','name5'] #replace name# with names of items to skip for List2 in reversed(range(1,List2+1)): #List2 is the list of items you wish to process. Remove Reversed() to step through list in order. if any(item == vs.GetName(List2) for item in OmitList): #if name of List2 item matches name in OmitList it will result in True continue #skip rest of script for this item and continue to next item in List2 #Insert script to execute if name is not in OmitList.
- 1 reply
-
- 2
-
-
Yes it does need this exactly as described Just tested it and all that is need is the "NotesManagerDataFile" text at the top This is created by Vectorworks if the file is edited.
-
@PatStanford The {@} custom format works great. Thanks for the tip. I forgot to mention once the database is created it is much quicker (in relation to file saves) to edit in Vectorworks as an XML format so I would save as XML format from the callout dialog and disregard the TXT format if you only intend to edit and delete callouts from Vectorworks.
-
So I had a file of keynotes and everything in the file was previously separated by Tabs. Like so I created an excel by importing the file in as a tab delimited file to create this Then I added two columns in front of the text and copied the section header into column B like so. We need to add a UUID to column A so I used a UUID generator site like https://www.uuidgenerator.net/version4 but it does not include the brackets, so I placed it in another excel file in the second column and added brackets to the first and third columns like so Save that file as a tab delimited text file and delete all the tabs, then you can past it into column A of the other file like so. The rest of the steps are outlined in this video 2022-03-28 17-40-25.mp4
-
This is interesting: When in a Sheet layer is the active layer the Staked Layer(Unified View) Option is False but when in a Design Layer is active it changes to True I wonder if sometimes it fails to switch. if vs.GetObjectVariableInt(vs.ActLayer(), 154) == 2: activetype = 'Sheet Layer ' else: activetype = 'Design Layer' if vs.GetPref(94) == 1: BOOL ='TRUE' else: BOOL ='FALSE' sl = ('Stack Layers (Unified View) = '+ BOOL) if vs.GetPref(95) == 1: BOOL1 ='TRUE' else: BOOL1 ='FALSE' sl2d = ('Stack Layers (Unified View) Create 2D Objects = '+BOOL1) if vs.GetPref(96) == 1: BOOL2 ='TRUE' else: BOOL2 ='FALSE' sli = ('Stack Layers (Unified View) Ignore Other Scales = '+BOOL2) if vs.GetPref(98) == 1: BOOL3 ='TRUE' else: BOOL3 ='FALSE' slrv = ('Stack Layers (Unified View) Restore Views = '+BOOL3) if vs.GetPref(99) == 1: BOOL4 ='TRUE' else: BOOL4 ='FALSE' slcv = ('Stack Layers (Unified View) Center View = '+BOOL4) vs.AlrtDialog('Active Layer type = '+activetype+(' '*47)+sl+(' '*49)+sl2d+(' '*22)+sli+(' '*20)+slrv+(' '*26)+slcv)
-
I was wrong. It is documented but they call it "Stack Layers" instead of "Unified View" in the "Vectorworks 2022 Script Function Reference" Stack Layers 94 TRUE or FALSE Pref
-
Yes it happens a lot especially with older drawings. And I had to write a script to locate the preference because it was undocumented. 😂