Search the Community
Showing results for tags 'scripts'.
-
I don't know if anyone can help with this. I have been trying to use python scripting to create new classes by importing data from a .cvs file with the class name, lineweight, and pen colour. The script is able to import the name and linewights correctly without any problems. However, when it comes to setting the pen colour it doesn't work and either has just black and white, or semmingly random colours. And help into what i am missing here would be greatly appreciated. import csv import vs # Prompt the user to select the CSV file file_path = vs.GetFile() # Check if a file was selected if file_path: # Read the CSV file with open(file_path, mode='r') as file: csv_reader = csv.DictReader(file) for row in csv_reader: class_name = row['Class Name'] line_weight_mm = float(row['Line Thickness (mm)']) pen_r = int(row['Pen Color (R)']) pen_g = int(row['Pen Color (G)']) pen_b = int(row['Pen Color (B)']) # Convert line weight to mils line_weight_mils = round(line_weight_mm / 0.0254) # Create class and set attributes vs.NameClass(class_name) vs.SetClUseGraphic(class_name, True) vs.SetClLW(class_name, int(line_weight_mils)) # Set line weight vs.SetClPenFore(class_name, pen_r, pen_g, pen_b) vs.SetClPenBack(class_name, pen_r, pen_g, pen_b) vs.SetClFPat(class_name, 0) vs.AlrtDialog('Classes created successfully with correct line weights from the selected CSV file!') else: vs.AlrtDialog('No file was selected. Operation canceled.')
- 1 reply
-
- scripts
- vectorscript
-
(and 3 more)
Tagged with:
-
Hi, I have created a number of very simple custom selection scripts to help me edit devices within a ConnectCAD schematic in bulk based on the selection criteria (thanks @Pat Stanford for staring me on that path!) I wanted to use the same scripts in another existing project so I exported them from one file to the other using the export function within resource manager. I store my scripts in a resource folder called "My Palette". After the export, the scripts didn't appear in My Palette on my desktop. Closing and reopening the file the palette was refreshed as needed. Have I missed a step in the export process? i there a refresh palettes 'button I didn't press?... or is this a small bug? Attached are two screen shots showing the contents of the palette on my desktop and within resource manager next to it, they were out of sync then in sync 'after' reopening the file. Feedback always appreciated, R
- 7 replies
-
- scripts
- resource library
-
(and 3 more)
Tagged with:
-
I'd like to use my Stream Deck XL to run some scripts. Some single, some multiple. Does anyone know how to do this? Cheers!
- 2 replies
-
- stream deck
- script
-
(and 1 more)
Tagged with:
-
Hi all, Is it possible to use either: 1. Python Scripts (.py files) that were created for Rhino? 2. Use Macros somehow from Rhino (assuming this is a hard "no") Thanks
-
I am proud to announce that some of my plugins and scripts (previously hosted on Vectordepot) are made available for download here: https://fitplot.it/vwplugins/ These are a few items developed by me (Paolo Marcuccetti) in the past years, updated and working with VW2018. I give these softwares free for download and usage, not for distribution. If you find these softwares useful in your work, please consider a little paypal donation. You'll find instructions on site. Contributions will be used to keep the site updated, to bring in new contents and to give any technical assistance. Paolo Marcuccetti
-
I like to composite screenshots in photoshop as opposed to rendering with renderworks. Is there a way to render multipass like in C4D or a "white model" render? I'd like to isolate the SSAO pass from the openGL render if possible, and I really hate turning everything white... maybe there's a script that temporarily (or permanently, but undo-able) turns all objects white? Thanks in advance.
- 9 replies
-
- ambient occlusion
- white model
-
(and 5 more)
Tagged with:
-
Hi, I have two separate issues. I've created a custom Smart Titleblock by editing a Vectorworks sheet border with our company logo and when I'm editing in 2d - the fonts show as desired but when I exit the symbol, they revert to some generic font. Is there anyway to change this? ALSO, when Creating Sheet Lists (Or Record Formats), is there anyway to add a record format that automatically creates assigns the Stacking Order of the sheet on the worksheet? I'd like to know what the record format for "stacking order" is. Thanks
- 3 replies
-
- titleblock
- scripts
-
(and 3 more)
Tagged with: